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:
parent
13d05848ad
commit
0abc4564ae
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue