Skip to content

Commit

Permalink
Merge pull request #367 from gafusion/jmcclena_portalqsub
Browse files Browse the repository at this point in the history
fix PPPL_PORTAL qsub file
  • Loading branch information
jcandy authored Apr 30, 2024
2 parents 71acc94 + f1cca15 commit beed786
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions platform/qsub/qsub.OMEGA
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ echo "#SBATCH -e $SIMDIR/batch.err" >> $bfile
echo "#SBATCH -t $WALLTIME" >> $bfile
echo "#SBATCH -n $cores_used" >> $bfile

if [ -n $MEMPERNODE ]
if [ -n "$MEMPERNODE" ]
then
echo "#SBATCH --mem $MEMNODE" >> $bfile
elif [ -n $MEMPERCPU ]
echo "#SBATCH --mem $MEMPERNODE" >> $bfile
elif [ -n "$MEMPERCPU" ]
echo "#SBATCH --mem-per-cpu $MEMPERCPU" >> $bfile
else
echo "#SBATCH --mem-per-cpu 16GB" >> $bfile
Expand Down
7 changes: 4 additions & 3 deletions platform/qsub/qsub.PPPL_PORTAL
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ echo "#SBATCH -e $SIMDIR/batch.err" >> $bfile
echo "#SBATCH -t $WALLTIME" >> $bfile
echo "#SBATCH -n $cores_used" >> $bfile

if [ -n $MEMPERNODE ]
if [ -n "$MEMPERNODE" ]
then
echo "#SBATCH --mem $MEMPERNODE" >> $bfile
elif [ -n "$MEMPERCPU" ]
then
echo "#SBATCH --mem $MEMNODE" >> $bfile
elif [ -n $MEMPERCPU ]
echo "#SBATCH --mem-per-cpu $MEMPERCPU" >> $bfile
else
echo "#SBATCH --mem-per-cpu 4GB" >> $bfile
Expand Down

0 comments on commit beed786

Please sign in to comment.