Skip to content

Commit

Permalink
Prevent smtweb from trying to get versions of historical executables
Browse files Browse the repository at this point in the history
The MPI Exectuble doesn't actually need a version.

Addresses open-research#321
  • Loading branch information
guyer committed Jan 27, 2016
1 parent 9394217 commit 6521f23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sumatra/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,11 @@ class MPI(Executable):
default_executable_name = mpirun

if os.path.exists(mpirun): # mpirun is a full path
mpi_cmd = MPI(path=mpirun)
# Executable.__init__ tries to _get_version and we don't care
# See #321
mpi_cmd = MPI(path=mpirun, version="ignore")
else:
mpi_cmd = MPI(path=None)
mpi_cmd = MPI(path=None, version="ignore")
self.mpirun = mpi_cmd.path
# should warn if mpirun not found
self.hosts = hosts
Expand Down

0 comments on commit 6521f23

Please sign in to comment.