cleanup opt-rocm references when using spack (#25264)
Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
This commit is contained in:
parent
f0875b2fef
commit
1c7aa12615
3 changed files with 7 additions and 0 deletions
|
@ -32,9 +32,12 @@ class Hipblas(CMakePackage):
|
|||
depends_on('rocsolver@' + ver, when='@' + ver)
|
||||
depends_on('rocblas@' + ver, type='link', when='@' + ver)
|
||||
depends_on('comgr@' + ver, type='build', when='@' + ver)
|
||||
depends_on('rocm-cmake@' + ver, type='build', when='@' + ver)
|
||||
|
||||
def cmake_args(self):
|
||||
args = [
|
||||
# Make sure find_package(HIP) finds the module.
|
||||
self.define('CMAKE_MODULE_PATH', self.spec['hip'].prefix.cmake),
|
||||
self.define('BUILD_CLIENTS_SAMPLES', 'OFF'),
|
||||
self.define('BUILD_CLIENTS_TESTS', 'OFF')
|
||||
]
|
||||
|
|
|
@ -38,6 +38,8 @@ def setup_build_environment(self, env):
|
|||
|
||||
def cmake_args(self):
|
||||
args = [
|
||||
# Make sure find_package(HIP) finds the module.
|
||||
self.define('CMAKE_MODULE_PATH', self.spec['hip'].prefix.cmake),
|
||||
self.define('BUILD_CLIENTS_SAMPLES', 'OFF')
|
||||
]
|
||||
|
||||
|
|
|
@ -43,6 +43,8 @@ class Hipsparse(CMakePackage):
|
|||
|
||||
def cmake_args(self):
|
||||
args = [
|
||||
# Make sure find_package(HIP) finds the module.
|
||||
self.define('CMAKE_MODULE_PATH', self.spec['hip'].prefix.cmake),
|
||||
self.define('CMAKE_CXX_STANDARD', '14'),
|
||||
self.define('BUILD_CLIENTS_SAMPLES', 'OFF'),
|
||||
self.define('BUILD_CLIENTS_TESTS', 'OFF'),
|
||||
|
|
Loading…
Reference in a new issue