Skip to content

Commit

Permalink
Fix build on RHEL7 with GCC 4.8
Browse files Browse the repository at this point in the history
Add -std=c++11 to CXXFLAGS.
Fixes NVIDIA#116.
  • Loading branch information
sjeaugey committed Oct 12, 2022
1 parent d313d20 commit 365b92a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ NVCC_GENCODE ?= -gencode=arch=compute_35,code=sm_35 \
endif

NVCUFLAGS := -ccbin $(CXX) $(NVCC_GENCODE) -std=c++11
CXXFLAGS := -std=c++11

LDFLAGS := -L${CUDA_LIB} -lcudart -lrt
NVLDFLAGS := -L${CUDA_LIB} -l${CUDARTLIB} -lrt
Expand Down

0 comments on commit 365b92a

Please sign in to comment.