gpu-burn: set spack compiler (#27421)

This commit is contained in:
Glenn Johnson 2021-11-15 04:10:57 -06:00 committed by GitHub
parent 91b8a87fc7
commit 6e646e42a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,9 +32,9 @@ def edit(self, spec, prefix):
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,