Skip to content

Commit

Permalink
[pptt] port Stephan's patch for #740 to ggtt.mad
Browse files Browse the repository at this point in the history
  • Loading branch information
valassi committed Aug 9, 2023
1 parent 65e3c14 commit 772ec1f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions epochX/cudacpp/gg_tt.mad/SubProcesses/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ include ../../Source/make_opts
FFLAGS+= -w

# Enable the C preprocessor https://gcc.gnu.org/onlinedocs/gfortran/Preprocessing-Options.html
FFLAGS+= -cpp
FFLAGS+= -cpp

# Compile counters with -O3 as in the cudacpp makefile (avoid being "unfair" to Fortran #740)
CXXFLAGS = -O3 -Wall -Wshadow -Wextra

# Enable ccache if USECCACHE=1
ifeq ($(USECCACHE)$(shell echo $(CXX) | grep ccache),1)
Expand Down Expand Up @@ -149,10 +152,10 @@ $(CUDACPP_BUILDDIR)/$(PROG)_cpp: $(PROCESS) $(DSIG_cudacpp) auto_dsig.o $(LIBS)
$(CUDACPP_BUILDDIR)/$(PROG)_cuda: $(CUDACPP_BUILDDIR)/$(PROG)_cpp

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

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

$(PROG)_forhel: $(PROCESS) auto_dsig.o $(LIBS) $(MATRIX_HEL)
$(FC) -o $(PROG)_forhel $(PROCESS) $(MATRIX_HEL) $(LINKLIBS) $(LDFLAGS) $(BIASDEPENDENCIES) $(OMPFLAGS)
Expand Down

0 comments on commit 772ec1f

Please sign in to comment.