-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db8ad75
commit 9826dfa
Showing
4 changed files
with
40 additions
and
30 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# Scripts to quickly obtain all relevant information out of a new nvidia pytorch container. | ||
|
||
# Container setup | ||
apt update && DEBIAN_FRONTEND=noninteractive apt install -y build-essential openssh-client python3-dev git && apt clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Setup heat dependencies | ||
git clone https://github.com/helmholtz-analytics/heat.git | ||
cd heat | ||
pip install --upgrade pip | ||
pip install mpi4py --no-binary :all: | ||
pip install .[netcdf,hdf5,dev] | ||
|
||
# Print environment | ||
pip list | grep heat | ||
pip list | grep torch | ||
python --version | ||
nvcc --version | ||
mpirun --version | ||
|
||
# Run tests | ||
HEAT_TEST_USE_DEVICE=gpu mpirun -n 1 pytest heat/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Clear environment, else mpi4py will fail to install. | ||
ml purge | ||
|
||
SBATCH_PARAMS=( | ||
--partition normal | ||
--time 00:10:00 | ||
--nodes 1 | ||
--tasks-per-node 1 | ||
--gres gpu:1 | ||
--container-image ~/containers/nvidia+pytorch+23.05-py3.sqsh | ||
--container-writable | ||
--container-mounts /etc/slurm/task_prolog.hk:/etc/slurm/task_prolog.hk,/scratch:/scratch | ||
--container-mount-home | ||
) | ||
|
||
sbatch "${SBATCH_PARAMS[@]}" ./install_print_test.sh |
This file was deleted.
Oops, something went wrong.