WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
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