Enable compilation with old g++ when the default g++ is not supported (+5.0)
This commit is contained in:
parent
b16cc5d197
commit
e30bf95989
4
Makefile
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user