Skip to content

Commit 3d35026

Browse files
committed
Add brev initialization script for non-container VM mode
1 parent a19bf70 commit 3d35026

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

build/brev-script.bash

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env -S sudo -u ubuntu -- /bin/bash
2+
3+
cd ~
4+
5+
# Install CUDA Toolkit
6+
curl -s -S -L -O https://developer.download.nvidia.com/compute/cuda/12.9.0/local_installers/cuda-repo-debian12-12-9-local_12.9.0-575.51.03-1_amd64.deb
7+
sudo dpkg -i cuda-repo-debian12-12-9-local_12.9.0-575.51.03-1_amd64.deb
8+
sudo cp /var/cuda-repo-debian12-12-9-local/cuda-*-keyring.gpg /usr/share/keyrings/
9+
sudo apt-get update
10+
sudo apt-get -y install cuda-toolkit-12-9
11+
rm cuda-repo-debian12-12-9-local_12.9.0-575.51.03-1_amd64.deb
12+
13+
# Install Python
14+
curl -s -S -L https://astral.sh/uv/install.sh | sh
15+
source ~/.local/bin/env
16+
uv python install 3.13 --default --preview-features python-install-default
17+
uv venv ~/pyhpc-tutorial/.venv
18+
echo "VIRTUAL_ENV_DISABLE_PROMPT=1 source ~/pyhpc-tutorial/.venv/bin/activate" >> ~/.bashrc
19+
source ~/pyhpc-tutorial/.venv/bin/activate
20+
21+
# Install Python packages
22+
uv pip install -r ~/pyhpc-tutorial/build/requirements.txt
23+
24+
# TODO: Change Jupyter config to set the right working directory, install Nsight Jupyter plugin, and restart Jupyter

0 commit comments

Comments
 (0)