Skip to content

Commit

Permalink
TagBoxArray::collate: Fujitsu Clang (AMReX-Codes#2889)
Browse files Browse the repository at this point in the history
`mpiFCC -Nclang` only defines `__CLANG_FUJITSU`, not `__FUJITSU` as
in the classic compiler mode.
  • Loading branch information
ax3l committed Jul 26, 2022
1 parent 7cf77dc commit 06753e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Src/AmrCore/AMReX_TagBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,10 +650,10 @@ TagBoxArray::collate (Gpu::PinnedVector<IntVect>& TheGlobalCollateSpace) const
const IntVect* psend = (count > 0) ? TheLocalCollateSpace.data() : nullptr;
IntVect* precv = TheGlobalCollateSpace.data();

//Issues have been observed with the following call at very large scale when using
//FujitsuMPI. The issue seems to be related to the use of MPI_Datatype. We can
//bypasses the issue by exchanging simpler integer arrays.
#ifndef __FUJITSU
// Issues have been observed with the following call at very large scale when using
// FujitsuMPI. The issue seems to be related to the use of MPI_Datatype. We can
// bypasses the issue by exchanging simpler integer arrays.
#if !(defined(__FUJITSU) || defined(__CLANG_FUJITSU))
ParallelDescriptor::Gatherv(psend, count, precv, countvec, offset, IOProcNumber);
#else
const int* psend_int = psend->begin();
Expand Down

0 comments on commit 06753e6

Please sign in to comment.