Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
2fd98234
Commit
2fd98234
authored
Apr 24, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved more macros
parent
018e85f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
cublas_dlibapi.cpp
dlib/dnn/cublas_dlibapi.cpp
+2
-2
cudnn_dlibapi.cpp
dlib/dnn/cudnn_dlibapi.cpp
+2
-2
curand_dlibapi.cpp
dlib/dnn/curand_dlibapi.cpp
+2
-2
No files found.
dlib/dnn/cublas_dlibapi.cpp
View file @
2fd98234
...
@@ -25,7 +25,7 @@ static const char* cublas_get_error_string(cublasStatus_t s)
...
@@ -25,7 +25,7 @@ static const char* cublas_get_error_string(cublasStatus_t s)
// Check the return value of a call to the cuBLAS runtime for an error condition.
// Check the return value of a call to the cuBLAS runtime for an error condition.
#define CHECK_CUBLAS(call) \
#define CHECK_CUBLAS(call) \
{ \
do
{ \
const cublasStatus_t error = call; \
const cublasStatus_t error = call; \
if (error != CUBLAS_STATUS_SUCCESS) \
if (error != CUBLAS_STATUS_SUCCESS) \
{ \
{ \
...
@@ -34,7 +34,7 @@ static const char* cublas_get_error_string(cublasStatus_t s)
...
@@ -34,7 +34,7 @@ static const char* cublas_get_error_string(cublasStatus_t s)
sout << "code: " << error << ", reason: " << cublas_get_error_string(error);\
sout << "code: " << error << ", reason: " << cublas_get_error_string(error);\
throw dlib::cublas_error(sout.str()); \
throw dlib::cublas_error(sout.str()); \
} \
} \
}
}
while(false)
namespace
dlib
namespace
dlib
{
{
...
...
dlib/dnn/cudnn_dlibapi.cpp
View file @
2fd98234
...
@@ -36,7 +36,7 @@ static const char* cudnn_get_error_string(cudnnStatus_t s)
...
@@ -36,7 +36,7 @@ static const char* cudnn_get_error_string(cudnnStatus_t s)
// Check the return value of a call to the cuDNN runtime for an error condition.
// Check the return value of a call to the cuDNN runtime for an error condition.
#define CHECK_CUDNN(call) \
#define CHECK_CUDNN(call) \
{ \
do
{ \
const cudnnStatus_t error = call; \
const cudnnStatus_t error = call; \
if (error != CUDNN_STATUS_SUCCESS) \
if (error != CUDNN_STATUS_SUCCESS) \
{ \
{ \
...
@@ -45,7 +45,7 @@ static const char* cudnn_get_error_string(cudnnStatus_t s)
...
@@ -45,7 +45,7 @@ static const char* cudnn_get_error_string(cudnnStatus_t s)
sout << "code: " << error << ", reason: " << cudnn_get_error_string(error);\
sout << "code: " << error << ", reason: " << cudnn_get_error_string(error);\
throw dlib::cudnn_error(sout.str()); \
throw dlib::cudnn_error(sout.str()); \
} \
} \
}
}
while(false)
namespace
dlib
namespace
dlib
...
...
dlib/dnn/curand_dlibapi.cpp
View file @
2fd98234
...
@@ -24,7 +24,7 @@ static const char* curand_get_error_string(curandStatus_t s)
...
@@ -24,7 +24,7 @@ static const char* curand_get_error_string(curandStatus_t s)
// Check the return value of a call to the cuDNN runtime for an error condition.
// Check the return value of a call to the cuDNN runtime for an error condition.
#define CHECK_CURAND(call) \
#define CHECK_CURAND(call) \
{ \
do
{ \
const curandStatus_t error = call; \
const curandStatus_t error = call; \
if (error != CURAND_STATUS_SUCCESS) \
if (error != CURAND_STATUS_SUCCESS) \
{ \
{ \
...
@@ -33,7 +33,7 @@ static const char* curand_get_error_string(curandStatus_t s)
...
@@ -33,7 +33,7 @@ static const char* curand_get_error_string(curandStatus_t s)
sout << "code: " << error << ", reason: " << curand_get_error_string(error);\
sout << "code: " << error << ", reason: " << curand_get_error_string(error);\
throw dlib::curand_error(sout.str()); \
throw dlib::curand_error(sout.str()); \
} \
} \
}
}
while(false)
namespace
dlib
namespace
dlib
{
{
...
...
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