diff options
author | Luke Yeager <lyeager@nvidia.com> | 2020-01-08 00:29:42 +0300 |
---|---|---|
committer | Luke Yeager <lyeager@nvidia.com> | 2020-01-08 00:29:42 +0300 |
commit | c7ba70ff90b357b40bf571ea3366d61e1249a0be (patch) | |
tree | d40db3884eb91c535122252df803faadd24b5eae | |
parent | 3899f6e0f219b0cbf58537f791b0dd104b377750 (diff) |
[build] Allow setting CXXFLAGS on the command line
-rw-r--r-- | makefiles/common.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/makefiles/common.mk b/makefiles/common.mk index 37e81be..2e44826 100644 --- a/makefiles/common.mk +++ b/makefiles/common.mk @@ -42,9 +42,10 @@ else endif #$(info NVCC_GENCODE is ${NVCC_GENCODE}) -CXXFLAGS := -DCUDA_MAJOR=$(CUDA_MAJOR) -DCUDA_MINOR=$(CUDA_MINOR) -fPIC -fvisibility=hidden -CXXFLAGS += -Wall -Wno-unused-function -Wno-sign-compare -std=c++11 -Wvla -CXXFLAGS += -I $(CUDA_INC) +CXXFLAGS := -DCUDA_MAJOR=$(CUDA_MAJOR) -DCUDA_MINOR=$(CUDA_MINOR) -fPIC -fvisibility=hidden \ + -Wall -Wno-unused-function -Wno-sign-compare -std=c++11 -Wvla \ + -I $(CUDA_INC) \ + $(CXXFLAGS) # Maxrregcount needs to be set accordingly to NCCL_MAX_NTHREADS (otherwise it will cause kernel launch errors) # 512 : 120, 640 : 96, 768 : 80, 1024 : 60 # We would not have to set this if we used __launch_bounds__, but this only works on kernels, not on functions. |