Skip to content

Commit 7ccda3c

Browse files
author
alan.souza
committed
fix handling of variable NVCC. Permit overriding the variable using environment variables
1 parent e76e36e commit 7ccda3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DEBUG ?= 0
1111

1212
CUDA_LIB ?= $(CUDA_HOME)/lib64
1313
CUDA_INC ?= $(CUDA_HOME)/include
14-
NVCC = $(CUDA_HOME)/bin/nvcc
14+
NVCC ?= $(CUDA_HOME)/bin/nvcc
1515
CUDARTLIB ?= cudart
1616

1717
CUDA_VERSION = $(strip $(shell which $(NVCC) >/dev/null && $(NVCC) --version | grep release | sed 's/.*release //' | sed 's/\,.*//'))

0 commit comments

Comments
 (0)