- Clone repo into HPC Greene at location
/scratch/$USER
, where$USER
is your netid. - Move into
nocturne_lab
folder by running:cd nocturne_lab
- Set up Singularity image:
bash ./hpc/launch_image.sh
- Create a virtual Python environment:
python3 -m venv .venv
- Activate venv:
source .venv/bin/activate
- Install Nocturne:
bash ./hpc/post_setup_image.sh
- Restart Singularity image:
exit
- Relaunch image:
bash ./hpc/launch_image.sh
- Check if Nocturne is properly installed:
- (a) launch a Python shell
- (b) import Nocturne by running
import nocturne; import nocturne_cpp
Request an interactive compute node:
# Example: Request a single GPU for one hour
srun --nodes=1 --tasks-per-node=1 --cpus-per-task=1 --mem=10GB --gres=gpu:1 --time=1:00:00 --pty /bin/bash
Navigate to the repo:
cd /scratch/$USER/nocturne_lab
Launch the Singularity image:
bash ./hpc/launch_image.sh
Activate the Python virtual environment:
source .venv/bin/activate