Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TurTLE
TurTLE
Commits
4b010b46
Commit
4b010b46
authored
Feb 26, 2021
by
Cristian Lalescu
Browse files
adds debug printout
parent
c9992383
Pipeline
#95746
failed with stages
in 34 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cpp/particles/p2p/p2p_distr_mpi.hpp
View file @
4b010b46
...
...
@@ -291,6 +291,7 @@ public:
// Some processes might not be involved
if
(
nb_processes_involved
<=
my_rank
){
DEBUG_MSG
(
"warning: nb_processes_involved <= my_rank, and this process is exiting p2p_distr_mpi::compute_distr now.
\n
However, there is a check below which calls an MPI_Gather over MPI_COMM_WORLD.
\n
"
);
return
;
}
...
...
@@ -492,10 +493,14 @@ public:
if
(
descriptor
.
isRecv
==
false
){
whatNext
.
emplace_back
(
std
::
pair
<
Action
,
int
>
{
NOTHING_TODO
,
-
1
});
mpiRequests
.
emplace_back
();
AssertMpi
(
MPI_Isend
(
const_cast
<
partsize_t
*>
(
&
descriptor
.
nbParticlesToExchange
),
1
,
particles_utils
::
GetMpiType
(
partsize_t
()),
descriptor
.
destProc
,
TAG_NB_PARTICLES
,
current_com
,
&
mpiRequests
.
back
()));
AssertMpi
(
MPI_Isend
(
const_cast
<
partsize_t
*>
(
&
descriptor
.
nbParticlesToExchange
),
1
,
particles_utils
::
GetMpiType
(
partsize_t
()),
descriptor
.
destProc
,
TAG_NB_PARTICLES
,
current_com
,
&
mpiRequests
.
back
()));
#ifndef NDEBUG // Just for assertion
willsend
[
descriptor
.
destProc
]
+=
1
;
#endif
...
...
@@ -581,6 +586,9 @@ public:
for
(
int
idxproc
=
0
;
idxproc
<
nb_processes_involved
;
++
idxproc
){
for
(
int
idxtest
=
0
;
idxtest
<
nb_processes_involved
;
++
idxtest
){
DEBUG_MSG
(
"p2p_distr_mpi::compute_distribution, comparing willsendall(%d, %d)=%d with willrecvall(%d, %d) = %d
\n
"
,
idxproc
,
idxtest
,
willsendall
[
idxproc
*
nb_processes_involved
+
idxtest
],
idxtest
,
idxproc
,
willrecvall
[
idxtest
*
nb_processes_involved
+
idxproc
]);
assert
(
willsendall
[
idxproc
*
nb_processes_involved
+
idxtest
]
==
willrecvall
[
idxtest
*
nb_processes_involved
+
idxproc
]);
}
...
...
Write
Preview
Supports
Markdown
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