exago: use hipcc for +rocm builds (#30232)

This commit is contained in:
eugeneswalker 2022-04-21 13:22:41 -07:00 committed by GitHub
parent 111aeeb0ae
commit 4817e4c80c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,6 +122,8 @@ def cmake_args(self):
# 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))