Skip to content

Commit

Permalink
qfds.sh: do not explicitly ask for number of nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgratta committed Jul 29, 2024
1 parent bc68239 commit fee17d7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Utilities/Scripts/qfds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -363,30 +363,40 @@ cat << EOF > $scriptfile
EOF

if [ "$RESOURCE_MANAGER" == "SLURM" ]; then

cat << EOF >> $scriptfile
#SBATCH -J $JOBPREFIX$infile
#SBATCH -e $outerr
#SBATCH -o $outlog
#SBATCH --partition=$queue
#SBATCH --ntasks=$n_mpi_processes
#SBATCH --nodes=$nodes
#SBATCH --cpus-per-task=$n_openmp_threads
#SBATCH --ntasks-per-node=$n_mpi_processes_per_node
#SBATCH --time=$walltime
EOF

if [[ $n_openmp_threads -gt 1 ]] || [[ $max_mpi_processes_per_node -lt 1000 ]] ; then
cat << EOF >> $scriptfile
#SBATCH --nodes=$nodes
#SBATCH --ntasks-per-node=$n_mpi_processes_per_node
EOF
fi

if [ "$EMAIL" != "" ]; then
cat << EOF >> $scriptfile
cat << EOF >> $scriptfile
#SBATCH --mail-user=$EMAIL
#SBATCH --mail-type=ALL
EOF
fi

if [ "$benchmark" == "yes" ]; then
cat << EOF >> $scriptfile
#SBATCH --exclusive
#SBATCH --cpu-freq=Performance
EOF
fi

else # PBS/Torque

cat << EOF >> $scriptfile
#PBS -N $JOBPREFIX$infile
#PBS -e $outerr
Expand Down

0 comments on commit fee17d7

Please sign in to comment.