Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
ScalFMM
Commits
b46785a7
Commit
b46785a7
authored
Dec 26, 2014
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nb threads in starpu mpi - but it seems that starpu use 2 everytime
parent
ce2fdf42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Src/GroupTree/FGroupTaskStarpuMpiAlgorithm.hpp
Src/GroupTree/FGroupTaskStarpuMpiAlgorithm.hpp
+1
-1
Tests/noDist/testBlockedMpiAlgorithm.cpp
Tests/noDist/testBlockedMpiAlgorithm.cpp
+4
-2
No files found.
Src/GroupTree/FGroupTaskStarpuMpiAlgorithm.hpp
View file @
b46785a7
...
...
@@ -573,7 +573,7 @@ protected:
void
postRecvAllocatedBlocks
(){
std
::
vector
<
MpiDependency
>
toRecv
;
FAssertLF
(
tree
->
getHeight
()
==
int
(
remoteCellGroups
[
idxLevel
]
.
size
()));
FAssertLF
(
tree
->
getHeight
()
==
int
(
remoteCellGroups
.
size
()));
for
(
int
idxLevel
=
0
;
idxLevel
<
tree
->
getHeight
()
;
++
idxLevel
){
for
(
int
idxHandle
=
0
;
idxHandle
<
int
(
remoteCellGroups
[
idxLevel
].
size
())
;
++
idxHandle
){
if
(
remoteCellGroups
[
idxLevel
][
idxHandle
].
ptr
){
...
...
Tests/noDist/testBlockedMpiAlgorithm.cpp
View file @
b46785a7
...
...
@@ -68,7 +68,8 @@ int main(int argc, char* argv[]){
};
FHelpDescribeAndExit
(
argc
,
argv
,
"Test the blocked tree by counting the particles."
,
FParameterDefinitions
::
OctreeHeight
,
FParameterDefinitions
::
NbThreads
,
FParameterDefinitions
::
NbParticles
,
LocalOptionBlocSize
);
FParameterDefinitions
::
NbParticles
,
FParameterDefinitions
::
NbThreads
,
LocalOptionBlocSize
);
// Initialize the types
typedef
FTestCell
GroupCellClass
;
typedef
FGroupTestParticleContainer
GroupContainerClass
;
...
...
@@ -78,6 +79,7 @@ int main(int argc, char* argv[]){
FMpi
mpiComm
(
argc
,
argv
);
// Get params
const
int
maxThreads
=
FParameters
::
getValue
(
argc
,
argv
,
FParameterDefinitions
::
NbThreads
.
options
,
-
1
);
const
int
NbLevels
=
FParameters
::
getValue
(
argc
,
argv
,
FParameterDefinitions
::
OctreeHeight
.
options
,
5
);
const
int
NbParticles
=
FParameters
::
getValue
(
argc
,
argv
,
FParameterDefinitions
::
NbParticles
.
options
,
20
);
const
int
groupSize
=
FParameters
::
getValue
(
argc
,
argv
,
LocalOptionBlocSize
.
options
,
250
);
...
...
@@ -146,7 +148,7 @@ int main(int argc, char* argv[]){
// Run the algorithm
GroupKernelClass
groupkernel
;
GroupAlgorithm
groupalgo
(
mpiComm
.
global
(),
&
groupedTree
,
&
groupkernel
);
GroupAlgorithm
groupalgo
(
mpiComm
.
global
(),
&
groupedTree
,
&
groupkernel
,
maxThreads
);
groupalgo
.
execute
();
groupedTree
.
forEachCellLeaf
<
FGroupTestParticleContainer
>
([
&
](
GroupCellClass
*
cell
,
FGroupTestParticleContainer
*
leaf
){
...
...
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