Skip to content

Commit 6b8b5a6

Browse files
Jorghi12PenghuiCheng
authored andcommitted
Start using a newer version of rocRand that's PyTorch compatible.
Summary: Pull Request resolved: pytorch#10280 Differential Revision: D9196349 Pulled By: Jorghi12 fbshipit-source-id: 4147f2e6e3fdd641b026f3761d684437591405be
1 parent 45f3d1c commit 6b8b5a6

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docker/caffe2/jenkins/common/install_rocm.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ install_ubuntu() {
2121
miopengemm \
2222
rocblas \
2323
hipblas \
24-
rocrand \
25-
hcsparse \
2624
rocm-profiler \
2725
cxlactivitylogger
2826

@@ -65,6 +63,20 @@ install_hcrng() {
6563
dpkg -i /opt/rocm/debians/hcrng.deb
6664
}
6765

66+
# This will be removed after merging an upcoming PR.
67+
install_hcsparse() {
68+
mkdir -p /opt/rocm/debians
69+
curl https://s3.amazonaws.com/ossci-linux/hcsparse-master-907a505-Linux.deb -o /opt/rocm/debians/hcsparse.deb
70+
dpkg -i /opt/rocm/debians/hcsparse.deb
71+
}
72+
73+
# Install an updated version of rocRand that's PyTorch compatible.
74+
install_rocrand() {
75+
mkdir -p /opt/rocm/debians
76+
curl https://s3.amazonaws.com/ossci-linux/rocrand-1.8.0-Linux.deb -o /opt/rocm/debians/rocrand.deb
77+
dpkg -i /opt/rocm/debians/rocrand.deb
78+
}
79+
6880
# Install Python packages depending on the base OS
6981
if [ -f /etc/lsb-release ]; then
7082
install_ubuntu
@@ -77,3 +89,5 @@ fi
7789

7890
install_hip_thrust
7991
install_hcrng
92+
install_rocrand
93+
install_hcsparse

0 commit comments

Comments
 (0)