From 7c01c64d531ce6b6d16d3b0ea0e8a1a9c19bf479 Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Thu, 17 Sep 2020 10:24:22 -0500 Subject: [PATCH] gpu-burn: allow to build with non-gcc compilers (#18707) This PR modifies the patch to use $(CXX) rather than g++ to allow the spack compiler to be used. --- var/spack/repos/builtin/packages/gpu-burn/Makefile.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/gpu-burn/Makefile.patch b/var/spack/repos/builtin/packages/gpu-burn/Makefile.patch index 57378a68762..67df81bd065 100644 --- a/var/spack/repos/builtin/packages/gpu-burn/Makefile.patch +++ b/var/spack/repos/builtin/packages/gpu-burn/Makefile.patch @@ -14,5 +14,5 @@ - g++ -O3 -Wno-unused-result -I${CUDAPATH}/include -c gpu_burn-drv.cpp - g++ -o gpu_burn gpu_burn-drv.o -O3 -lcuda -L${CUDAPATH}/lib64 -L${CUDAPATH}/lib -Wl,-rpath=${CUDAPATH}/lib64 -Wl,-rpath=${CUDAPATH}/lib -lcublas -lcudart -o gpu_burn + ${NVCC} -arch=compute_30 -ptx compare.cu -o compare.ptx -+ g++ -O3 -Wno-unused-result -c gpu_burn-drv.cpp -+ g++ -o gpu_burn gpu_burn-drv.o -O3 -lcuda -lcublas -lcudart -o gpu_burn ++ $(CXX) -O3 -Wno-unused-result -c gpu_burn-drv.cpp ++ $(CXX) -o gpu_burn gpu_burn-drv.o -O3 -lcuda -lcublas -lcudart -o gpu_burn