Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Klaus Noelp
ebrains-spack-builds
Commits
b3e0efa7
Commit
b3e0efa7
authored
2 months ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
feat(py-bluepyopt): copy package from upstream
parent
a8d08259
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/py-bluepyopt/package.py
+41
-0
41 additions, 0 deletions
packages/py-bluepyopt/package.py
packages/py-bluepyopt/pmi_rank.patch
+17
-0
17 additions, 0 deletions
packages/py-bluepyopt/pmi_rank.patch
with
58 additions
and
0 deletions
packages/py-bluepyopt/package.py
0 → 100644
+
41
−
0
View file @
b3e0efa7
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from
spack.package
import
*
class
PyBluepyopt
(
PythonPackage
):
"""
Bluebrain Python Optimisation Library
"""
homepage
=
"
https://github.com/BlueBrain/BluePyOpt
"
pypi
=
"
bluepyopt/bluepyopt-1.9.27.tar.gz
"
license
(
"
LGPL-3.0-only
"
)
# NOTE : while adding new release check pmi_rank.patch compatibility
version
(
"
1.14.11
"
,
sha256
=
"
fe2830c36699a93d2ef9ddef316da42f9c57ca6654c92356eab973ee2298ebf7
"
)
version
(
"
1.14.4
"
,
sha256
=
"
7567fd736053250ca06030f67ad93c607b100c2b98df8dc588c26b64cb3e171c
"
)
# patch required to avoid hpe-mpi linked mechanism library
patch
(
"
pmi_rank.patch
"
)
variant
(
"
scoop
"
,
default
=
False
,
description
=
"
Use BluePyOpt together with py-scoop
"
)
depends_on
(
"
py-setuptools
"
,
type
=
"
build
"
)
depends_on
(
"
py-numpy@1.6:
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-pandas@0.18:
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-deap@1.3.3:
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-efel@2.13:
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-ipyparallel
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-pickleshare@0.7.3:
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-jinja2@2.8:
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-future
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-pebble@4.6:
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-scoop@0.7:
"
,
type
=
(
"
build
"
,
"
run
"
),
when
=
"
+scoop
"
)
depends_on
(
"
neuron@7.4:
"
,
type
=
(
"
build
"
,
"
run
"
),
when
=
"
@:1.14.4
"
)
depends_on
(
"
neuron@7.8:
"
,
type
=
(
"
build
"
,
"
run
"
),
when
=
"
@1.14.11:
"
)
def
setup_run_environment
(
self
,
env
):
env
.
unset
(
"
PMI_RANK
"
)
env
.
set
(
"
NEURON_INIT_MPI
"
,
"
0
"
)
This diff is collapsed.
Click to expand it.
packages/py-bluepyopt/pmi_rank.patch
0 → 100644
+
17
−
0
View file @
b3e0efa7
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 diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment