exago: use hipcc for +rocm builds (#30232)
This commit is contained in:
parent
111aeeb0ae
commit
4817e4c80c
@ -122,6 +122,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))
|
||||||
|
Loading…
Reference in New Issue
Block a user