summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-11-15 04:10:57 -0600
committerGitHub <noreply@github.com>2021-11-15 11:10:57 +0100
commit6e646e42a59f033d93c95f5e2f969a37ca4fc715 (patch)
tree1fb272baa4370b0ca3667209a83807403070e472
parent91b8a87fc7c13799470038fd8d9930298d638e77 (diff)
downloadspack-6e646e42a59f033d93c95f5e2f969a37ca4fc715.tar.gz
spack-6e646e42a59f033d93c95f5e2f969a37ca4fc715.tar.bz2
spack-6e646e42a59f033d93c95f5e2f969a37ca4fc715.tar.xz
spack-6e646e42a59f033d93c95f5e2f969a37ca4fc715.zip
gpu-burn: set spack compiler (#27421)
-rw-r--r--var/spack/repos/builtin/packages/gpu-burn/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/gpu-burn/package.py b/var/spack/repos/builtin/packages/gpu-burn/package.py
index 15d2dd5b8f..87a2832842 100644
--- a/var/spack/repos/builtin/packages/gpu-burn/package.py
+++ b/var/spack/repos/builtin/packages/gpu-burn/package.py
@@ -32,9 +32,9 @@ class GpuBurn(MakefilePackage, CudaPackage):
fh.write('drv:\n')
fh.write('\tnvcc {0} -fatbin '
'compare.cu -o compare.ptx\n'.format(archflag))
- fh.write('\tg++ -O3 -c gpu_burn-drv.cpp\n')
- fh.write('\tg++ -o gpu_burn gpu_burn-drv.o -O3 -lcuda '
- '-lcublas -lcudart -o gpu_burn\n')
+ fh.write('\t{0} -O3 -c gpu_burn-drv.cpp\n'.format(spack_cxx))
+ fh.write('\t{0} -o gpu_burn gpu_burn-drv.o -O3 -lcuda '
+ '-lcublas -lcudart -o gpu_burn\n'.format(spack_cxx))
filter_file('compare.ptx',
join_path(prefix.share,