diff --git a/benchmarks/Benchmark_IO_vs_dir.cc b/benchmarks/Benchmark_IO_vs_dir.cc index 9c254e27..9ccfd554 100644 --- a/benchmarks/Benchmark_IO_vs_dir.cc +++ b/benchmarks/Benchmark_IO_vs_dir.cc @@ -8,7 +8,6 @@ using namespace Grid; int main (int argc, char ** argv) { -#ifdef HAVE_LIME std::vector dir; unsigned int Ls; bool rb; @@ -40,6 +39,26 @@ int main (int argc, char ** argv) MSG << "Grid is setup to use " << threads << " threads" << std::endl; MSG << "MPI partition " << mpi << std::endl; + MSG << SEP << std::endl; + MSG << "Benchmark Grid std write" << std::endl; + MSG << SEP << std::endl; + for (auto &d: dir) + { + MSG << "-- Directory " << d << std::endl; + writeBenchmark(GridDefaultLatt(), d + "/ioBench", + stdWrite, Ls, rb); + } + MSG << SEP << std::endl; + MSG << "Benchmark Grid std read" << std::endl; + MSG << SEP << std::endl; + for (auto &d: dir) + { + MSG << "-- Directory " << d << std::endl; + readBenchmark(GridDefaultLatt(), d + "/ioBench", + stdRead, Ls, rb); + } + +#ifdef HAVE_LIME MSG << SEP << std::endl; MSG << "Benchmark Grid C-Lime write" << std::endl; MSG << SEP << std::endl; @@ -58,6 +77,7 @@ int main (int argc, char ** argv) readBenchmark(GridDefaultLatt(), d + "/ioBench", limeRead, Ls, rb); } +#endif // MSG << SEP << std::endl; // MSG << "Benchmark single precision Lime write" << std::endl; @@ -78,7 +98,6 @@ int main (int argc, char ** argv) // } Grid_finalize(); - -#endif + return EXIT_SUCCESS; }