Skip to content

Commit 281baaa

Browse files
committed
Fix typo in Makefile
1 parent 2d21a0b commit 281baaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

madgraph/iolibs/template_files/madmatrix/madmatrix.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export CXXFLAGS
188188
override CUDA_HOME = $(patsubst %%/bin/nvcc,%%,$(shell which nvcc 2>/dev/null))
189189

190190
# Set HIP_HOME from the path to hipcc, if it exists
191-
override HIP_HOME = $(shell hipconfig --rocmpath)
191+
override HIP_HOME = $(shell hipconfig --rocmpath 2>/dev/null)
192192

193193
# Configure CUDA_INC (for CURAND and NVTX) and NVTX if a CUDA installation exists (see #965)
194194
ifeq ($(CUDA_HOME),)
@@ -726,7 +726,7 @@ all.$(TAG): $(BUILDDIR)/.build.$(TAG) $(LIBDIR)/lib$(MADMATRIX_LIB).so
726726
override oldtagsb=`if [ -d $(BUILDDIR) ]; then find $(BUILDDIR) -maxdepth 1 -name '.build.*' ! -name '.build.$(TAG)' -exec echo $(shell pwd)/{} \; ; fi`
727727
$(BUILDDIR)/.build.$(TAG):
728728
@if [ ! -d $(BUILDDIR) ]; then echo "mkdir -p $(BUILDDIR)"; mkdir -p $(BUILDDIR); fi
729-
@if [ "$(oldtagsb)" != "" ]; then echo "Cannot build for tag=$(TAG) as old builds exist for other tags:"; echo " $(oldtagsb)"; echo "Please run 'make clean' first\nIf 'make clean' is not enough: run 'make clean USEBUILDDIR=1 BACKEND=$(BACKEND) FPTYPE=$(FPTYPE)' or 'make cleanall'"; exit 1; fi
729+
@if [ "$(oldtagsb)" != "" ]; then echo "Cannot build for tag=$(TAG) as old builds exist for other tags:"; echo " $(oldtagsb)"; echo "Please run 'make clean' first"; echo "If 'make clean' is not enough: run 'make clean USEBUILDDIR=1 BACKEND=$(BACKEND) FPTYPE=$(FPTYPE)' or 'make cleanall'"; exit 1; fi
730730
@touch $(BUILDDIR)/.build.$(TAG)
731731

732732
# Apply special build flags only to CrossSectionKernels.o (no fast math, see #117 and #516)

0 commit comments

Comments
 (0)