mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
DEBUG=1 fixed
This commit is contained in:
3
Makefile
3
Makefile
@ -60,7 +60,8 @@ COMMON= -Iinclude/
|
||||
CFLAGS=-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
OPTS= -O0 -g
|
||||
#OPTS= -O0 -g
|
||||
#OPTS= -Og -g
|
||||
COMMON+= -DDEBUG
|
||||
CFLAGS+= -DDEBUG
|
||||
else
|
||||
|
@ -13,7 +13,7 @@ void cuda_set_device(int n)
|
||||
{
|
||||
gpu_index = n;
|
||||
cudaError_t status = cudaSetDevice(n);
|
||||
CHECK_CUDA(status);
|
||||
if(status != cudaSuccess) CHECK_CUDA(status);
|
||||
}
|
||||
|
||||
int cuda_get_device()
|
||||
|
Reference in New Issue
Block a user