-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System variant: no scheduler #435
Conversation
systems/tioga/system.py
Outdated
@@ -33,8 +33,8 @@ class Tioga(System): | |||
|
|||
def initialize(self): | |||
super().initialize() | |||
|
|||
self.scheduler = "flux" | |||
if self.spec.variants["scheduler"][0]=="yes": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if self.spec.satisfies("schedule=yes"):
systems/tioga/system.py
Outdated
@@ -33,8 +33,8 @@ class Tioga(System): | |||
|
|||
def initialize(self): | |||
super().initialize() | |||
|
|||
self.scheduler = "flux" | |||
if self.spec.variants["scheduler"][0]=="yes": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variant("scheduler", values=("flux", "mpi"), default="flux", sticky=True, description="...")
lib/benchpark/system.py
Outdated
@@ -82,7 +90,7 @@ def initialize(self): | |||
self.sys_cores_per_node = None | |||
self.sys_gpus_per_node = None | |||
self.sys_mem_per_node = None | |||
self.scheduler = None | |||
self.scheduler = "mpi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.scheduler = "mpi" | |
self.scheduler = self.spec.variants["scheduler"].value |
lib/benchpark/system.py
Outdated
variant( | ||
"scheduler", | ||
default="yes", | ||
values=("yes", "none"), | ||
description="Use the scheduler on the system, or generate scripts without the scheduler commands", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variant( | |
"scheduler", | |
default="yes", | |
values=("yes", "none"), | |
description="Use the scheduler on the system, or generate scripts without the scheduler commands", | |
) | |
variant( | |
"scheduler", | |
default="mpi", | |
values=("mpi",), | |
description="Use the scheduler on the system, or generate scripts without the scheduler commands", | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted the changes from @dyokelson. @becker33 the dry run now shows the error: the value of the variant is 'mpi' when the concretizer expects 'None'. @scheibelp if you are able to help fix this, please do.
3946c3b
to
d3c1ce3
Compare
Now that Tioga has a new variant, the hash location of the Ramble workspace has changed (sorry - #450 ought to help with this) |
As per issue #485, we will do this differently. |
Enable a way to generate run scripts without scheduler instructions, for interactive runs or composing CI runs.
mpi
).system init
).values=("flux", "mpi")
with "flux" being the default option seems brittle.