Commit 282221b9 authored by Quentin Khan's avatar Quentin Khan
Browse files

FPerfTestParams: extract from PerfTestUtils

parent 6214f1aa
#ifndef FPERFTESTPARAMS_HPP
#define FPERFTESTPARAMS_HPP
#include <string>
#ifdef SCALFMM_USE_MPI
#include "Utils/FMpi.hpp"
#endif
/**
* \brief Store the PerfTest program parameters.
*/
struct FPerfTestParams {
int subTreeHeight = 2; ///< Subtree height.
int treeHeight = 5; ///< Tree height.
int nbThreads = 1; ///< Maximum thread count (when used).
std::string filename = ""; ///< Particles file.
std::string algo = "task"; ///< Algorithm implementation to run.
std::string kernel = "task"; ///< Kernel to use.
int omp_chunk_size = 0; ///< OpenMP chunk size for basic algorithm (FFmmAlgorithmThread)
int nbProcs = 1;
#ifdef SCALFMM_USE_MPI
FMpi* mpiContext = nullptr;
#endif
};
#endif /* FPERFTESTPARAMS_HPP */
......@@ -5,33 +5,7 @@
#ifndef _PERFTESTUTILS_HPP_
#define _PERFTESTUTILS_HPP_
#include <string>
#ifdef SCALFMM_USE_MPI
#include "Utils/FMpi.hpp"
#endif
#include "Utils/FTic.hpp"
#include "Files/FFmaGenericLoader.hpp"
#include "Containers/FOctree.hpp"
/**
* \brief Store the PerfTest program parameters.
*/
struct FPerfTestParams {
int subTreeHeight = 2; ///< Subtree height.
int treeHeight = 5; ///< Tree height.
int nbThreads = 1; ///< Maximum number of threads (when used).
std::string filename = ""; ///< Particles file.
std::string algo = "task"; ///< Algorithm to run.
int omp_chunk_size = 0; ///< OpenMP chunk size for basic algorithm (FFmmAlgorithmThread)
int nbProcs = 1;
#ifdef SCALFMM_USE_MPI
FMpi* mpiContext = nullptr;
#endif
};
/**
* \brief Base class for tree loaders.
......@@ -133,7 +107,7 @@ public:
virtual void run() = 0;
/// Additionnal information for specific algorithm loader.
/**
/**
* The string should be formated as a key:value list separated by spaces.
* For instance : "key1:value1 key2:value2 ". It may be a good idea to add a
* space at the end of the string.
......
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