Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
ScalFMM
Commits
3f082ea9
Commit
3f082ea9
authored
2 years ago
by
Olivier COULAUD
Browse files
Options
Downloads
Patches
Plain Diff
Added defines to specify NEARFAR or both computations
parent
7e19b7f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/GroupTree/testBlockedUniform.cpp
+12
-2
12 additions, 2 deletions
Tests/GroupTree/testBlockedUniform.cpp
with
12 additions
and
2 deletions
Tests/GroupTree/testBlockedUniform.cpp
+
12
−
2
View file @
3f082ea9
...
...
@@ -33,6 +33,7 @@
#include
"Files/FRandomLoader.hpp"
#include
"Files/FFmaGenericLoader.hpp"
#include
"Core/FCoreCommon.hpp"
#include
"GroupTree/Core/FGroupSeqAlgorithm.hpp"
#include
"GroupTree/Core/FGroupTaskAlgorithm.hpp"
#ifdef SCALFMM_USE_OMP4
...
...
@@ -144,11 +145,20 @@ int main(int argc, char* argv[]){
const
MatrixKernelClass
MatrixKernel
;
GroupKernelClass
groupkernel
(
NbLevels
,
loader
.
getBoxWidth
(),
loader
.
getCenterOfBox
(),
&
MatrixKernel
);
GroupAlgorithm
groupalgo
(
&
groupedTree
,
&
groupkernel
);
#if defined(ONLY_NEAR)
const
unsigned
operator_to_proceed
=
FFmmNearField
;
std
::
cout
<<
"<params> fmm: near field
\n
"
;
#elif defined(ONLY_FAR)
const
unsigned
operator_to_proceed
=
FFmmFarField
;
std
::
cout
<<
"<params> fmm: far field
\n
"
;
#else
const
unsigned
operator_to_proceed
=
FFmmNearAndFarFields
;
std
::
cout
<<
"<params> fmm: near and far fields
\n
"
;
#endif
// Extended for Native vs SimGrid makespans comparison
timer
.
tic
();
//double start_time = starpu_timing_now();
groupalgo
.
execute
();
groupalgo
.
execute
(
operator_to_proceed
);
//double end_time = starpu_timing_now();
std
::
cout
<<
"Kernel executed in in "
<<
timer
.
tacAndElapsed
()
<<
"s
\n
"
;
//std::cout << (end_time - start_time)/1000 << "\n";
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment