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 2, 2017
1 parent cd890b3 commit d671d25
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 @@ -1041,6 +1041,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 @@ -1137,6 +1140,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 @@ -1178,6 +1178,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 @@ -397,5 +397,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 d671d25

Please sign in to comment.