chore: formatting

This commit is contained in:
2024-09-10 13:56:19 -07:00
parent 49238807cd
commit 9dc3b7ac97
9 changed files with 8 additions and 191 deletions
-20
View File
@@ -1,20 +0,0 @@
ARG OS_VERSION=16.04
FROM ubuntu:${OS_VERSION}
ARG ROCM_VERSION=3.5.1
RUN <<EOF
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl gnupg
curl -sL http://repo.radeon.com/rocm/rocm.gpg.key | apt-key add -
echo "deb [arch=amd64] http://repo.radeon.com/rocm/apt/${ROCM_VERSION}/ xenial main" > /etc/apt/sources.list.d/rocm.list
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sudo libelf1 libnuma-dev build-essential git vim-nox cmake-curses-gui kmod file python3 python3-pip rocm-dev
apt-get clean
rm -rf /var/lib/apt/lists/*
EOF
COPY sudo-nopasswd /etc/sudoers.d/sudo-nopasswd
COPY path-fix /etc/sudoers.d/path-fix
RUN useradd --create-home -G sudo,video --shell /bin/bash rocm
USER rocm
WORKDIR /home/rocm
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/rocm/bin
CMD ["/bin/bash", "-l"]
-2
View File
@@ -1,2 +0,0 @@
# This line modifies the secure path
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/opt/rocm/bin"
-128
View File
@@ -1,128 +0,0 @@
1.9.3 xenial
2.0 xenial
2.1 xenial
2.10.0 xenial
2.10.0-hipclang xenial
2.2 xenial
2.3 xenial
2.4 xenial
2.5 xenial
2.6 xenial
2.7 xenial
2.7.1 xenial
2.7.2 xenial
2.8.0 xenial
2.9.0 xenial
3.0 xenial
3.1 xenial
3.1.1 xenial
3.10 xenial
3.3 xenial
3.5 xenial
3.5.1 xenial
3.7 xenial
3.8 xenial
3.9 xenial
3.9.1 xenial
4.0 xenial
4.0.1 xenial
4.1 xenial
4.1.1 xenial
4.2 ubuntu
4.2 xenial
4.3 ubuntu
4.3 xenial
4.3.1 ubuntu
4.3.1 xenial
4.5 ubuntu
4.5.1 ubuntu
4.5.2 ubuntu
5.0 ubuntu
5.0.1 ubuntu
5.0.2 ubuntu
5.1 ubuntu
5.1.1 ubuntu
5.1.2 ubuntu
5.1.3 ubuntu
5.1.4 ubuntu
5.2 ubuntu
5.2.1 ubuntu
5.2.3 ubuntu
5.2.4 ubuntu
5.2.5 ubuntu
5.3 focal
5.3 jammy
5.3 ubuntu
5.3.2 focal
5.3.2 jammy
5.3.2 ubuntu
5.3.3 focal
5.3.3 jammy
5.3.3 ubuntu
5.4 focal
5.4 jammy
5.4 ubuntu
5.4.1 focal
5.4.1 jammy
5.4.1 ubuntu
5.4.2 focal
5.4.2 jammy
5.4.2 ubuntu
5.4.3 focal
5.4.3 jammy
5.4.3 ubuntu
5.4.5 focal
5.4.5 jammy
5.4.5 ubuntu
5.4.6 focal
5.4.6 jammy
5.4.6 ubuntu
5.5 focal
5.5 jammy
5.5 ubuntu
5.5.1 focal
5.5.1 jammy
5.5.1 ubuntu
5.5.2 focal
5.5.2 jammy
5.5.2 ubuntu
5.5.3 focal
5.5.3 jammy
5.5.3 ubuntu
5.6 focal
5.6 jammy
5.6 ubuntu
5.6.1 focal
5.6.1 jammy
5.6.1 ubuntu
5.7 focal
5.7 jammy
5.7 ubuntu
5.7.1 focal
5.7.1 jammy
5.7.1 ubuntu
5.7.2 focal
5.7.2 jammy
5.7.2 ubuntu
5.7.3 focal
5.7.3 jammy
5.7.3 ubuntu
6.0 focal
6.0 jammy
6.0 ubuntu
6.0.1 focal
6.0.1 jammy
6.0.1 ubuntu
6.0.2 focal
6.0.2 jammy
6.0.2 ubuntu
6.0.3 focal
6.0.3 jammy
6.0.3 ubuntu
6.1 focal
6.1 jammy
6.1 ubuntu
6.1.1 focal
6.1.1 jammy
6.1.1 ubuntu
-3
View File
@@ -1,3 +0,0 @@
# This line grants the any members of the sudo group
# passwordless sudo privileges
%sudo ALL=(ALL) NOPASSWD:ALL
-12
View File
@@ -1,12 +0,0 @@
apt update
apt upgrade -y
apt install wget sudo git
wget -q -O - http://repo.radeon.com/rocm/rocm.gpg.key | apt-key add -
apt update
apt install -y rocm-dev rocm-utils rocm-libs miopen-hip miopengemm rccl
export PATH=/opt/rocm-3.5.1/bin:$PATH
# python 3.6
pip install wheel
python3 setup.py bdist_wheel
echo "gfx803" >> $ROCM_PATH/bin/target.lst'
-24
View File
@@ -1,24 +0,0 @@
import requests
from bs4 import BeautifulSoup
import re
from multiprocessing import Pool
import itertools
base = "https://repo.radeon.com/rocm/apt"
r = requests.get(base).text
versionPage = BeautifulSoup(r, 'html.parser')
getVersion = lambda e : e.get('href')[:-1]
versions = list(map(getVersion, versionPage.findAll('a', attrs={'href': lambda v: re.match(r'^\d', v)})))
def checkVersion(v: str):
r = requests.get(f"{base}/{v}/dists").text
distPage = BeautifulSoup(r, 'html.parser')
codes = distPage.findAll('a', attrs={'href': lambda v: not re.match(r'^[http|\.{2}]', v)})
return [(v, code.string[:-1]) for code in codes]
with Pool() as p:
results = p.map(checkVersion, versions)
for r in results:
for (v, c) in r:
print(f"{v}\t{c}")