@@ -7,7 +7,7 @@ install_ubuntu() {
7
7
apt-get install -y wget
8
8
apt-get install -y libopenblas-dev
9
9
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
11
11
# Add rocm repository
12
12
wget -qO - $DEB_ROCM_REPO /rocm.gpg.key | apt-key add -
13
13
echo " deb [arch=amd64] $DEB_ROCM_REPO xenial main" > /etc/apt/sources.list.d/rocm.list
@@ -22,15 +22,11 @@ install_ubuntu() {
22
22
miopengemm \
23
23
rocblas \
24
24
rocm-profiler \
25
- cxlactivitylogger
25
+ cxlactivitylogger \
26
+ rocsparse \
27
+ hipsparse \
28
+ rocrand
26
29
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
-
34
30
# HIP has a bug that drops DEBUG symbols in generated MakeFiles.
35
31
# https://github.com/ROCm-Developer-Tools/HIP/pull/588
36
32
if [[ -f /opt/rocm/hip/cmake/FindHIP.cmake ]]; then
@@ -50,42 +46,6 @@ install_hip_thrust() {
50
46
git clone --recursive https://github.com/ROCmSoftwarePlatform/cub-hip.git /data/Thrust/thrust/system/cuda/detail/cub-hip
51
47
}
52
48
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
-
89
49
# Install Python packages depending on the base OS
90
50
if [ -f /etc/lsb-release ]; then
91
51
install_ubuntu
97
57
fi
98
58
99
59
install_hip_thrust
100
- install_rocrand
101
- install_hipsparse
102
- install_customhcc
0 commit comments