summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/hiop/package.py2
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))