Skip to content

Commit

Permalink
[builds] in gg_tt.mad cudacpp.mk, disable NVTX by default in C++ builds
Browse files Browse the repository at this point in the history
madgraph5#679

Still need to test that I can optionally reenable it...
  • Loading branch information
valassi committed Jun 4, 2023
1 parent c1afee3 commit b9e6a39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion epochX/cudacpp/gg_tt.mad/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ endif

#=== Configure the C++ compiler

CXXFLAGS = $(OPTFLAGS) -std=c++17 $(INCFLAGS) $(USE_NVTX) -Wall -Wshadow -Wextra
CXXFLAGS = $(OPTFLAGS) -std=c++17 $(INCFLAGS) -Wall -Wshadow -Wextra
ifeq ($(shell $(CXX) --version | grep ^nvc++),)
CXXFLAGS+= -ffast-math # see issue #117
endif
###CXXFLAGS+= -Ofast # performance is not different from --fast-math
###CXXFLAGS+= -g # FOR DEBUGGING ONLY
###CXXFLAGS+= $(USE_NVTX) # OPTIONALLY enable NVTX in C++ builds (but disable it by default #679)

# Optionally add debug flags to display the full list of flags (eg on Darwin)
###CXXFLAGS+= -v
Expand Down

0 comments on commit b9e6a39

Please # to comment.