Add dependency on rocm-cmake to various ROCm related packages (#24427)
This commit is contained in:
parent
2db858e9c4
commit
97f0c3ccd9
8 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,7 @@ class Hipcub(CMakePackage):
|
|||
'4.2.0']:
|
||||
depends_on('hip@' + ver, when='@' + ver)
|
||||
depends_on('rocprim@' + ver, when='@' + ver)
|
||||
depends_on('rocm-cmake@' + ver, type='build', when='@' + ver)
|
||||
|
||||
for ver in ['4.1.0', '4.2.0']:
|
||||
depends_on('hip-rocclr@' + ver, when='@' + ver)
|
||||
|
|
|
@ -28,6 +28,7 @@ class Hipfort(CMakePackage):
|
|||
|
||||
for ver in ['3.8.0', '3.9.0', '3.10.0', '4.0.0', '4.1.0', '4.2.0']:
|
||||
depends_on('hip@' + ver, type='build', when='@' + ver)
|
||||
depends_on('rocm-cmake@' + ver, type='build', when='@' + ver)
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
env.set('CXX', self.spec['hip'].hipcc)
|
||||
|
|
|
@ -39,6 +39,7 @@ class Rocalution(CMakePackage):
|
|||
depends_on('rocsparse@' + ver, when='@' + ver)
|
||||
depends_on('comgr@' + ver, when='@' + ver)
|
||||
depends_on('llvm-amdgpu@' + ver, type='build', when='@' + ver)
|
||||
depends_on('rocm-cmake@' + ver, type='build', when='@' + ver)
|
||||
|
||||
for ver in ['3.9.0', '3.10.0', '4.0.0', '4.1.0', '4.2.0']:
|
||||
depends_on('rocrand@' + ver, when='@' + ver)
|
||||
|
|
|
@ -35,6 +35,7 @@ class Rocprim(CMakePackage):
|
|||
depends_on('comgr@' + ver, when='@' + ver)
|
||||
depends_on('hsa-rocr-dev@' + ver, when='@' + ver)
|
||||
depends_on('llvm-amdgpu@' + ver, when='@' + ver)
|
||||
depends_on('rocm-cmake@' + ver, type='build', when='@' + ver)
|
||||
|
||||
for ver in ['4.1.0', '4.2.0']:
|
||||
depends_on('hip-rocclr@' + ver, type='build', when='@' + ver)
|
||||
|
|
|
@ -38,6 +38,7 @@ class Rocrand(CMakePackage):
|
|||
depends_on('llvm-amdgpu@' + ver, type='build', when='@' + ver)
|
||||
depends_on('rocminfo@' + ver, type='build', when='@' + ver)
|
||||
depends_on('hsa-rocr-dev@' + ver, type='build', when='@' + ver)
|
||||
depends_on('rocm-cmake@' + ver, type='build', when='@' + ver)
|
||||
for ver in ['4.1.0', '4.2.0']:
|
||||
depends_on('hip-rocclr@' + ver, type='link', when='@' + ver)
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ class Rocsolver(CMakePackage):
|
|||
depends_on('hip@' + ver, type='build', when='@' + ver)
|
||||
depends_on('comgr@' + ver, type='build', when='@' + ver)
|
||||
depends_on('rocblas@' + ver, type='link', when='@' + ver)
|
||||
depends_on('rocm-cmake@' + ver, type='build', when='@' + ver)
|
||||
|
||||
def cmake_args(self):
|
||||
args = [
|
||||
|
|
|
@ -34,6 +34,7 @@ class Rocsparse(CMakePackage):
|
|||
'4.2.0']:
|
||||
depends_on('hip@' + ver, when='@' + ver)
|
||||
depends_on('rocprim@' + ver, when='@' + ver)
|
||||
depends_on('rocm-cmake@' + ver, type='build', when='@' + ver)
|
||||
|
||||
for ver in ['4.1.0', '4.2.0']:
|
||||
depends_on('hip-rocclr@' + ver, when='@' + ver)
|
||||
|
|
|
@ -37,6 +37,7 @@ class Rocthrust(CMakePackage):
|
|||
'4.2.0']:
|
||||
depends_on('hip@' + ver, when='@' + ver)
|
||||
depends_on('rocprim@' + ver, when='@' + ver)
|
||||
depends_on('rocm-cmake@' + ver, type='build', when='@' + ver)
|
||||
|
||||
for ver in ['4.1.0', '4.2.0']:
|
||||
depends_on('hip-rocclr@' + ver, when='@' + ver)
|
||||
|
|
Loading…
Reference in a new issue