Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
018e85f1
Commit
018e85f1
authored
Apr 24, 2016
by
Davis King
Browse files
Improved CHECK_CUDA() macro
parent
935a0b4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/dnn/cuda_utils.h
dlib/dnn/cuda_utils.h
+2
-2
No files found.
dlib/dnn/cuda_utils.h
View file @
018e85f1
...
...
@@ -15,7 +15,7 @@
// Check the return value of a call to the CUDA runtime for an error condition.
#define CHECK_CUDA(call) \
{ \
do
{ \
const cudaError_t error = call; \
if (error != cudaSuccess) \
{ \
...
...
@@ -24,7 +24,7 @@
sout << "code: " << error << ", reason: " << cudaGetErrorString(error);\
throw dlib::cuda_error(sout.str()); \
} \
}
}
while(false)
// ----------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment