summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatish Balay <balay@mcs.anl.gov>2022-05-24 04:54:29 -0500
committerGitHub <noreply@github.com>2022-05-24 11:54:29 +0200
commit1c5587f72d4402cc6491dc543c8429bc34c4aee9 (patch)
tree2dfbdbc648170849c1d04c2cfee0be1b08f5a55d
parent6e7eb49888e37da3b63c8eaba1040ea91aec5fde (diff)
downloadspack-1c5587f72d4402cc6491dc543c8429bc34c4aee9.tar.gz
spack-1c5587f72d4402cc6491dc543c8429bc34c4aee9.tar.bz2
spack-1c5587f72d4402cc6491dc543c8429bc34c4aee9.tar.xz
spack-1c5587f72d4402cc6491dc543c8429bc34c4aee9.zip
petsc: update rocrand location wrt rocm@5.1.0 (#30790)
rocm-5.1.0 removed librocrand.so from ROCM_DIR/rocrand/lib location (but includes are still at this location) /opt/rocm-5.0.2/lib/librocrand.so /opt/rocm-5.0.2/rocrand/lib/librocrand.so /opt/rocm-5.1.0/lib/librocrand.so drwxr-xr-x 2 root root 617 Mar 8 08:20 /opt/rocm-5.0.2/rocrand/include drwxr-xr-x 2 root root 617 Mar 31 09:48 /opt/rocm-5.1.0/rocrand/include
-rw-r--r--var/spack/repos/builtin/packages/petsc/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py
index 51ee1a9899..a8951f1220 100644
--- a/var/spack/repos/builtin/packages/petsc/package.py
+++ b/var/spack/repos/builtin/packages/petsc/package.py
@@ -545,7 +545,11 @@ class Petsc(Package, CudaPackage, ROCmPackage):
options.append('--with-hip-arch={0}'.format(hip_arch[0]))
hip_pkgs = ['hipsparse', 'hipblas', 'rocsparse', 'rocsolver', 'rocblas']
hip_ipkgs = hip_pkgs + ['rocthrust', 'rocprim']
- hip_lpkgs = hip_pkgs + ['rocrand']
+ hip_lpkgs = hip_pkgs
+ if spec.satisfies('^rocrand@5.1:'):
+ hip_ipkgs.extend(['rocrand'])
+ else:
+ hip_lpkgs.extend(['rocrand'])
hip_inc = ''
hip_lib = ''
for pkg in hip_ipkgs: