-
Notifications
You must be signed in to change notification settings - Fork 1
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
7ac8c10
commit af2ddf3
Showing
2 changed files
with
57 additions
and
12 deletions.
There are no files selected for viewing
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,36 @@ | ||
#!/bin/bash | ||
#SBATCH -p shared | ||
#SBATCH --mem-per-cpu=10G | ||
#SBATCH --job-name=my_array_job.sh | ||
#SBATCH -c 1 | ||
#SBATCH -o logs/my_array_job.sh.%a.txt | ||
#SBATCH -e logs/my_array_job.sh.%a.txt | ||
#SBATCH --mail-type=ALL | ||
#SBATCH --array=1-10%5 | ||
|
||
set -e | ||
|
||
echo "**** Job starts ****" | ||
date | ||
|
||
echo "**** JHPCE info ****" | ||
echo "User: ${USER}" | ||
echo "Job id: ${SLURM_JOB_ID}" | ||
echo "Job name: ${SLURM_JOB_NAME}" | ||
echo "Node name: ${SLURMD_NODENAME}" | ||
echo "Task id: ${SLURM_ARRAY_TASK_ID}" | ||
|
||
## Load the R module | ||
module load conda_R | ||
|
||
## List current modules for reproducibility | ||
module list | ||
|
||
## Edit with your job command | ||
Rscript -e "options(width = 120); sessioninfo::session_info()" | ||
|
||
echo "**** Job ends ****" | ||
date | ||
|
||
## This script was made using slurmjobs version 0.99.0 | ||
## available from http://research.libd.org/slurmjobs/ |
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