Add __skip_rocmclang to more rocm packages for cmake 3.21 (#25328)
This commit is contained in:
parent
d88d887ed0
commit
26ed2776e7
13 changed files with 75 additions and 12 deletions
|
@ -42,10 +42,12 @@ def cmake_args(self):
|
|||
# installed...
|
||||
if self.spec.satisfies('@:3.9.0'):
|
||||
args.append(self.define('TRY_CUDA', 'OFF'))
|
||||
|
||||
else:
|
||||
args.append(self.define('USE_CUDA', 'OFF'))
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
|
|
|
@ -39,6 +39,11 @@ def setup_build_environment(self, env):
|
|||
env.set('CXX', self.spec['hip'].hipcc)
|
||||
|
||||
def cmake_args(self):
|
||||
return [
|
||||
args = [
|
||||
self.define('CMAKE_MODULE_PATH', self.spec['hip'].prefix.cmake)
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
|
|
@ -36,5 +36,11 @@ def setup_build_environment(self, env):
|
|||
env.set('CXX', self.spec['hip'].hipcc)
|
||||
|
||||
def cmake_args(self):
|
||||
args = ['-DBUILD_CLIENTS_SAMPLES=OFF']
|
||||
args = [
|
||||
self.define('BUILD_CLIENTS_SAMPLES', 'OFF')
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
|
|
@ -32,3 +32,11 @@ class Hipfort(CMakePackage):
|
|||
|
||||
def setup_build_environment(self, env):
|
||||
env.set('CXX', self.spec['hip'].hipcc)
|
||||
|
||||
def cmake_args(self):
|
||||
args = []
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
|
|
@ -41,11 +41,16 @@ class Hipsparse(CMakePackage):
|
|||
patch('530047af4a0f437dafc02f76b3a17e3b1536c7ec.patch', when='@3.5.0')
|
||||
|
||||
def cmake_args(self):
|
||||
return [
|
||||
args = [
|
||||
self.define('CMAKE_CXX_STANDARD', '14'),
|
||||
self.define('BUILD_CLIENTS_SAMPLES', 'OFF'),
|
||||
self.define('BUILD_CLIENTS_TESTS', 'OFF'),
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
env.set('CXX', self.spec['hip'].hipcc)
|
||||
|
|
|
@ -50,4 +50,8 @@ def cmake_args(self):
|
|||
'NUMACTL_DIR',
|
||||
self.spec['numactl'].prefix
|
||||
))
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
|
|
@ -60,8 +60,13 @@ def patch(self):
|
|||
filter_file(match, substitute, *files, **kwargs)
|
||||
|
||||
def cmake_args(self):
|
||||
return [
|
||||
args = [
|
||||
self.define('SUPPORT_HIP', 'ON'),
|
||||
self.define('SUPPORT_MPI', 'OFF'),
|
||||
self.define('BUILD_CLIENTS_SAMPLES', 'OFF')
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
|
|
@ -82,6 +82,9 @@ def cmake_args(self):
|
|||
arch = arch + ':xnack-'
|
||||
args.append(self.define('Tensile_ARCHITECTURE', arch))
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
||||
def install(self, spec, prefix):
|
||||
|
|
|
@ -41,10 +41,15 @@ def setup_build_environment(self, env):
|
|||
env.set('CXX', self.spec['hip'].hipcc)
|
||||
|
||||
def cmake_args(self):
|
||||
return [
|
||||
args = [
|
||||
self.define('CMAKE_MODULE_PATH', self.spec['hip'].prefix.cmake),
|
||||
self.define('ONLY_INSTALL', 'ON'),
|
||||
self.define('BUILD_TEST', 'OFF'),
|
||||
self.define('BUILD_BENCHMARK', 'OFF'),
|
||||
self.define('BUILD_EXAMPLE', 'OFF')
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
|
|
@ -66,6 +66,12 @@ def fix_library_locations(self):
|
|||
join_path(self.prefix.lib, lib))
|
||||
|
||||
def cmake_args(self):
|
||||
args = ['-DBUILD_BENCHMARK=OFF',
|
||||
'-DBUILD_TEST=OFF']
|
||||
args = [
|
||||
self.define('BUILD_BENCHMARK', 'OFF'),
|
||||
self.define('BUILD_TEST', 'OFF')
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
|
|
@ -59,6 +59,9 @@ def cmake_args(self):
|
|||
if self.spec.satisfies('@3.7.0:'):
|
||||
args.append(self.define_from_variant('OPTIMAL', 'optimal'))
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
|
|
|
@ -38,3 +38,11 @@ class Rocsparse(CMakePackage):
|
|||
|
||||
def setup_build_environment(self, env):
|
||||
env.set('CXX', self.spec['hip'].hipcc)
|
||||
|
||||
def cmake_args(self):
|
||||
args = []
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
|
|
@ -43,11 +43,14 @@ def setup_build_environment(self, env):
|
|||
env.set('CXX', self.spec['hip'].hipcc)
|
||||
|
||||
def cmake_args(self):
|
||||
spec = self.spec
|
||||
|
||||
return [
|
||||
args = [
|
||||
self.define(
|
||||
'CMAKE_MODULE_PATH',
|
||||
'{0}/cmake'.format(spec['hip'].prefix)
|
||||
'{0}/cmake'.format(self.spec['hip'].prefix)
|
||||
)
|
||||
]
|
||||
|
||||
if self.spec.satisfies('^cmake@3.21:'):
|
||||
args.append(self.define('__skip_rocmclang', 'ON'))
|
||||
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue