Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor 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
arbor-sim
arbor
Commits
8bf65cdd
Unverified
Commit
8bf65cdd
authored
3 years ago
by
Thorsten Hater
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Elaborate on mpi4py. (#1940)
parent
74ccde24
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/install/python.rst
+3
-2
3 additions, 2 deletions
doc/install/python.rst
python/context.cpp
+6
-1
6 additions, 1 deletion
python/context.cpp
with
9 additions
and
3 deletions
doc/install/python.rst
+
3
−
2
View file @
8bf65cdd
...
@@ -91,8 +91,9 @@ The following flags can be used to configure the installation:
...
@@ -91,8 +91,9 @@ The following flags can be used to configure the installation:
* ``ARB_WITH_NEUROML=<ON|OFF>``: Enable support for NeuroML2 morphologies,
* ``ARB_WITH_NEUROML=<ON|OFF>``: Enable support for NeuroML2 morphologies,
requires ``libxml2`` library. Default ``OFF``
requires ``libxml2`` library. Default ``OFF``
* ``ARB_WITH_MPI=<ON|OFF>``: Enable MPI support, requires MPI library.
* ``ARB_WITH_MPI=<ON|OFF>``: Enable MPI support, requires MPI library. Default
Default ``OFF``.
``OFF``. If you intend to use ``mpi4py``, you need to install the package before
building Arbor, as binding it requires access to its headers.
* ``ARB_GPU=<none|cuda|cuda-clang|hip>``: Enable GPU support for NVIDIA GPUs
* ``ARB_GPU=<none|cuda|cuda-clang|hip>``: Enable GPU support for NVIDIA GPUs
with nvcc using ``cuda``, or with clang using ``cuda-clang`` (both require
with nvcc using ``cuda``, or with clang using ``cuda-clang`` (both require
cudaruntime). Enable GPU support for AMD GPUs with hipcc using ``hip``. By
cudaruntime). Enable GPU support for AMD GPUs with hipcc using ``hip``. By
...
...
This diff is collapsed.
Click to expand it.
python/context.cpp
+
6
−
1
View file @
8bf65cdd
...
@@ -161,7 +161,12 @@ void register_contexts(pybind11::module& m) {
...
@@ -161,7 +161,12 @@ void register_contexts(pybind11::module& m) {
throw
pyarb_error
(
"Attempt to set an MPI communicator but Arbor is not configured with MPI support."
);
throw
pyarb_error
(
"Attempt to set an MPI communicator but Arbor is not configured with MPI support."
);
}
}
#else
#else
const
char
*
mpi_err_str
=
"mpi must be None, or an MPI communicator"
;
const
char
*
mpi_err_str
=
"mpi must be None, or a known MPI communicator type. Supported MPI implementations = native"
#ifdef ARB_WITH_MPI4PY
", mpi4py."
;
#else
". Consider installing mpi4py and rebuilding Arbor."
;
#endif
if
(
can_convert_to_mpi_comm
(
mpi
))
{
if
(
can_convert_to_mpi_comm
(
mpi
))
{
return
context_shim
(
arb
::
make_context
(
a
,
convert_to_mpi_comm
(
mpi
)));
return
context_shim
(
arb
::
make_context
(
a
,
convert_to_mpi_comm
(
mpi
)));
}
}
...
...
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