@@ -60,10 +60,10 @@ sudo mkdir --parents --mode=0755 /etc/apt/keyrings
6060wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
6161 gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
6262
63- echo " deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/6.4 /ubuntu noble main" \
63+ echo " deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/7.0 /ubuntu noble main" \
6464 | sudo tee /etc/apt/sources.list.d/amdgpu.list
6565
66- echo " deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.4 noble main" \
66+ echo " deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/7.0 noble main" \
6767 | sudo tee --append /etc/apt/sources.list.d/rocm.list
6868echo -e ' Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
6969 | sudo tee /etc/apt/preferences.d/rocm-pin-600
@@ -86,8 +86,8 @@ sudo chmod 777 /usr/lib/firmware/amdgpu/ip_discovery.bin
8686
8787
8888# Install a known-working version of Linux as this might change after stable
89- # release. Installl this after DKMS so they are rebuilt.
90- KERNEL=6.8.0-60 -generic
89+ # release. Install this after DKMS so they are rebuilt.
90+ KERNEL=6.8.0-79 -generic
9191
9292sudo apt -y install " linux-image-${KERNEL} "
9393sudo apt -y install " linux-headers-${KERNEL} " " linux-modules-extra-${KERNEL} "
@@ -105,6 +105,13 @@ if [ ! -f ./gem5_wmi.ko ]; then
105105fi
106106popd
107107
108+ # Make the discovery files writeable by packer
109+ touch /usr/lib/firmware/amdgpu/mi300_discovery
110+ touch /usr/lib/firmware/amdgpu/mi350_discovery
111+
112+ chmod 777 /usr/lib/firmware/amdgpu/mi300_discovery
113+ chmod 777 /usr/lib/firmware/amdgpu/mi350_discovery
114+
108115# Note about pip: This disk is created for the express purpose of being run in
109116# gem5 and is therefore effectively sandboxed enough that we can use the pip
110117# option --break-system-packages. If you plan to modify this disk image with
@@ -121,11 +128,9 @@ pip3 install --break-system-packages torch torchvision torchaudio --index-url ht
121128
122129# For a newer version uncomment one below and remove the above install:
123130# Warning: Absurdly slow compared to ROCm 6.0 *in simulation*:
124- # pip3 install --break-system-packages torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.2.4
125- # Warning: Missing python module torch.sparse.......:
126- # pip3 install --break-system-packages torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.3
131+ # pip3 install --break-system-packages torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.4
127132# Warning: nightly build, may not work depending on day. Use at your own risk:
128- # pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.4/ --break-system-packages
133+ # pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/rocm7.0 --break-system-packages
129134
130135# Setup gem5 auto login.
131136mv /home/gem5/serial-getty@.service /lib/systemd/system/
0 commit comments