@@ -33,26 +33,31 @@ warn "Consider using a different template via the $MAGENTA--computer$COLOR_RESET
3333    ${helpers.run_prologue(target)} 
3434
3535    % if  not mpi:
36-         ${'  '  .join([f"'{x}'" for x in profiler ])}  " ${target.get_install_binpath()} " 
36+         (set -x ;   ${'  '  .join([f"'{x}'" for x in profiler ])}  " ${target.get_install_binpath()} " ) 
3737    % else:
3838        if  [ " $binary "   ==  " jsrun"   ];  then 
39-             ${'  '  .join([f"'{x}'" for x in profiler ])}              \
39+             (set -x ;   ${'  '  .join([f"'{x}'" for x in profiler ])}    \
4040                jsrun --nrs          ${tasks_per_node* nodes}       \
4141                      --cpu_per_rs   1                            \
4242                      --gpu_per_rs   ${1 if gpu else 0}            \
4343                      --tasks_per_rs 1                            \
4444                      ${'  '  .join([f"'{x}'" for x in ARG('--') ])}  \
45-                       " ${target.get_install_binpath()} " 
45+                       " ${target.get_install_binpath()} " ) 
4646        elif  [ " $binary "   ==  " srun"   ];  then 
47-             ${'  '  .join([f"'{x}'" for x in profiler ])}             \
47+             (set -x ;   ${'  '  .join([f"'{x}'" for x in profiler ])}   \
4848                srun --ntasks-per-node ${tasks_per_node}          \
4949                     ${'  '  .join([f"'{x}'" for x in ARG('--') ])}  \
50-                      " ${target.get_install_binpath()} " 
51-         elif  [ " $binary "   ==  " mpirun"   ]  ||  [  " $binary "   ==   " mpiexec "  ] ;  then 
52-             ${'  '  .join([f"'{x}'" for x in profiler ])}                \
50+                      " ${target.get_install_binpath()} " ) 
51+         elif  [ " $binary "   ==  " mpirun"   ];  then 
52+             (set -x ;   ${'  '  .join([f"'{x}'" for x in profiler ])}      \
5353                $binary  -np ${nodes* tasks_per_node}                  \
5454                        ${'  '  .join([f"'{x}'" for x in ARG('--') ])}  \
55-                         " ${target.get_install_binpath()} " 
55+                         " ${target.get_install_binpath()} "  )
56+         elif  [ " $binary "   ==  " mpiexec"   ];  then 
57+             (set -x;  ${'  '  .join([f"'{x}'" for x in profiler ])}      \
58+                 $binary  --ntasks ${nodes* tasks_per_node}             \
59+                         ${'  '  .join([f"'{x}'" for x in ARG('--') ])}  \
60+                         " ${target.get_install_binpath()} "  )
5661        fi 
5762    % endif
5863
0 commit comments