Skip to content

Commit 6aed8a8

Browse files
committed
Add -O3 to counters.cc
The counters were started / stopped without any compiler optimisation. This saves a few seconds in pure madevent, and less than 0.1 s in cuda-enabled madevent.
1 parent aefa64f commit 6aed8a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • epochX/cudacpp/gg_ttgg.mad/SubProcesses

epochX/cudacpp/gg_ttgg.mad/SubProcesses/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ $(CUDACPP_BUILDDIR)/c$(PROG)_cudacpp: $(PROCESS) $(DSIG_cudacpp) auto_dsig.o $(L
139139
if [ -f $(LIBDIR)/$(CUDACPP_BUILDDIR)/lib$(CUDACPP_CULIB).* ]; then $(FC) -o $(CUDACPP_BUILDDIR)/g$(PROG)_cudacpp $(PROCESS) $(DSIG_cudacpp) auto_dsig.o $(MATRIX) $(LINKLIBS) $(BIASDEPENDENCIES) $(OMPFLAGS) counters.o ompnumthreads.o -L$(LIBDIR)/$(CUDACPP_BUILDDIR) -l$(CUDACPP_COMMONLIB) -l$(CUDACPP_CULIB) $(LIBFLAGSRPATH) $(LDFLAGS); fi
140140

141141
counters.o: counters.cc timer.h
142-
$(CXX) -O3 -std=c++11 -Wall -Wshadow -Wextra -c $< -o $@
142+
$(CXX) -std=c++11 -Wall -Wshadow -Wextra -c $< -o $@
143143

144144
ompnumthreads.o: ompnumthreads.cc ompnumthreads.h
145145
$(CXX) -O3 -I. -std=c++11 -Wall -Wshadow -Wextra $(OMPFLAGS) -c $< -o $@

0 commit comments

Comments
 (0)