mirror of https://github.com/AlexeyAB/darknet.git
Fixed CUDA error checking
This commit is contained in:
parent
2790464de1
commit
381f90ebb8
|
@ -6,8 +6,9 @@ momentum=0.9
|
|||
decay=0.001
|
||||
max_batches = 2000
|
||||
time_steps=576
|
||||
learning_rate=1.0
|
||||
learning_rate=0.5
|
||||
policy=steps
|
||||
burn_in=10
|
||||
steps=1000,1500
|
||||
scales=.1,.1
|
||||
|
||||
|
|
|
@ -6,8 +6,9 @@ momentum=0.9
|
|||
decay=0.001
|
||||
max_batches = 2000
|
||||
time_steps=576
|
||||
learning_rate=1.0
|
||||
learning_rate=0.5
|
||||
policy=steps
|
||||
burn_in=10
|
||||
steps=1000,1500
|
||||
scales=.1,.1
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ void check_error(cudaError_t status)
|
|||
}
|
||||
if (status2 != cudaSuccess)
|
||||
{
|
||||
const char *s = cudaGetErrorString(status);
|
||||
const char *s = cudaGetErrorString(status2);
|
||||
char buffer[256];
|
||||
printf("CUDA Error Prev: %s\n", s);
|
||||
assert(0);
|
||||
|
@ -153,7 +153,7 @@ void cudnn_check_error(cudnnStatus_t status)
|
|||
}
|
||||
if (status2 != CUDNN_STATUS_SUCCESS)
|
||||
{
|
||||
const char *s = cudnnGetErrorString(status);
|
||||
const char *s = cudnnGetErrorString(status2);
|
||||
char buffer[256];
|
||||
printf("cuDNN Error Prev: %s\n", s);
|
||||
assert(0);
|
||||
|
|
Loading…
Reference in New Issue