Skip to content

Commit

Permalink
[cpp17] move CUDA builds from c++14 to c++17 (madgraph5#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
valassi committed Jan 26, 2022
1 parent 00ab549 commit 33937a4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions epochX/cudacpp/ee_mumu/SubProcesses/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,8 @@ ifneq ($(wildcard $(CUDA_HOME)/bin/nvcc),)
CUOPTFLAGS = -lineinfo
CUFLAGS = $(OPTFLAGS) $(CUOPTFLAGS) $(INCFLAGS) $(CUINC) $(USE_NVTX) $(CUARCHFLAGS) -use_fast_math
###CUFLAGS += -Xcompiler -Wall -Xcompiler -Wextra -Xcompiler -Wshadow
NVCC_VERSION = $(shell $(NVCC) --version | grep 'Cuda compilation tools' | cut -d' ' -f5 | cut -d, -f1)
# TEMPORARY! For as long as cuda 11.0/11.1 are supported (issues #282 and #292)
# (Eventually, use only c++17; previously, c++14 in cuda110/111 and c++17 above; now c++14 everywhere)
###ifeq ($(NVCC_VERSION),11.0)
### CUFLAGS += -std=c++14
###else ifeq ($(NVCC_VERSION),11.1)
### CUFLAGS += -std=c++14
###else
### CUFLAGS += -std=c++17
###endif
CUFLAGS += -std=c++14
###NVCC_VERSION = $(shell $(NVCC) --version | grep 'Cuda compilation tools' | cut -d' ' -f5 | cut -d, -f1)
CUFLAGS += -std=c++17 # need CUDA >= 11.2 (see #333): this is enforced in mgOnGpuConfig.h
# Without -maxrregcount: baseline throughput: 6.5E8 (16384 32 12) up to 7.3E8 (65536 128 12)
###CUFLAGS+= --maxrregcount 160 # improves throughput: 6.9E8 (16384 32 12) up to 7.7E8 (65536 128 12)
###CUFLAGS+= --maxrregcount 128 # improves throughput: 7.3E8 (16384 32 12) up to 7.6E8 (65536 128 12)
Expand Down

0 comments on commit 33937a4

Please sign in to comment.