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