Commit ec08420a authored by Quentin Khan's avatar Quentin Khan
Browse files

LagrangeInterpolationAdaptiveFMM: add StarPU algorithm

parent 3f292f7a
......@@ -58,8 +58,10 @@
#include "Adaptive/new/FAdaptiveSequential.hpp"
#include "Adaptive/new/FAdaptiveTask.hpp"
#include "Adaptive/new/FAdaptiveStarPU.hpp"
#include "Adaptive/new/FTree.hpp"
// Types definition
// accuracy
......@@ -76,6 +78,7 @@ using KernelClass = FAdaptUnifKernel<FReal, CellClass, ContainerClass, MatrixKer
//
using FmmClass = FAdaptiveTask<OctreeClass, KernelClass>;
using FmmClassSeq = FAdaptiveSequential<OctreeClass, KernelClass>;
using FmmClassStarPU = FAdaptiveStarPU<OctreeClass, KernelClass>;
namespace FPD = FParameterDefinitions;
namespace FParameterDefinitions {
......@@ -88,6 +91,9 @@ namespace FParameterDefinitions {
FParameterNames UseSequential = {
{"--seq"}, "Use sequential algorithm"
};
FParameterNames UseStarPU = {
{"--starpu"}, "Use StarPU algorithm"
};
}
int main(int argc, char* argv[]) {
......@@ -99,6 +105,7 @@ int main(int argc, char* argv[]) {
FPD::NbThreads,
FPD::Density,
FPD::UseSequential,
FPD::UseStarPU,
);
......@@ -176,6 +183,9 @@ int main(int argc, char* argv[]) {
if(FParameters::existParameter(argc, argv, FPD::UseSequential.options)) {
FmmClassSeq algo(&tree, &kernel);
algo.execute(); // FMM algorithm call
} else if(FParameters::existParameter(argc, argv, FPD::UseStarPU.options)) {
FmmClassStarPU algo(&tree, &kernel);
algo.execute(); // FMM algorithm call
} else {
FmmClass algo(&tree, &kernel);
algo.execute(); // FMM algorithm call
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment