Skip to content

Commit

Permalink
pass the preferred host compiler to the CUDA compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Nov 30, 2024
1 parent 358c719 commit ee21659
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easybuild/easyblocks/generic/cmakemake.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ def configure_step(self, srcdir=None, builddir=None):
# ensure CMake uses EB python, not system or virtualenv python
options.update(get_cmake_python_config_dict())

# pass the preferred host compiler to the CUDA compiler
cuda_root = get_software_root('CUDA')
if cuda_root:
self.cfg.update('preconfigopts', 'CUDAHOSTCXX=%s' % which(os.getenv('CXX', 'g++')))

if not self.cfg.get('allow_system_boost', False):
boost_root = get_software_root('Boost')
if boost_root:
Expand Down

0 comments on commit ee21659

Please sign in to comment.