diff options
author | eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> | 2022-04-20 13:39:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 13:39:19 -0700 |
commit | 0abc4564ae642c831879106703a50fdc67bd5e58 (patch) | |
tree | a994f19a78085394193cef2c5ec950edabbedc57 /var | |
parent | 13d05848adc8c845591b3971bba276d941795b9b (diff) | |
download | spack-0abc4564ae642c831879106703a50fdc67bd5e58.tar.gz spack-0abc4564ae642c831879106703a50fdc67bd5e58.tar.bz2 spack-0abc4564ae642c831879106703a50fdc67bd5e58.tar.xz spack-0abc4564ae642c831879106703a50fdc67bd5e58.zip |
hiop +rocm: use hipcc for cxx (#30182)
* hiop +rocm: use hipcc for cxx
* move CMAKE_CXX_COMPILER arg for +rocm case to existing block
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/hiop/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hiop/package.py b/var/spack/repos/builtin/packages/hiop/package.py index a0c88996f3..ca4d0a67e8 100644 --- a/var/spack/repos/builtin/packages/hiop/package.py +++ b/var/spack/repos/builtin/packages/hiop/package.py @@ -174,6 +174,8 @@ class Hiop(CMakePackage, CudaPackage, ROCmPackage): # self.define('HIP_CLANG_INCLUDE_PATH', # '/opt/rocm-X.Y.Z/llvm/lib/clang/14.0.0/include/')) if '+rocm' in spec: + args.append(self.define('CMAKE_CXX_COMPILER', spec['hip'].hipcc)) + rocm_arch_list = spec.variants['amdgpu_target'].value if rocm_arch_list[0] != 'none': args.append(self.define('GPU_TARGETS', rocm_arch_list)) |