We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb8b576 commit 33c4c71Copy full SHA for 33c4c71
stackinator/recipe.py
@@ -323,9 +323,10 @@ def generate_environment_specs(self, raw):
323
match = re.match(r"^([A-Za-z][A-Za-z0-9_-]*)", spec)
324
if match:
325
mpi_name = match.group(1)
326
- if mpi_name not in ("cray-mpich", "openmpi"):
+ supported_mpis = [k for k in self.mpi_templates.keys()]
327
+ if mpi_name not in supported_mpis:
328
raise Exception(
- f"{mpi_name} is not a supported MPI version: try one of cray-mpich or openmpi."
329
+ f"{mpi_name} is not a supported MPI version: try one of {supported_mpis}."
330
)
331
else:
332
raise Exception(f"{spec} is not a valid MPI spec")
0 commit comments