Reorder Fugaku Header
Hello @larriola , @mgimenez fyi : @bdepaula
Moved from #1275 (comment 322504)
The problem is that the #PJM directives are ignored after the first.
That is the opposite of Slurm, in which the last #SBATCH directive acts.
The problem is that there is an export in-between, as in SLURM, there is a directive to do the same as the export, so the issue doesn't happen there.
@mgimenez proposed this order for PJM
#PJM -N %JOBNAME%
#%NODES_DIRECTIVE%
#PJM --mpi "proc=%NUMPROC%"
#PJM --mpi "%TASKS_PER_NODE_DIRECTIVE%"
#PJM -L elapse=%WALLCLOCK%:00
#%QUEUE_DIRECTIVE%
#%ACCOUNT_DIRECTIVE%
#%MEMORY_DIRECTIVE%
#%MEMORY_PER_TASK_DIRECTIVE%
#%SHAPE_DIRECTIVE%
#PJM -o %CURRENT_SCRATCH_DIR%/%CURRENT_PROJ_DIR%/%CURRENT_USER%/%DEFAULT.EXPID%/LOG_%DEFAULT.EXPID%/%OUT_LOG_DIRECTIVE%
#PJM -e %CURRENT_SCRATCH_DIR%/%CURRENT_PROJ_DIR%/%CURRENT_USER%/%DEFAULT.EXPID%/LOG_%DEFAULT.EXPID%/%ERR_LOG_DIRECTIVE%
%THREADS_PER_TASK_DIRECTIVE%
%CUSTOM_DIRECTIVES%