Skip to content

Commit

Permalink
use absolute path for nvcc
Browse files Browse the repository at this point in the history
Co-authored-by: ocaisa <[email protected]>
  • Loading branch information
bedroge and ocaisa authored Dec 2, 2024
1 parent 0857b9f commit 90495ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easybuild/easyblocks/generic/cmakemake.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def configure_step(self, srcdir=None, builddir=None):
cuda_root = get_software_root('CUDA')
if cuda_root:
options['CMAKE_CUDA_HOST_COMPILER'] = which(os.getenv('CXX', 'g++'))
options['CMAKE_CUDA_COMPILER'] = 'nvcc'
options['CMAKE_CUDA_COMPILER'] = which('nvcc')
cuda_cc = build_option('cuda_compute_capabilities') or self.cfg['cuda_compute_capabilities']
if cuda_cc:
options['CMAKE_CUDA_ARCHITECTURES'] = '"%s"' % ';'.join([cc.replace('.', '') for cc in cuda_cc])
Expand Down

0 comments on commit 90495ed

Please sign in to comment.