From fe487e0cce7b93813a3431ee6c173ec577fda4c8 Mon Sep 17 00:00:00 2001 From: Mohsen Hariri Date: Sat, 11 Nov 2023 14:14:04 -0500 Subject: [PATCH] allocation examples --- README.md | 11 +++++++++++ hpc.init | 16 +++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9ccfce3..30db6d2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,18 @@ A [simple] [general-purpose] Python template 🐍🚀🎉🦕 +## HPC Resource Allocation +1. Start new tmux session + ```bash + tmux new -s + ``` + +2. Request interactive session + For example, to request 24 cores, 2 GPUs, and 32 GB memory: + ```bash + srun -A vxc204_aisc -p aisc -c 24 --gres=gpu:2 --mem=32G --pty bash + ``` ## Run on HPC 1. Clone the repository diff --git a/hpc.init b/hpc.init index f54ac7b..828cc7e 100644 --- a/hpc.init +++ b/hpc.init @@ -19,12 +19,14 @@ make env-local make test make check -# install all dependencies available in requirements.txt -make pia +## Install all dependencies available in requirements.txt +# make pia # Run Makefile targets -make hpc-run +# make hpc-run -# install pytorch -# make piu install torch torchvision --index-url https://download.pytorch.org/whl/cu117 -# make hpc-gpu-deps -# make hpc-gpu-run \ No newline at end of file +# Install dependencies +# make piu numpy matplotlib + +# Install dependencies for GPU +make hpc-gpu-deps +make hpc-gpu-run \ No newline at end of file