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:
authorPau Farré <pau.farre@bsc.es>2016-04-12 13:49:13 +0300
committerPau Farré <pau.farre@bsc.es>2016-04-12 13:49:13 +0300
commite30bf9598919787b2c851158f1e2e1ad4d4c2432 (patch)
tree362553252bc0e82946aca31ae5e6768a608baa49 /Makefile
parentb16cc5d197a03ae2ef21c131a63805b36c15b2f5 (diff)
Enable compilation with old g++ when the default g++ is not supported (+5.0)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a3f675e..0bc09d6 100644
--- a/Makefile
+++ b/Makefile
@@ -40,10 +40,10 @@ BUILDDIR := build
NVCC := $(CUDA_HOME)/bin/nvcc
-GPP := g++
+GPP ?= g++
CPPFLAGS := -I$(CUDA_HOME)/include
CXXFLAGS := -O3 -fPIC -fvisibility=hidden
-NVCUFLAGS := $(CUDACODE) -O3 -lineinfo -std=c++11 -maxrregcount 96
+NVCUFLAGS := $(CUDACODE) -O3 -lineinfo -std=c++11 -maxrregcount 96 -ccbin=${GPP}
ifneq ($(VERBOSE), 0)
NVCUFLAGS += -Xptxas -v -Xcompiler -Wall,-Wextra