summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2020-09-17 10:24:22 -0500
committerGitHub <noreply@github.com>2020-09-17 17:24:22 +0200
commit7c01c64d531ce6b6d16d3b0ea0e8a1a9c19bf479 (patch)
treeb920cf6f623e233633d31e02e775e0005dc01e6a /var
parent2576d8d7677edc5c3473fb5af903591884bf7780 (diff)
downloadspack-7c01c64d531ce6b6d16d3b0ea0e8a1a9c19bf479.tar.gz
spack-7c01c64d531ce6b6d16d3b0ea0e8a1a9c19bf479.tar.bz2
spack-7c01c64d531ce6b6d16d3b0ea0e8a1a9c19bf479.tar.xz
spack-7c01c64d531ce6b6d16d3b0ea0e8a1a9c19bf479.zip
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.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gpu-burn/Makefile.patch4
1 files 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 57378a6876..67df81bd06 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