Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DART-MPI: call into MPI every once in a while for local put/get #712

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions dart-impl/mpi/src/dart_communication.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,6 @@ dart__mpi__get_basic(
{
if (num_reqs) *num_reqs = 0;

if (team_data->unitid == team_unit_id.id) {
// use direct memcpy if we are on the same unit
memcpy(dest, seginfo->selfbaseptr + offset,
nelem * dart__mpi__datatype_sizeof(dtype));
DART_LOG_DEBUG("dart_get: memcpy nelem:%zu "
"source (coll.): offset:%lu -> dest: %p",
nelem, offset, dest);
return DART_OK;
}

#if !defined(DART_MPI_DISABLE_SHARED_WINDOWS)
DART_LOG_DEBUG("dart_get: shared windows enabled");
if (seginfo->segid >= 0 && team_data->sharedmem_tab[team_unit_id.id].id >= 0) {
Expand Down Expand Up @@ -353,16 +343,6 @@ dart__mpi__put_basic(
{
if (num_reqs) *num_reqs = 0;

/* copy data directly if we are on the same unit */
if (team_unit_id.id == team_data->unitid) {
if (flush_required_ptr) *flush_required_ptr = false;
memcpy(seginfo->selfbaseptr + offset, src,
nelem * dart__mpi__datatype_sizeof(dtype));
DART_LOG_DEBUG("dart_put: memcpy nelem:%zu (from global allocation)"
"offset: %"PRIu64"", nelem, offset);
return DART_OK;
}

#if !defined(DART_MPI_DISABLE_SHARED_WINDOWS)
DART_LOG_DEBUG("dart_put: shared windows enabled");
if (seginfo->segid >= 0 && team_data->sharedmem_tab[team_unit_id.id].id >= 0) {
Expand Down