Disable __skip_rocmclang again (#26187)
CMake 3.21.3 disables the broken hipcc-as-rocmclang detection again. From the release notes: > The AMD ROCm Platform hipcc compiler was identifed by CMake 3.21.0 > through 3.21.2 as a distinct compiler with id ROCMClang. This has been > removed because it caused regressions. Instead: > * hipcc may no longer be used as a HIP compiler because it interferes > with flags CMake needs to pass to Clang. Use Clang directly. > * hipcc may once again be used as a CXX compiler, and is treated as > whatever compiler it selects underneath, as CMake 3.20 and below > did.
This commit is contained in:
parent
4dee7d2b22
commit
727dcef2f4
@ -92,7 +92,7 @@ def cmake_args(self):
|
||||
args.append('-DCMAKE_CXX_FLAGS={0}'.format(self.hip_flags(rocm_arch)))
|
||||
|
||||
# See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -71,7 +71,7 @@ class Hip(CMakePackage):
|
||||
patch('0004-Drop-clang-rt-builtins-linking-on-hip-host.3.10.0.patch', when='@3.10.0:4.1.0')
|
||||
|
||||
# Tests are broken when using cmake 3.21
|
||||
with when('^cmake@3.21:'):
|
||||
with when('^cmake@3.21.0:3.21.2'):
|
||||
patch('0005-Disable-tests-3.5.0.patch', when='@3.5.0')
|
||||
patch('0005-Disable-tests-3.6.0.patch', when='@3.6.0:3.8.0')
|
||||
patch('0005-Disable-tests-3.9.0.patch', when='@3.9.0:4.0.0')
|
||||
|
@ -50,7 +50,7 @@ def cmake_args(self):
|
||||
else:
|
||||
args.append(self.define('USE_CUDA', 'OFF'))
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -45,7 +45,7 @@ def cmake_args(self):
|
||||
self.define('CMAKE_MODULE_PATH', self.spec['hip'].prefix.cmake)
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -44,7 +44,7 @@ def cmake_args(self):
|
||||
self.define('BUILD_CLIENTS_SAMPLES', 'OFF')
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -39,7 +39,7 @@ def setup_build_environment(self, env):
|
||||
def cmake_args(self):
|
||||
args = []
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -52,7 +52,7 @@ def cmake_args(self):
|
||||
self.define('BUILD_CLIENTS_TESTS', 'OFF'),
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -210,7 +210,7 @@ def cmake_args(self):
|
||||
# HIP support requires compiling with hipcc
|
||||
if '+rocm' in self.spec:
|
||||
args += [self.define('CMAKE_CXX_COMPILER', self.spec['hip'].hipcc)]
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args += [self.define('__skip_rocmclang', True)]
|
||||
|
||||
# Instrumentation
|
||||
|
@ -131,7 +131,7 @@ def cmake_args(self):
|
||||
options.extend(['-DMAGMA_ENABLE_HIP=ON'])
|
||||
options.extend(['-DCMAKE_CXX_COMPILER=hipcc'])
|
||||
# See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322
|
||||
if spec.satisfies('^cmake@3.21:'):
|
||||
if spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
options.extend(['-D__skip_rocmclang=ON'])
|
||||
else:
|
||||
options.extend(['-DMAGMA_ENABLE_CUDA=ON'])
|
||||
|
@ -54,7 +54,7 @@ def cmake_args(self):
|
||||
self.spec['numactl'].prefix
|
||||
))
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -67,7 +67,7 @@ def cmake_args(self):
|
||||
self.define('BUILD_CLIENTS_SAMPLES', 'OFF')
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -114,7 +114,7 @@ def cmake_args(self):
|
||||
args.append(self.define('AMDGPU_TARGETS', arch))
|
||||
|
||||
# See https://github.com/ROCmSoftwarePlatform/rocBLAS/issues/1196
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -66,7 +66,7 @@ def cmake_args(self):
|
||||
args.append(self.define('AMDGPU_TARGETS_SRAM_ECC', ";".join(tgt_sram)))
|
||||
|
||||
# See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -84,7 +84,7 @@ def cmake_args(self):
|
||||
arch = arch + ':xnack-'
|
||||
args.append(self.define('Tensile_ARCHITECTURE', arch))
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -51,7 +51,7 @@ def cmake_args(self):
|
||||
self.define('BUILD_EXAMPLE', 'OFF')
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -73,7 +73,7 @@ def cmake_args(self):
|
||||
self.define('BUILD_TEST', 'OFF')
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -75,7 +75,7 @@ def cmake_args(self):
|
||||
else:
|
||||
args.append(self.define('AMDGPU_TARGETS', ";".join(tgt)))
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -47,7 +47,7 @@ def cmake_args(self):
|
||||
self.define('BUILD_CLIENTS_TESTS', 'OFF'),
|
||||
self.define('BUILD_CLIENTS_BENCHMARKS', 'OFF')
|
||||
]
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
@ -52,7 +52,7 @@ def cmake_args(self):
|
||||
)
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
Loading…
Reference in New Issue
Block a user