DEBUG=1 fixed

pull/2352/head
AlexeyAB 6 years ago
parent d767e8ca38
commit ce2e0eff00
  1. 3
      Makefile
  2. 2
      src/cuda.c

@ -60,7 +60,8 @@ COMMON= -Iinclude/
CFLAGS=-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC CFLAGS=-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
OPTS= -O0 -g #OPTS= -O0 -g
#OPTS= -Og -g
COMMON+= -DDEBUG COMMON+= -DDEBUG
CFLAGS+= -DDEBUG CFLAGS+= -DDEBUG
else else

@ -13,7 +13,7 @@ void cuda_set_device(int n)
{ {
gpu_index = n; gpu_index = n;
cudaError_t status = cudaSetDevice(n); cudaError_t status = cudaSetDevice(n);
CHECK_CUDA(status); if(status != cudaSuccess) CHECK_CUDA(status);
} }
int cuda_get_device() int cuda_get_device()

Loading…
Cancel
Save