Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/nccl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Jeaugey <sjeaugey@nvidia.com>2016-06-03 20:22:46 +0300
committerSylvain Jeaugey <sjeaugey@nvidia.com>2016-06-03 20:25:37 +0300
commit1657af1567ca3190470a6d159b1b64c259c4bbab (patch)
tree205ccca039924af78c2fdeb5d3ed19a003c597d0
parentacb93d1aed92825caed3386ba12abd80e58c83c0 (diff)
Better name for GENCODE
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 79e85d3..49f2894 100644
--- a/Makefile
+++ b/Makefile
@@ -36,12 +36,12 @@ CUDA_LIB ?= $(CUDA_HOME)/lib64
CUDA_INC ?= $(CUDA_HOME)/include
NVCC ?= $(CUDA_HOME)/bin/nvcc
-CUDACODE ?= -gencode=arch=compute_35,code=sm_35 \
- -gencode=arch=compute_50,code=sm_50 \
- -gencode=arch=compute_52,code=sm_52
+NVCC_GENCODE ?= -gencode=arch=compute_35,code=sm_35 \
+ -gencode=arch=compute_50,code=sm_50 \
+ -gencode=arch=compute_52,code=sm_52
CXXFLAGS := -I$(CUDA_INC) -fPIC -fvisibility=hidden
-NVCUFLAGS := -ccbin $(CXX) $(CUDACODE) -lineinfo -std=c++11 -maxrregcount 96
+NVCUFLAGS := -ccbin $(CXX) $(NVCC_GENCODE) -lineinfo -std=c++11 -maxrregcount 96
# Use addprefix so that we can specify more than one path
LDFLAGS := $(addprefix -L,${CUDA_LIB}) -lcudart