Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/performance/argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ def parse_cli_args():
slurm_args.add_argument(
"-cb",
"--custom_bash_cmds",
type=list_of_strings,
help="Comma separated string of bash commands",
nargs="*",
help="List of bash commands to execute before the main command",
default=[],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep None as default or change the condition in scripts/performance/utils/executors.py that currently checks for None?

)
slurm_args.add_argument(
Expand Down
4 changes: 2 additions & 2 deletions scripts/performance/utils/executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ def slurm_executor(
numa_cmd = f"numactl --cpunodebind=$((SLURM_LOCALID/{numa_divisor})) --membind=$((SLURM_LOCALID/{numa_divisor}))"
if gpu.lower() in ["b300"]:
numa_cmd += " -C $((SLURM_LOCALID * 16)),$((SLURM_LOCALID * 16 + 1))"
custom_bash_cmds.append(numa_cmd)
custom_bash_cmds.append(f" ; {numa_cmd}")

launcher = SlurmTemplate(
template_inline=INLINE_TEMPLATE,
template_vars={"pre_cmds": " ; ".join(custom_bash_cmds)},
template_vars={"pre_cmds": " ".join(custom_bash_cmds)},
Comment thread
malay-nagda marked this conversation as resolved.
Outdated
)

executor = run.SlurmExecutor(
Expand Down
Loading