Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Boards
Labels
Milestones
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
6f47cb71
Commit
6f47cb71
authored
Aug 09, 2016
by
Martin Khannouz
Committed by
Berenger Bramas
Mar 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove idxBlockMpi in FGroupTaskStarpuMpiAlgorithm.
No need to split MPI packet anymore.
parent
f5f87c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
Src/GroupTree/Core/FGroupTaskStarpuMpiAlgorithm.hpp
Src/GroupTree/Core/FGroupTaskStarpuMpiAlgorithm.hpp
+5
-7
No files found.
Src/GroupTree/Core/FGroupTaskStarpuMpiAlgorithm.hpp
View file @
6f47cb71
...
...
@@ -73,16 +73,15 @@ protected:
#endif
>
ThisClass
;
int
getTag
(
const
int
inLevel
,
const
MortonIndex
mindex
,
const
int
idxBloc
,
const
int
mode
,
const
int
otherProc
,
const
int
idxBlockMpi
=
0
)
const
{
int
getTag
(
const
int
inLevel
,
const
MortonIndex
mindex
,
const
int
idxBloc
,
const
int
mode
,
const
int
otherProc
)
const
{
int
shift
=
0
,
s_mindex
=
0
;
int
height
=
tree
->
getHeight
();
int
h_mindex
=
idxBloc
;
while
(
height
)
{
shift
+=
1
;
height
>>=
1
;
}
while
(
h_mindex
)
{
s_mindex
+=
1
;
h_mindex
>>=
1
;
}
FAssertLF
((
s_mindex
+
shift
+
12
)
<=
32
,
"Tag overflow !!"
);
FAssertLF
(
idxBlockMpi
<
32
,
"Too much block mpi, tag overflow possible"
);
const
int
tag
=
int
((((((
idxBloc
<<
shift
)
+
inLevel
)
<<
3
)
+
mode
)
<<
5
)
+
idxBlockMpi
);
FAssertLF
((
s_mindex
+
shift
+
8
)
<=
32
,
"Tag overflow !!"
);
const
int
tag
=
int
(((((
idxBloc
<<
shift
)
+
inLevel
)
<<
3
)
+
mode
)
<<
5
);
int
*
tag_ub
=
0
;
int
ok
=
0
;
MPI_Comm_get_attr
(
MPI_COMM_WORLD
,
MPI_TAG_UB
,
&
tag_ub
,
&
ok
);
...
...
@@ -93,14 +92,13 @@ protected:
MortonIndex
mindex
;
int
idxBloc
;
int
mode
;
int
idxBlockMpi
;
bool
operator
==
(
TagInfo
const
&
a
)
const
{
return
(
a
.
idxBloc
==
idxBloc
&&
a
.
level
==
level
&&
a
.
mindex
==
mindex
&&
a
.
mode
==
mode
&&
a
.
idxBlockMpi
==
idxBlockMpi
);
return
(
a
.
idxBloc
==
idxBloc
&&
a
.
level
==
level
&&
a
.
mindex
==
mindex
&&
a
.
mode
==
mode
);
}
};
static
std
::
unordered_map
<
int
,
TagInfo
>
previousTag
;
const
TagInfo
currentInfo
=
{
inLevel
,
mindex
,
idxBloc
,
mode
,
idxBlockMpi
};
const
TagInfo
currentInfo
=
{
inLevel
,
mindex
,
idxBloc
,
mode
};
auto
found
=
previousTag
.
find
(
tag
);
if
(
found
!=
previousTag
.
end
()){
const
TagInfo
prev
=
found
->
second
;
...
...
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