Added dependency on hipify-clang and fixed hipify-clang package (#30576)

This commit is contained in:
G-Ragghianti 2022-05-10 12:38:16 -04:00 committed by GitHub
parent 00e9780136
commit 4d84c774d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -40,3 +40,8 @@ class HipifyClang(CMakePackage):
'4.2.0', '4.3.0', '4.3.1', '4.5.0', '4.5.2', '5.0.0', '5.0.2',
'5.1.0', 'master']:
depends_on('llvm-amdgpu@' + ver, when='@' + ver)
def setup_run_environment(self, env):
# The installer puts the binaries directly into the prefix
# instead of prefix/bin, so add prefix to the PATH
env.prepend_path('PATH', self.spec.prefix)

View File

@ -46,6 +46,7 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage):
depends_on('lapackpp@2020.10.02', when='@2020.10.00')
depends_on('lapackpp@master', when='@master')
depends_on('scalapack')
depends_on('hipify-clang', when='+rocm ^hip@5:')
cpp_17_msg = 'Requires C++17 compiler support'
conflicts('%gcc@:5', msg=cpp_17_msg)