Prevent launchers to launch incompatible Step
objects
#594
Labels
area: launcher
Issues related to any of the launchers within SmartSim
repo: smartsim
Issues related to SmartSim infrastructure library
type: feature
Issues that include feature request or feature idea
Description
Launchers should raise an error if users attempt to run an incompatible
Step
.Justification
Launchers determine the correct way of launching a
Step
through its type. For example, the main branching of theSlurmLauncher.run()
method looks like this:The last catch-all
else
branch will try to run anyStep
which is not aSrunStep
or anSbatchStep
as some type ofmpirun
step. A stronger type checking should be enforced to avoid user-errors stemming from wrong script portings (e.g. running aJsrunStep
through theSlurmLauncher
.Implementation Strategy
All
if/elif
branches should ensure a compatible step is being launched, all compatible steps should be covered by the branches (mpirun
steps should be identified in an extensible way). Theelse
branch should raise an error.The text was updated successfully, but these errors were encountered: