Skip to content

Commit

Permalink
Fix machine config files
Browse files Browse the repository at this point in the history
Make them consistent. These attributes are currently not
used.
  • Loading branch information
nilsvu committed Nov 19, 2024
1 parent 5efe9e7 commit 56322b3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion support/Machines/CaltechHpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Machine:
https://www.hpc.caltech.edu/documentation
# Split one physical 56 core node into two charm nodes
DefaultTasksPerNode: 2
DefaultProcsPerTasks: 28
DefaultProcsPerTask: 28
DefaultQueue: "expansion"
DefaultTimeLimit: "1-00:00:00"
LaunchCommandSingleNode: ["mpirun", "-n", "1"]
2 changes: 1 addition & 1 deletion support/Machines/Mbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Machine:
More information:
https://github.com/sxs-collaboration/WelcomeToSXS/wiki/Mbot
DefaultTasksPerNode: 6
DefaultProcsPerTasks: 32
DefaultProcsPerTask: 32
DefaultQueue: "normal"
DefaultTimeLimit: "1-00:00:00"
LaunchCommandSingleNode: ["mpirun", "-n", "1"]
2 changes: 1 addition & 1 deletion support/Machines/Ocean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Machine:
Description: |
Supercomputer at Cal State Fullerton hosted by Geoffrey Lovelace.
DefaultTasksPerNode: 1
DefaultProcsPerTasks: 20
DefaultProcsPerTask: 20
DefaultQueue: "orca-1"
DefaultTimeLimit: "1-00:00:00"
LaunchCommandSingleNode: []
2 changes: 1 addition & 1 deletion support/Machines/Oscar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Machine:
https://docs.ccv.brown.edu/oscar
# Split one physical 32 core node into two charm nodes
DefaultTasksPerNode: 2
DefaultProcsPerTasks: 16
DefaultProcsPerTask: 16
DefaultQueue: "batch"
DefaultTimeLimit: "1-00:00:00"
LaunchCommandSingleNode: ["mpirun", "-n", "1"]
2 changes: 1 addition & 1 deletion support/Machines/Perlmutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Machine:
More information:
https://docs.nersc.gov/systems/perlmutter/
DefaultTasksPerNode: 8
DefaultProcsPerTasks: 32
DefaultProcsPerTask: 32
DefaultQueue: "regular"
DefaultTimeLimit: "1-00:00:00"
2 changes: 1 addition & 1 deletion support/Machines/Sonic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Machine:
More information:
https://it.icts.res.in/docs/sonic-cluster/
DefaultTasksPerNode: 3
DefaultProcsPerTasks: 32
DefaultProcsPerTask: 32
DefaultQueue: "long"
DefaultTimeLimit: "1-00:00:00"
LaunchCommandSingleNode: ["mpirun", "-n", "1"]
9 changes: 6 additions & 3 deletions support/Python/Machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ class Machine(yaml.YAMLObject):
any information that may help people get started using the machine.
Provide links to wiki pages, signup pages, etc., for additional
information.
DefaultProcsPerNode: Default number of worker threads spawned per node.
DefaultTasksPerNode: Default number of tasks per node (MPI ranks).
Often chosen to be the number of sockets on a node.
DefaultProcsPerTask: Default number of worker threads spawned per task.
It is often advised to leave one core per node or socket free for
communication, so this might be the number of cores or hyperthreads
per node minus one.
per node or socket minus one.
DefaultQueue: Default queue that jobs are submitted to. On Slurm systems
you can see the available queues with `sinfo`.
DefaultTimeLimit: Default wall time limit for submitted jobs. For
Expand All @@ -62,7 +64,8 @@ class Machine(yaml.YAMLObject):
# The YAML machine files can have these attributes:
Name: str
Description: str
DefaultProcsPerNode: int
DefaultTasksPerNode: int
DefaultProcsPerTask: int
DefaultQueue: str
DefaultTimeLimit: str
LaunchCommandSingleNode: List[str]
Expand Down
6 changes: 4 additions & 2 deletions tests/support/Python/Test_Machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def setUp(self):
Machine=dict(
Name="TestMachine",
Description="Just for testing",
DefaultProcsPerNode=15,
DefaultTasksPerNode=2,
DefaultProcsPerTask=15,
DefaultQueue="production",
DefaultTimeLimit="1-00:00:00",
LaunchCommandSingleNode=["mpirun", "-n", "1"],
Expand All @@ -40,7 +41,8 @@ def test_this_machine(self):
self.assertIsInstance(machine, Machine)
self.assertEqual(machine.Name, "TestMachine")
self.assertEqual(machine.Description, "Just for testing")
self.assertEqual(machine.DefaultProcsPerNode, 15)
self.assertEqual(machine.DefaultTasksPerNode, 2)
self.assertEqual(machine.DefaultProcsPerTask, 15)
self.assertEqual(machine.DefaultQueue, "production")
self.assertEqual(machine.DefaultTimeLimit, "1-00:00:00")
self.assertEqual(machine.LaunchCommandSingleNode, ["mpirun", "-n", "1"])
Expand Down

0 comments on commit 56322b3

Please sign in to comment.