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
fb5d4ea7
Unverified
Commit
fb5d4ea7
authored
5 years ago
by
Sam Yates
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Permit size_t to be unsigned int for MPI. (#976)
* Amend `size_t` type check in `mpi.hpp` to support 32-bit builds.
parent
ec60bcc1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arbor/communication/mpi.hpp
+3
-2
3 additions, 2 deletions
arbor/communication/mpi.hpp
with
3 additions
and
2 deletions
arbor/communication/mpi.hpp
+
3
−
2
View file @
fb5d4ea7
...
@@ -58,9 +58,10 @@ MAKE_TRAITS(unsigned long, MPI_UNSIGNED_LONG)
...
@@ -58,9 +58,10 @@ MAKE_TRAITS(unsigned long, MPI_UNSIGNED_LONG)
MAKE_TRAITS
(
long
long
,
MPI_LONG_LONG
)
MAKE_TRAITS
(
long
long
,
MPI_LONG_LONG
)
MAKE_TRAITS
(
unsigned
long
long
,
MPI_UNSIGNED_LONG_LONG
)
MAKE_TRAITS
(
unsigned
long
long
,
MPI_UNSIGNED_LONG_LONG
)
static_assert
(
std
::
is_same
<
std
::
size_t
,
unsigned
long
>::
value
||
static_assert
(
std
::
is_same
<
std
::
size_t
,
unsigned
>::
value
||
std
::
is_same
<
std
::
size_t
,
unsigned
long
>::
value
||
std
::
is_same
<
std
::
size_t
,
unsigned
long
long
>::
value
,
std
::
is_same
<
std
::
size_t
,
unsigned
long
long
>::
value
,
"size_t is not the same as
unsigned long or
unsigned
long long
"
);
"size_t is not the same as
any MPI
unsigned
type
"
);
// Gather individual values of type T from each rank into a std::vector on
// Gather individual values of type T from each rank into a std::vector on
// the root rank.
// the root rank.
...
...
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