Skip to content

Commit

Permalink
add scripts to submit on cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
vuqv committed Jun 24, 2022
1 parent b4bf53b commit 48f83b2
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ they are currently in the different repository (translation code)
- No money to test !!!

## Notes:
- *Note that in cluster, when submit job, the environment may not load `.bashrc`, so need to add export command in job file:*
`example on job file`
- *Note that in cluster, when submit job, the environment may not load `.bashrc`, so need to
load conda environment in job file:*
`source PATH_TO_ANNACONDA/anaconda3/etc/profile.d/conda.sh`
- Activate environment (e.g py310): `conda activate py310`

-------------------------------------
## Bugs
Expand Down
18 changes: 18 additions & 0 deletions scripts/job_scripts/job_aci_mgc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
## This bah script to run on mgc-nih allocation
#PBS -N N200_CONFIDX
#PBS -l walltime=24:00:00
#PBS -A mgc_nih
#PBS -l qos=mgc_nih
#PBS -l pmem=2gb
#PBS -j oe
#PBS -l feature=rhel7
#PBS -l nodes=1:ppn=1:gpus=1:shared:gc_t4

cd $PBS_O_WORKDIR
echo `pwd`

source /storage/home/qvv5013/work/anaconda3/etc/profile.d/conda.sh

python single_run_get_time_fQ.py -f control_cal_fQ.config

16 changes: 16 additions & 0 deletions scripts/job_scripts/job_cyberlamp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
## This bah script to run on default allocation
#PBS -N cat_SETINDEX
##PBS -r n
#PBS -o output.out
#PBS -e error.err
#PBS -l nodes=1:ppn=1
#PBS -l walltime=8:00:00:00
##PBS -j oe
#PBS -A cyberlamp -l qos=cl_open
cd $PBS_O_WORKDIR

cur_dir=`pwd`
source /storage/home/qvv5013/work/anaconda3/etc/profile.d/conda.sh
#conda activate py37
python single_run_get_time_fQ.py -f control_cal_fQ.config
17 changes: 17 additions & 0 deletions scripts/job_scripts/job_plgrid_gpu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash -l
#SBATCH -J cat_SETINDEX
#SBATCH -N 1
#SBATCH --ntasks-per-node=1
#SBATCH --mem-per-cpu=5GB
#SBATCH --time=72:00:00
#SBATCH -A plgribo3gpu
#SBATCH --gres=gpu
#SBATCH -p plgrid-gpu
#SBATCH --output=output.out
#SBATCH --error=error.err
cd $SLURM_SUBMIT_DIR
srun /bin/hostname

conda activate py310
python single_run_get_time_fQ.py -f control_cal_fQ.config

0 comments on commit 48f83b2

Please sign in to comment.