forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix for importing neuron+mpi compiled mechanism library
- also added latest releases of bluepyopt and efel
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
var/spack/repos/builtin/packages/py-bluepyopt/pmi_rank.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/bluepyopt/ephys/simulators.py b/bluepyopt/ephys/simulators.py | ||
index e71ad8b..3c93237 100644 | ||
--- a/bluepyopt/ephys/simulators.py | ||
+++ b/bluepyopt/ephys/simulators.py | ||
@@ -89,6 +89,12 @@ class NrnSimulator(object): | ||
NrnSimulator._nrn_disable_banner() | ||
self.banner_disabled = True | ||
|
||
+ # certain mpi libraries (hpe-mpt) use PMI_RANK env variable to initialize | ||
+ # MPI before calling MPI_Init (which is undesirable). Unset this variable | ||
+ # if exist to avoid issue with loading neuron and mechanism library. | ||
+ if 'PMI_RANK' in os.environ: | ||
+ os.environ.pop("PMI_RANK") | ||
+ | ||
import neuron # NOQA | ||
|
||
return neuron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters