Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Weinzierl
teaMPI
Commits
5c08c37b
Commit
5c08c37b
authored
Jun 24, 2020
by
Philipp Samfass
Browse files
changed wrapper to map to new MPI calls for rma mode
parent
a1d666d8
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/Wrapper.cpp
View file @
5c08c37b
...
...
@@ -234,7 +234,8 @@ int MPI_Iprobe_offload(int source, int tag, MPI_Comm comm, int *flag, MPI_Status
#if COMMUNICATION_MODE==0
ierr
=
ompi_iprobe_offload_p2p
(
source
,
tag
,
comm
,
flag
,
status
);
#elif COMMUNICATION_MODE==1
ierr
=
ompi_iprobe_offload_rma
(
source
,
tag
,
comm
,
flag
,
status
);
//ierr = ompi_iprobe_offload_rma(source, tag, comm, flag, status);
ierr
=
ompi_iprobe_offload_p2p
(
source
,
tag
,
comm
,
flag
,
status
);
#endif
status
->
MPI_SOURCE
=
mapWorldToTeamRank
(
status
->
MPI_SOURCE
);
return
ierr
;
...
...
@@ -253,7 +254,8 @@ int MPI_Recv_offload(void *buf, int count, MPI_Datatype datatype, int source, in
#if COMMUNICATION_MODE==0
return
ompi_recv_offload_p2p
(
buf
,
count
,
datatype
,
translateRank
(
comm
,
source
,
_comm
),
tag
,
comm
,
stat
);
#elif COMMUNICATION_MODE==1
return
ompi_recv_offload_rma
(
buf
,
count
,
datatype
,
translateRank
(
comm
,
source
,
_comm
),
tag
,
comm
,
stat
);
//return ompi_recv_offload_rma(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
return
ompi_recv_offload_p2p
(
buf
,
count
,
datatype
,
translateRank
(
comm
,
source
,
_comm
),
tag
,
comm
,
stat
);
#endif
}
...
...
lib/Wrapper.h
View file @
5c08c37b
...
...
@@ -5,6 +5,7 @@
#define USE_MPI_OFFLOADING
#define COMMUNICATION_MODE 1
/**
* Sets up the MPI library and initialises the process
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment