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
1 change: 0 additions & 1 deletion src/cloudai/systems/slurm/slurm_command_gen_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ def _append_nodes_related_directives(self, content: List[str]) -> Optional[Path]
num_nodes, node_list = self.get_cached_nodes_spec()

if node_list:
content.append("#SBATCH --distribution=arbitrary")
content.append(f"#SBATCH --nodelist={','.join(node_list)}")

hostfile = (self.test_run.output_path / "hostfile.txt").absolute()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def test_append_distribution_and_hostfile_with_nodes(slurm_system: SlurmSystem,
content: List[str] = []
strategy._append_nodes_related_directives(content)

assert "#SBATCH --distribution=arbitrary" in content
assert "#SBATCH --distribution=block" in content
assert "#SBATCH --nodelist=node1,node2" in content

hostfile_path = strategy.test_run.output_path / "hostfile.txt"
Expand Down
Loading