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
d788edc1
Commit
d788edc1
authored
Mar 30, 2012
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the default block size
parent
715e6412
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
9 deletions
+16
-9
Src/Core/FFmmAlgorithmStarpu.hpp
Src/Core/FFmmAlgorithmStarpu.hpp
+5
-2
Src/Core/FFmmAlgorithmStarpuGroup.hpp
Src/Core/FFmmAlgorithmStarpuGroup.hpp
+7
-4
Tests/Kernels/testStarpuAlgorithmGroup.cpp
Tests/Kernels/testStarpuAlgorithmGroup.cpp
+1
-1
Tests/Kernels/testStarpuGroupCompareAlgorithm.cpp
Tests/Kernels/testStarpuGroupCompareAlgorithm.cpp
+3
-2
No files found.
Src/Core/FFmmAlgorithmStarpu.hpp
View file @
d788edc1
...
...
@@ -470,9 +470,12 @@ public:
}
/** Run starpu */
void
initStarpu
(){
void
initStarpu
(
const
int
nbThreads
=
-
1
){
starpu_conf
setup
;
starpu_conf_init
(
&
setup
);
setup
.
ncpus
=
nbThreads
;
// Run starpu
starpu_init
(
NULL
);
starpu_init
(
&
setup
);
FDEBUG
(
FDebug
::
Controller
<<
"Init starpu, there are "
<<
starpu_worker_get_count
()
<<
" workers
\n
"
);
// Init
...
...
Src/Core/FFmmAlgorithmStarpuGroup.hpp
View file @
d788edc1
...
...
@@ -322,7 +322,7 @@ public:
* An assert is launched if one of the arguments is null
*/
FFmmAlgorithmStarpuGroup
(
OctreeClass
*
const
inTree
,
KernelClass
*
const
inKernel
,
const
int
inBlockedSize
=
25
,
const
bool
inUseStarpuPerfModel
=
false
)
const
int
inBlockedSize
=
25
0
,
const
bool
inUseStarpuPerfModel
=
false
)
:
tree
(
inTree
),
OctreeHeight
(
tree
->
getHeight
()),
BlockSize
(
inBlockedSize
),
blockedTree
(
new
Group
*
[
OctreeHeight
+
1
])
,
...
...
@@ -351,11 +351,14 @@ public:
/**
*/
void
buildGroups
(){
void
buildGroups
(
const
int
nbThreads
=
-
1
){
FTRACE
(
FTrace
::
FFunction
functionTrace
(
__FUNCTION__
,
"Fmm"
,
__FILE__
,
__LINE__
)
);
// star starpu
starpu_init
(
NULL
);
starpu_conf
setup
;
starpu_conf_init
(
&
setup
);
setup
.
ncpus
=
nbThreads
;
// Run starpu
starpu_init
(
&
setup
);
FDEBUG
(
FDebug
::
Controller
<<
"Start starpu runtime, Nb Workers = "
<<
starpu_worker_get_count
()
<<
"
\n
"
);
// create codelet
...
...
Tests/Kernels/testStarpuAlgorithmGroup.cpp
View file @
d788edc1
...
...
@@ -106,7 +106,7 @@ int main(int argc, char ** argv){
//////////////////////////////////////////////////////////////
const
int
NbLevels
=
FParameters
::
getValue
(
argc
,
argv
,
"-h"
,
5
);
const
int
SizeSubLevels
=
FParameters
::
getValue
(
argc
,
argv
,
"-sh"
,
3
);
const
int
BlockSize
=
FParameters
::
getValue
(
argc
,
argv
,
"-bs"
,
4
0
);
const
int
BlockSize
=
FParameters
::
getValue
(
argc
,
argv
,
"-bs"
,
25
0
);
FTic
counter
;
const
char
*
const
filename
=
FParameters
::
getStr
(
argc
,
argv
,
"-f"
,
"../Data/test20k.fma"
);
...
...
Tests/Kernels/testStarpuGroupCompareAlgorithm.cpp
View file @
d788edc1
...
...
@@ -243,7 +243,8 @@ int main(int argc, char ** argv){
const
int
DevP
=
FParameters
::
getValue
(
argc
,
argv
,
"-p"
,
8
);
const
int
NbLevels
=
FParameters
::
getValue
(
argc
,
argv
,
"-h"
,
5
);
const
int
SizeSubLevels
=
FParameters
::
getValue
(
argc
,
argv
,
"-sh"
,
3
);
const
int
BlockSize
=
FParameters
::
getValue
(
argc
,
argv
,
"-bs"
,
40
);
const
int
BlockSize
=
FParameters
::
getValue
(
argc
,
argv
,
"-bs"
,
250
);
const
int
NbThread
=
FParameters
::
getValue
(
argc
,
argv
,
"-t"
,
-
1
);
FTic
counter
;
const
char
*
const
filename
=
FParameters
::
getStr
(
argc
,
argv
,
"-f"
,
"../Data/test20k.fma"
);
...
...
@@ -279,7 +280,7 @@ int main(int argc, char ** argv){
std
::
cout
<<
"Build gouped tree..."
<<
std
::
endl
;
counter
.
tic
();
algo
.
buildGroups
();
algo
.
buildGroups
(
NbThread
);
counter
.
tac
();
std
::
cout
<<
"Done in "
<<
counter
.
elapsed
()
<<
"s."
<<
std
::
endl
;
...
...
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