Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boost_mpi_extensions
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
boost_mpi_extensions
Commits
41c9a87b
Commit
41c9a87b
authored
5 years ago
by
Ali Can Demiralp
Browse files
Options
Downloads
Patches
Plain Diff
Progress.
parent
11b68183
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/boost_mpi_extensions/mpi_detach.hpp
+11
-15
11 additions, 15 deletions
include/boost_mpi_extensions/mpi_detach.hpp
with
11 additions
and
15 deletions
include/boost_mpi_extensions/mpi_detach.hpp
+
11
−
15
View file @
41c9a87b
...
...
@@ -184,12 +184,8 @@ struct state
inline
std
::
optional
<
state
>
global_state
;
// Note: External-linkage optional used as a lazy-initialized stack variable. Must be reset prior to MPI_Finalize.
}
typedef
void
MPI_Detach_callback
(
void
*
);
typedef
void
MPI_Detach_callback_status
(
void
*
,
MPI_Status
*
);
typedef
void
MPI_Detach_callback_statuses
(
void
*
,
std
::
int32_t
,
MPI_Status
*
);
// Note: If the test does not succeed immediately, takes the ownership of the request and invalidates it.
inline
std
::
int32_t
MPI_Detach
(
MPI_Request
*
request
,
MPI_Detach_callback
*
callback
,
void
*
data
)
inline
std
::
int32_t
MPI_Detach
(
MPI_Request
*
request
,
std
::
function
<
void
(
void
*
)
>
callback
,
void
*
data
)
{
if
(
!
detail
::
global_state
)
detail
::
global_state
.
emplace
();
...
...
@@ -209,7 +205,7 @@ inline std::int32_t MPI_Detach ( MPI_Request* requ
return
MPI_SUCCESS
;
}
// Note: If the test does not succeed immediately, takes the ownership of the request and invalidates it.
inline
std
::
int32_t
MPI_Detach_status
(
MPI_Request
*
request
,
MPI_Detach_callback_s
tatus
*
callback
,
void
*
data
)
inline
std
::
int32_t
MPI_Detach_status
(
MPI_Request
*
request
,
std
::
function
<
void
(
void
*
,
MPI_S
tatus
*
)
>
callback
,
void
*
data
)
{
if
(
!
detail
::
global_state
)
detail
::
global_state
.
emplace
();
...
...
@@ -230,7 +226,7 @@ inline std::int32_t MPI_Detach_status ( MPI_Request* requ
return
MPI_SUCCESS
;
}
// Note: If the test does not succeed immediately, takes the ownership of the requests and invalidates them.
inline
std
::
int32_t
MPI_Detach_each
(
std
::
int32_t
count
,
MPI_Request
*
requests
,
MPI_Detach_callback
*
callback
,
void
**
data
)
inline
std
::
int32_t
MPI_Detach_each
(
std
::
int32_t
count
,
MPI_Request
*
requests
,
std
::
function
<
void
(
void
*
)
>
callback
,
void
**
data
)
{
if
(
!
detail
::
global_state
)
detail
::
global_state
.
emplace
();
...
...
@@ -253,7 +249,7 @@ inline std::int32_t MPI_Detach_each (std::int32_t count, MPI_Request* requ
return
MPI_SUCCESS
;
}
// Note: If the test does not succeed immediately, takes the ownership of the requests and invalidates them.
inline
std
::
int32_t
MPI_Detach_each_status
(
std
::
int32_t
count
,
MPI_Request
*
requests
,
MPI_Detach_callback_s
tatus
*
callback
,
void
**
data
)
inline
std
::
int32_t
MPI_Detach_each_status
(
std
::
int32_t
count
,
MPI_Request
*
requests
,
std
::
function
<
void
(
void
*
,
MPI_S
tatus
*
)
>
callback
,
void
**
data
)
{
if
(
!
detail
::
global_state
)
detail
::
global_state
.
emplace
();
...
...
@@ -277,7 +273,7 @@ inline std::int32_t MPI_Detach_each_status(std::int32_t count, MPI_Request* requ
return
MPI_SUCCESS
;
}
// Note: If the test does not succeed immediately, takes the ownership of the requests and invalidates them.
inline
std
::
int32_t
MPI_Detach_all
(
std
::
int32_t
count
,
MPI_Request
*
requests
,
MPI_Detach_callback
*
callback
,
void
*
data
)
inline
std
::
int32_t
MPI_Detach_all
(
std
::
int32_t
count
,
MPI_Request
*
requests
,
std
::
function
<
void
(
void
*
)
>
callback
,
void
*
data
)
{
if
(
!
detail
::
global_state
)
detail
::
global_state
.
emplace
();
...
...
@@ -298,7 +294,7 @@ inline std::int32_t MPI_Detach_all (std::int32_t count, MPI_Request* requ
return
MPI_SUCCESS
;
}
// Note: If the test does not succeed immediately, takes the ownership of the requests and invalidates them.
inline
std
::
int32_t
MPI_Detach_all_status
(
std
::
int32_t
count
,
MPI_Request
*
requests
,
MPI_Detach_callback_s
tatus
es
*
callback
,
void
*
data
)
inline
std
::
int32_t
MPI_Detach_all_status
(
std
::
int32_t
count
,
MPI_Request
*
requests
,
std
::
function
<
void
(
void
*
,
std
::
int32_t
,
MPI_S
tatus
*
)
>
callback
,
void
*
data
)
{
if
(
!
detail
::
global_state
)
detail
::
global_state
.
emplace
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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