47const tarch::la::Vector<DIMENSIONS, double>
cellSize = benchmarks::exahype2::kernelbenchmarks::DomainSize / 81.0;
52int main(
int argc,
char** argv) {
53 peano4::init(&argc, &argv, benchmarks::exahype2::kernelbenchmarks::DomainOffset, benchmarks::exahype2::kernelbenchmarks::DomainSize);
54 repositories::initLogFilters();
55 repositories::startSimulation();
57 logInfo(
"main()",
"number of compute threads: " << tarch::multicore::Core::getInstance().getNumberOfThreads());
58 logInfo(
"main()",
"number of threads launching compute kernels: " << NumberOfLaunchingThreads);
59 logInfo(
"main()",
"number of unknowns: " << AderSolver::NumberOfUnknowns);
60 logInfo(
"main()",
"number of auxiliary variables: " << AderSolver::NumberOfAuxiliaryVariables);
61 logInfo(
"main()",
"number of finite volumes per axis per cell: " << AderSolver::Order);
62 logInfo(
"main()",
"number of samples per measurement: " << NumberOfSamples);
63 logInfo(
"main()",
"performing accuracy checks with precision: " << Accuracy);
64#if defined(WITH_GPU_SYCL)
65 logInfo(
"main()",
"set SYCL_DEVICE_FILTER=gpu or ONEAPI_DEVICE_SELECTOR=cuda:0 when using SYCL on the device");
66 logInfo(
"main()",
"set SYCL_PI_TRACE=2 in case of runtime errors");
69 std::ostringstream snapshotFileName;
70 snapshotFileName <<
"ader-benchmarks-prec-"
71 <<
typeid(SolverPrecision).name()
73 std::ofstream file( snapshotFileName.str() );
74 file <<
"Variant,omp threads,cells,total compute time,total time (including launch),avg compute time,avg time,max,min,std deviation" << std::endl;
76 for (
int i = 0; i < NumberOfCellsToStudy.size(); i++) {
77 logInfo(
"main()",
"number of cells: " << NumberOfCellsToStudy[i]);
87 repositories::finishSimulation();
int main(int argc, char **argv)
constexpr double timeStamp
const tarch::la::Vector< DIMENSIONS, double > cellCenter
const tarch::la::Vector< DIMENSIONS, double > cellSize
tarch::logging::Log _log("::")
constexpr double timeStepSize