hiop +rocm: use hipcc for cxx (#30182)

* hiop +rocm: use hipcc for cxx

* move CMAKE_CXX_COMPILER arg for +rocm case to existing block
This commit is contained in:
eugeneswalker 2022-04-20 13:39:19 -07:00 committed by GitHub
parent 13d05848ad
commit 0abc4564ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,6 +174,8 @@ def cmake_args(self):
# self.define('HIP_CLANG_INCLUDE_PATH', # self.define('HIP_CLANG_INCLUDE_PATH',
# '/opt/rocm-X.Y.Z/llvm/lib/clang/14.0.0/include/')) # '/opt/rocm-X.Y.Z/llvm/lib/clang/14.0.0/include/'))
if '+rocm' in spec: if '+rocm' in spec:
args.append(self.define('CMAKE_CXX_COMPILER', spec['hip'].hipcc))
rocm_arch_list = spec.variants['amdgpu_target'].value rocm_arch_list = spec.variants['amdgpu_target'].value
if rocm_arch_list[0] != 'none': if rocm_arch_list[0] != 'none':
args.append(self.define('GPU_TARGETS', rocm_arch_list)) args.append(self.define('GPU_TARGETS', rocm_arch_list))