Skip to content

Commit

Permalink
[builds] in gg_tt.mad cudacpp.mk, remove CUINC from generic C++ .o bu…
Browse files Browse the repository at this point in the history
  • Loading branch information
valassi committed Jun 4, 2023
1 parent b9e6a39 commit 8bd2fae
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 @@ -461,9 +461,10 @@ $(BUILDDIR)/%_cu.o : %.cc *.h ../../src/*.h $(BUILDDIR)/.build.$(TAG)
endif

# Generic target and build rules: objects from C++ compilation
# (NB do not include CUINC here! add it only for NVTX or curand #679)
$(BUILDDIR)/%.o : %.cc *.h ../../src/*.h $(BUILDDIR)/.build.$(TAG)
@if [ ! -d $(BUILDDIR) ]; then echo "mkdir -p $(BUILDDIR)"; mkdir -p $(BUILDDIR); fi
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CUINC) -fPIC -c $< -o $@
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -fPIC -c $< -o $@

# Apply special build flags only to CrossSectionKernel.cc and gCrossSectionKernel.cu (no fast math, see #117)
ifeq ($(shell $(CXX) --version | grep ^nvc++),)
Expand Down

0 comments on commit 8bd2fae

Please # to comment.