Skip to content

Commit

Permalink
add error for machines that do not support mpi-serial
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed May 3, 2017
1 parent 1402f21 commit 8d3def3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config/acme/machines/config_machines.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,9 @@
<arg name="thread_count"> --envs OMP_NUM_THREADS=$OMP_NUM_THREADS</arg>
</arguments>
</mpirun>
<mpirun mpilib="mpi-serial">
<executable>unsupported</executable>
</mpirun>
<module_system type="soft">
<init_path lang="csh">/etc/profile.d/00softenv.csh</init_path>
<cmd_path lang="csh">soft</cmd_path>
Expand Down Expand Up @@ -1121,6 +1124,9 @@
<arg name="thread_count"> --envs OMP_NUM_THREADS=$OMP_NUM_THREADS</arg>
</arguments>
</mpirun>
<mpirun mpilib="mpi-serial">
<executable>unsupported</executable>
</mpirun>
<module_system type="soft">
<init_path lang="csh">/etc/profile.d/00softenv.csh</init_path>
<cmd_path lang="csh">soft</cmd_path>
Expand Down
3 changes: 3 additions & 0 deletions config/cesm/machines/config_machines.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,9 @@
<arg name="thread_count"> --envs OMP_NUM_THREADS=$ENV{OMP_NUM_THREADS}</arg>
</arguments>
</mpirun>
<mpirun mpilib="mpi-serial">
<executable>unsupported</executable>
</mpirun>
<module_system type="soft">
<init_path lang="csh">/etc/profile.d/00softenv.csh</init_path>
<init_path lang="sh">/etc/profile.d/00softenv.sh</init_path>
Expand Down
4 changes: 3 additions & 1 deletion scripts/lib/CIME/XML/env_mach_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,5 +399,7 @@ def get_mpirun(self, case, attribs, check_members=None, job="case.run", exe_only
exec_node = self.get_node("executable", root=the_match)
expect(exec_node is not None,"No executable found")
executable = exec_node.text

expect("unsupported" not in executable, "%s is not supported for this machine"%attribs["mpilib"])


return executable, args

0 comments on commit 8d3def3

Please sign in to comment.