Commit b9fd9564 authored by Davis King's avatar Davis King

Added missing assert

parent 3b35f55b
...@@ -162,8 +162,11 @@ namespace dlib ...@@ -162,8 +162,11 @@ namespace dlib
#else // if DLIB_USE_CUDA NOT DEFINED #else // if DLIB_USE_CUDA NOT DEFINED
inline void set_device ( inline void set_device (
int int id
){} )
{
DLIB_CASSERT(id == 0, "dlib::cuda::set_device(id) called with an invalid device id.");
}
inline int get_device ( inline int get_device (
){ return 0; } ){ return 0; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment