From 0abc4564ae642c831879106703a50fdc67bd5e58 Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Wed, 20 Apr 2022 13:39:19 -0700 Subject: hiop +rocm: use hipcc for cxx (#30182) * hiop +rocm: use hipcc for cxx * move CMAKE_CXX_COMPILER arg for +rocm case to existing block --- var/spack/repos/builtin/packages/hiop/package.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'var') 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)) -- cgit v1.2.3-70-g09d2