gpu-burn: set spack compiler (#27421)
This commit is contained in:
parent
91b8a87fc7
commit
6e646e42a5
@ -32,9 +32,9 @@ def edit(self, spec, prefix):
|
|||||||
fh.write('drv:\n')
|
fh.write('drv:\n')
|
||||||
fh.write('\tnvcc {0} -fatbin '
|
fh.write('\tnvcc {0} -fatbin '
|
||||||
'compare.cu -o compare.ptx\n'.format(archflag))
|
'compare.cu -o compare.ptx\n'.format(archflag))
|
||||||
fh.write('\tg++ -O3 -c gpu_burn-drv.cpp\n')
|
fh.write('\t{0} -O3 -c gpu_burn-drv.cpp\n'.format(spack_cxx))
|
||||||
fh.write('\tg++ -o gpu_burn gpu_burn-drv.o -O3 -lcuda '
|
fh.write('\t{0} -o gpu_burn gpu_burn-drv.o -O3 -lcuda '
|
||||||
'-lcublas -lcudart -o gpu_burn\n')
|
'-lcublas -lcudart -o gpu_burn\n'.format(spack_cxx))
|
||||||
|
|
||||||
filter_file('compare.ptx',
|
filter_file('compare.ptx',
|
||||||
join_path(prefix.share,
|
join_path(prefix.share,
|
||||||
|
Loading…
Reference in New Issue
Block a user