Skip to content

Commit

Permalink
allocation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenhariri committed Nov 11, 2023
1 parent e18ea97 commit fe487e0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@

A [simple] [general-purpose] Python template πŸπŸš€πŸŽ‰πŸ¦•

## HPC Resource Allocation

1. Start new tmux session
```bash
tmux new -s <session-name>
```

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
Expand Down
16 changes: 9 additions & 7 deletions hpc.init
Original file line number Diff line number Diff line change
Expand Up @@ -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
# Install dependencies
# make piu numpy matplotlib

# Install dependencies for GPU
make hpc-gpu-deps
make hpc-gpu-run

0 comments on commit fe487e0

Please sign in to comment.