AJResearchGroup / nsphs_ml_qt

R package for nsphs_ml_qt
GNU General Public License v3.0
0 stars 1 forks source link

sbatch: error: Invalid directive found in batch script: defined #23

Closed richelbilderbeek closed 2 years ago

richelbilderbeek commented 2 years ago
[richel@rackham2 ~]$ sbatch -A snic2021-22-624 nsphs_ml_qt/scripts_rackham/21_create_issue_18_params.sh 
sbatch: error: Invalid directive found in batch script: defined
richelbilderbeek commented 2 years ago

Problem was this comment in the bash script:

#SBATCH --job-name is defined by caller

This is not SLURM-friendly, change it to

# For sbatch, the '--job-name' is defined by caller