-
Notifications
You must be signed in to change notification settings - Fork 20
/
11b_parallel_job.slurm
32 lines (27 loc) · 1.08 KB
/
11b_parallel_job.slurm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
#SBATCH --account=rpp-kshook
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --mem-per-cpu=1G
#SBATCH --time=00:10:00 # time (DD-HH:MM)
#SBATCH --job-name=easymore_test_parallel
#SBATCH --error=easymore_test_parallel_error
# remove existing modules
module reset
module purge
deactivate
# load needed modules
module load StdEnv/2020 gcc/9.3.0 openmpi/4.0.3
module load gdal/3.5.1 libspatialindex/1.8.5
module load python/3.8.10 scipy-stack/2022a mpi4py/3.0.3
# create the virtual env and install easymore from git repo
virtualenv $SLURM_TMPDIR/easymore-env
source $SLURM_TMPDIR/easymore-env/bin/activate
pip install --no-index --upgrade pip
# pip install easymore # from pypi
# pip install --no-index easymore # install from CC wheelhouse, similar to above this can be installed locally or from pypi
pip install git+https://github.com/ShervanGharari/EASYMORE.git
# check if the code runs smoothly given the example on the easymore github repo
#python 11b_parallel_job.py
# alternative using command line and config file
easymore conf ./data/config/11b_parallel_config.json