Skip to content

Commit 261056d

Browse files
committed
fix: avoid duplicate 'run' subcommand in flux mpi_cmd helper
The helpers.mako mpi_cmd hardcoded 'flux run' but tuo.mako's mpi_config flags already include 'run'. Let flags carry the subcommand, matching how _mpi_cmd in Python handles it.
1 parent 574c277 commit 261056d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/templates/include/helpers.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ END
8888
flags_str = ' '.join(all_flags)
8989
%>\
9090
% if b == 'flux':
91-
(set -x; ${profiler} flux run --ntasks=${nprocs} ${flags_str} "${binary_path}")
91+
(set -x; ${profiler} flux ${flags_str} --ntasks=${nprocs} "${binary_path}")
9292
% elif b == 'srun':
9393
(set -x; ${profiler} srun --ntasks ${nprocs} ${flags_str} "${binary_path}")
9494
% else:

0 commit comments

Comments
 (0)