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.
This commit is contained in:
Glenn Johnson 2020-09-17 10:24:22 -05:00 committed by GitHub
parent 2576d8d767
commit 7c01c64d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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