Skip to content

Commit

Permalink
add set -x back
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfonba committed May 22, 2024
1 parent ac7a6dd commit 794a629
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions toolchain/templates/bridges2.mako
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ echo
${helpers.run_prologue(target)}

% if not mpi:
(${profiler} "${target.get_install_binpath(case)}")
(set -x; ${profiler} "${target.get_install_binpath(case)}")
% else:
(${profiler} \
(set -x; ${profiler} \
mpirun -np ${nodes*tasks_per_node} \
${' '.join([f"'{x}'" for x in ARG('--') ])} \
"${target.get_install_binpath(case)}")
Expand Down
8 changes: 4 additions & 4 deletions toolchain/templates/default.mako
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ warn "Consider using a different template via the $MAGENTA--computer$COLOR_RESET
(${profiler} "${target.get_install_binpath(case)}")
% else:
if [ "$binary" == "jsrun" ]; then
(${profiler} \
(set -x; j${profiler} \
jsrun --nrs ${tasks_per_node*nodes} \
--cpu_per_rs 1 \
--gpu_per_rs ${1 if gpu else 0} \
--tasks_per_rs 1 \
${' '.join([f"'{x}'" for x in ARG('--') ])} \
"${target.get_install_binpath(case)}")
elif [ "$binary" == "srun" ]; then
(${profiler} \
(et -x; {profiler} \
srun --ntasks-per-node ${tasks_per_node} \
${' '.join([f"'{x}'" for x in ARG('--') ])} \
"${target.get_install_binpath(case)}")
elif [ "$binary" == "mpirun" ]; then
(${profiler} \
(set -x; ${profiler} \
$binary -np ${nodes*tasks_per_node} \
${' '.join([f"'{x}'" for x in ARG('--') ])} \
"${target.get_install_binpath(case)}")
elif [ "$binary" == "mpiexec" ]; then
(${profiler} \
(set -x; ${profiler} \
$binary --ntasks ${nodes*tasks_per_node} \
${' '.join([f"'{x}'" for x in ARG('--') ])} \
"${target.get_install_binpath(case)}")
Expand Down
4 changes: 2 additions & 2 deletions toolchain/templates/delta.mako
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sw/spack/deltas11-2023-03/apps/linux-rh
${helpers.run_prologue(target)}

% if not mpi:
(${profiler} "${target.get_install_binpath(case)}")
(set -x; ${profiler} "${target.get_install_binpath(case)}")
% else:
(${profiler} \
(set -x; ${profiler} \
mpirun -np ${nodes*tasks_per_node} \
${' '.join([f"'{x}'" for x in ARG('--') ])} \
"${target.get_install_binpath(case)}")
Expand Down
6 changes: 3 additions & 3 deletions toolchain/templates/frontier.mako
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ echo
${helpers.run_prologue(target)}

% if not mpi:
(${profiler} "${target.get_install_binpath(case)}")
(set -x; ${profiler} "${target.get_install_binpath(case)}")
% else:
(${profiler} \
srun -N ${nodes} \
(set -x; srun -N ${nodes} \
-n ${tasks_per_node} \
${profiler} \
${' '.join([f"'{x}'" for x in ARG('--') ])} \
"${target.get_install_binpath(case)}")
% endif
Expand Down
4 changes: 2 additions & 2 deletions toolchain/templates/phoenix.mako
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ echo
${helpers.run_prologue(target)}

% if not mpi:
(${profiler} "${target.get_install_binpath(case)}")
(set -x; ${profiler} "${target.get_install_binpath(case)}")
% else:
(${profiler} \
(set -x; ${profiler} \
mpirun -np ${nodes*tasks_per_node} \
--bind-to none \
${' '.join([f"'{x}'" for x in ARG('--') ])} \
Expand Down
4 changes: 2 additions & 2 deletions toolchain/templates/summit.mako
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ echo
${helpers.run_prologue(target)}

% if not mpi:
(${rofiler} "${target.get_install_binpath(case)}")
(set -x; ${rofiler} "${target.get_install_binpath(case)}")
% else:
(${profiler} \
(set -x; ${profiler} \
jsrun \
${'--smpiargs="-gpu"' if gpu else ''} \
--nrs ${tasks_per_node*nodes} \
Expand Down

0 comments on commit 794a629

Please sign in to comment.