File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed
.github/workflows/dependencies Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 12
12
13
13
set -eu -o pipefail
14
14
15
- # Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu
16
- wget -q -O - http://repo.radeon.com/rocm/rocm.gpg.key \
17
- | sudo apt-key add -
18
- echo ' deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ ubuntu main' \
19
- | sudo tee /etc/apt/sources.list.d/rocm.list
15
+ # `man apt.conf`:
16
+ # Number of retries to perform. If this is non-zero APT will retry
17
+ # failed files the given number of times.
18
+ echo ' Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries
19
+
20
+ # Ref.: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/native-install/ubuntu.html
21
+
22
+ # Make the directory if it doesn't exist yet.
23
+ # This location is recommended by the distribution maintainers.
24
+ sudo mkdir --parents --mode=0755 /etc/apt/keyrings
25
+
26
+ # Download the key, convert the signing-key to a full
27
+ # keyring required by apt and store in the keyring directory
28
+ wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
29
+ gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
20
30
31
+ curl -O https://repo.radeon.com/rocm/rocm.gpg.key
32
+ sudo apt-key add rocm.gpg.key
33
+
34
+ source /etc/os-release # set UBUNTU_CODENAME: focal or jammy or ...
35
+
36
+ echo " deb [arch=amd64] https://repo.radeon.com/rocm/apt/${1-latest} ${UBUNTU_CODENAME} main" \
37
+ | sudo tee /etc/apt/sources.list.d/rocm.list
21
38
echo ' export PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin:$PATH' \
22
39
| sudo tee -a /etc/profile.d/rocm.sh
40
+
23
41
# we should not need to export HIP_PATH=/opt/rocm/hip with those installs
24
42
25
43
sudo apt-get update
You can’t perform that action at this time.
0 commit comments