Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cresson Remi
LSGRM
Commits
b6d89f32
Commit
b6d89f32
authored
Aug 31, 2016
by
remicres
Browse files
BUG: fix mpi send tag
parent
f1892f1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/lsgrmController.txx
View file @
b6d89f32
...
...
@@ -33,6 +33,7 @@ void Controller<TSegmenter>::Modified()
template<class TSegmenter>
void Controller<TSegmenter>::RunSegmentation()
{
itkDebugMacro(<< "Entering RunSegmentation()");
if (m_TilingMode == LSGRM_TILING_AUTO || m_TilingMode == LSGRM_TILING_USER)
{
...
...
include/lsgrmHeader.h
View file @
b6d89f32
...
...
@@ -55,12 +55,12 @@ void GatherMe(T& x, MPI_Datatype dataType)
}
// Dispatch
for
(
unsigned
int
p
=
1
;
p
<
otb
::
MPIConfig
::
Instance
()
->
GetNbProcs
()
;
p
++
)
MPI_Send
(
&
x
,
1
,
dataType
,
p
,
MPI_ANY_TAG
,
MPI_COMM_WORLD
);
MPI_Send
(
&
x
,
1
,
dataType
,
p
,
0
,
MPI_COMM_WORLD
);
}
else
{
// Slave process
MPI_Send
(
&
x
,
1
,
dataType
,
0
,
MPI_ANY_TAG
,
MPI_COMM_WORLD
);
MPI_Send
(
&
x
,
1
,
dataType
,
0
,
0
,
MPI_COMM_WORLD
);
MPI_Recv
(
&
x
,
1
,
dataType
,
0
,
MPI_ANY_TAG
,
MPI_COMM_WORLD
,
MPI_STATUS_IGNORE
);
}
}
...
...
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