Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
5f74edf6
Commit
5f74edf6
authored
Sep 09, 2016
by
Berenger Bramas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add extract for the M2L implicit mpi (not tested)
parent
125343e0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
423 additions
and
71 deletions
+423
-71
Src/GroupTree/Core/FGroupOfCells.hpp
Src/GroupTree/Core/FGroupOfCells.hpp
+80
-0
Src/GroupTree/Core/FGroupTaskStarpuImplicitAlgorithm.hpp
Src/GroupTree/Core/FGroupTaskStarpuImplicitAlgorithm.hpp
+343
-71
No files found.
Src/GroupTree/Core/FGroupOfCells.hpp
View file @
5f74edf6
...
...
@@ -401,6 +401,86 @@ public:
));
}
}
/** Extract for implicit MPI */
size_t
extractGetSizeSymbUp
(
const
std
::
vector
<
int
>&
cellsToExtract
)
const
{
return
cellsToExtract
.
size
()
*
sizeof
(
SymboleCellClass
)
*
sizeof
(
PoleCellClass
);
}
void
extractDataUp
(
const
std
::
vector
<
int
>&
cellsToExtract
,
unsigned
char
*
outputBuffer
,
const
size_t
outputBufferSize
)
const
{
size_t
idxValue
=
0
;
for
(
size_t
idxEx
=
0
;
idxEx
<
cellsToExtract
.
size
()
;
++
idxEx
){
const
int
idCell
=
cellsToExtract
[
idxEx
];
memcpy
(
&
outputBuffer
[
idxValue
],
&
blockCells
[
idCell
],
sizeof
(
SymboleCellClass
));
idxValue
+=
sizeof
(
SymboleCellClass
);
memcpy
(
&
outputBuffer
[
idxValue
],
&
cellMultipoles
[
idCell
],
sizeof
(
PoleCellClass
));
idxValue
+=
sizeof
(
PoleCellClass
);
}
FAssertLF
(
idxValue
==
outputBufferSize
);
}
void
restoreDataUp
(
const
std
::
vector
<
int
>&
cellsToExtract
,
const
unsigned
char
*
intputBuffer
,
const
size_t
inputBufferSize
){
size_t
idxValue
=
0
;
for
(
size_t
idxEx
=
0
;
idxEx
<
cellsToExtract
.
size
()
;
++
idxEx
){
const
int
idCell
=
cellsToExtract
[
idxEx
];
memcpy
(
&
blockCells
[
idCell
],
&
intputBuffer
[
idxValue
],
sizeof
(
SymboleCellClass
));
idxValue
+=
sizeof
(
SymboleCellClass
);
memcpy
(
&
cellMultipoles
[
idCell
],
&
intputBuffer
[
idxValue
],
sizeof
(
PoleCellClass
));
idxValue
+=
sizeof
(
PoleCellClass
);
}
FAssertLF
(
idxValue
==
inputBufferSize
);
}
size_t
extractGetSizeSymbDown
(
const
std
::
vector
<
int
>&
cellsToExtract
)
const
{
return
cellsToExtract
.
size
()
*
sizeof
(
SymboleCellClass
)
*
sizeof
(
LocalCellClass
);
}
void
extractDataDown
(
const
std
::
vector
<
int
>&
cellsToExtract
,
unsigned
char
*
outputBuffer
,
const
size_t
outputBufferSize
)
const
{
size_t
idxValue
=
0
;
for
(
size_t
idxEx
=
0
;
idxEx
<
cellsToExtract
.
size
()
;
++
idxEx
){
const
int
idCell
=
cellsToExtract
[
idxEx
];
memcpy
(
&
outputBuffer
[
idxValue
],
&
blockCells
[
idCell
],
sizeof
(
SymboleCellClass
));
idxValue
+=
sizeof
(
SymboleCellClass
);
memcpy
(
&
outputBuffer
[
idxValue
],
&
cellLocals
[
idCell
],
sizeof
(
PoleCellClass
));
idxValue
+=
sizeof
(
PoleCellClass
);
}
FAssertLF
(
idxValue
==
outputBufferSize
);
}
void
restoreDataDown
(
const
std
::
vector
<
int
>&
cellsToExtract
,
const
unsigned
char
*
intputBuffer
,
const
size_t
inputBufferSize
){
size_t
idxValue
=
0
;
for
(
size_t
idxEx
=
0
;
idxEx
<
cellsToExtract
.
size
()
;
++
idxEx
){
const
int
idCell
=
cellsToExtract
[
idxEx
];
memcpy
(
&
blockCells
[
idCell
],
&
intputBuffer
[
idxValue
],
sizeof
(
SymboleCellClass
));
idxValue
+=
sizeof
(
SymboleCellClass
);
memcpy
(
&
cellLocals
[
idCell
],
&
intputBuffer
[
idxValue
],
sizeof
(
PoleCellClass
));
idxValue
+=
sizeof
(
PoleCellClass
);
}
FAssertLF
(
idxValue
==
inputBufferSize
);
}
};
...
...
Src/GroupTree/Core/FGroupTaskStarpuImplicitAlgorithm.hpp
View file @
5f74edf6
This diff is collapsed.
Click to expand it.
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