File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments