Skip to content

Commit 60ba913

Browse files
authored
Follow the white rabbit -- no AWS custom packages any longer. (#219)
* Follow the white rabbit -- no AWS custom packages any longer. * The cmake change made it into the white rabbit drop, it seems.
1 parent 97ad87d commit 60ba913

File tree

1 file changed

+5
-48
lines changed

1 file changed

+5
-48
lines changed

docker/caffe2/jenkins/common/install_rocm.sh

Lines changed: 5 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ install_ubuntu() {
77
apt-get install -y wget
88
apt-get install -y libopenblas-dev
99

10-
DEB_ROCM_REPO=http://repo.radeon.com/rocm/apt/debian
10+
DEB_ROCM_REPO=http://repo.radeon.com/rocm/misc/facebook/apt/.apt_1.9.white_rabbit/debian
1111
# Add rocm repository
1212
wget -qO - $DEB_ROCM_REPO/rocm.gpg.key | apt-key add -
1313
echo "deb [arch=amd64] $DEB_ROCM_REPO xenial main" > /etc/apt/sources.list.d/rocm.list
@@ -22,15 +22,11 @@ install_ubuntu() {
2222
miopengemm \
2323
rocblas \
2424
rocm-profiler \
25-
cxlactivitylogger
25+
cxlactivitylogger \
26+
rocsparse \
27+
hipsparse \
28+
rocrand
2629

27-
# hotfix a bug in hip's cmake files, this has been fixed in
28-
# https://github.com/ROCm-Developer-Tools/HIP/pull/516 but for
29-
# some reason it has not included in the latest rocm release
30-
if [[ -f /opt/rocm/hip/cmake/FindHIP.cmake ]]; then
31-
sudo sed -i 's/\ -I${dir}/\ $<$<BOOL:${dir}>:-I${dir}>/' /opt/rocm/hip/cmake/FindHIP.cmake
32-
fi
33-
3430
# HIP has a bug that drops DEBUG symbols in generated MakeFiles.
3531
# https://github.com/ROCm-Developer-Tools/HIP/pull/588
3632
if [[ -f /opt/rocm/hip/cmake/FindHIP.cmake ]]; then
@@ -50,42 +46,6 @@ install_hip_thrust() {
5046
git clone --recursive https://github.com/ROCmSoftwarePlatform/cub-hip.git /data/Thrust/thrust/system/cuda/detail/cub-hip
5147
}
5248

53-
# Install an updated version of rocRand that's PyTorch compatible.
54-
install_rocrand() {
55-
mkdir -p /opt/rocm/debians
56-
curl https://s3.amazonaws.com/ossci-linux/rocrand-1.8.0-Linux.deb -o /opt/rocm/debians/rocrand.deb
57-
dpkg -i /opt/rocm/debians/rocrand.deb
58-
}
59-
60-
# Install rocSPARSE/hipSPARSE that will be released soon - can co-exist w/ hcSPARSE which will be removed soon
61-
install_hipsparse() {
62-
mkdir -p /opt/rocm/debians
63-
curl https://s3.amazonaws.com/ossci-linux/rocsparse-0.1.2.114-Linux.deb -o /opt/rocm/debians/rocsparse.deb
64-
curl https://s3.amazonaws.com/ossci-linux/hipsparse-0.1.2.55-Linux.deb -o /opt/rocm/debians/hipsparse.deb
65-
dpkg -i /opt/rocm/debians/rocsparse.deb
66-
dpkg -i /opt/rocm/debians/hipsparse.deb
67-
}
68-
69-
# Install custom hcc containing two compiler fixes relevant to PyTorch
70-
install_customhcc() {
71-
HIP_VERSION="1.5.18354"
72-
mkdir -p /opt/rocm/debians
73-
curl https://s3.amazonaws.com/ossci-linux/hcc-1.2.18272-Linux.deb -o /opt/rocm/debians/hcc-Linux.deb
74-
curl "https://s3.amazonaws.com/ossci-linux/hip_base-$HIP_VERSION.deb" -o /opt/rocm/debians/hip_base.deb
75-
curl "https://s3.amazonaws.com/ossci-linux/hip_doc-$HIP_VERSION.deb" -o /opt/rocm/debians/hip_doc.deb
76-
curl "https://s3.amazonaws.com/ossci-linux/hip_samples-$HIP_VERSION.deb" -o /opt/rocm/debians/hip_samples.deb
77-
curl "https://s3.amazonaws.com/ossci-linux/hip_hcc-$HIP_VERSION.deb" -o /opt/rocm/debians/hip_hcc.deb
78-
dpkg -i /opt/rocm/debians/hcc-Linux.deb
79-
dpkg -i /opt/rocm/debians/hip_base.deb
80-
dpkg -i /opt/rocm/debians/hip_doc.deb
81-
dpkg -i /opt/rocm/debians/hip_samples.deb
82-
dpkg -i /opt/rocm/debians/hip_hcc.deb
83-
84-
if [[ -f /opt/rocm/hip/cmake/FindHIP.cmake ]]; then
85-
sudo sed -i 's/\ -I${dir}/\ $<$<BOOL:${dir}>:-I${dir}>/' /opt/rocm/hip/cmake/FindHIP.cmake
86-
fi
87-
}
88-
8949
# Install Python packages depending on the base OS
9050
if [ -f /etc/lsb-release ]; then
9151
install_ubuntu
@@ -97,6 +57,3 @@ else
9757
fi
9858

9959
install_hip_thrust
100-
install_rocrand
101-
install_hipsparse
102-
install_customhcc

0 commit comments

Comments
 (0)