pass debug flag to nvcc
@@ -300,6 +300,7 @@ TARGETS = bart $(XTARGETS)
ifeq ($(DEBUG),1)
CPPFLAGS += -g
CFLAGS += -g
+NVCCFLAGS += -g
endif
ifeq ($(UBSAN),1)
@@ -372,7 +373,7 @@ endif
# sm_20 no longer supported in CUDA 9
GPUARCH_FLAGS ?=
-NVCCFLAGS = -DUSE_CUDA -Xcompiler -fPIC -Xcompiler -fopenmp -O3 $(GPUARCH_FLAGS) -I$(srcdir)/ -m64 -ccbin $(CC)
+NVCCFLAGS += -DUSE_CUDA -Xcompiler -fPIC -Xcompiler -fopenmp -O3 $(GPUARCH_FLAGS) -I$(srcdir)/ -m64 -ccbin $(CC)
#NVCCFLAGS = -Xcompiler -fPIC -Xcompiler -fopenmp -O3 -I$(srcdir)/
