mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Merge branch 'develop' of github.com:paboyle/Grid into develop
This commit is contained in:
commit
7b850eb48b
@ -3,9 +3,6 @@
|
|||||||
#define MSG std::cout << GridLogMessage
|
#define MSG std::cout << GridLogMessage
|
||||||
#define SEP \
|
#define SEP \
|
||||||
"============================================================================="
|
"============================================================================="
|
||||||
#ifndef BENCH_IO_LMAX
|
|
||||||
#define BENCH_IO_LMAX 40
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace Grid;
|
using namespace Grid;
|
||||||
using namespace QCD;
|
using namespace QCD;
|
||||||
@ -41,7 +38,7 @@ int main (int argc, char ** argv)
|
|||||||
int64_t threads = GridThread::GetThreads();
|
int64_t threads = GridThread::GetThreads();
|
||||||
MSG << "Grid is setup to use " << threads << " threads" << std::endl;
|
MSG << "Grid is setup to use " << threads << " threads" << std::endl;
|
||||||
MSG << SEP << std::endl;
|
MSG << SEP << std::endl;
|
||||||
MSG << "Benchmark Lime write" << std::endl;
|
MSG << "Benchmark double precision Lime write" << std::endl;
|
||||||
MSG << SEP << std::endl;
|
MSG << SEP << std::endl;
|
||||||
for (auto &d: dir)
|
for (auto &d: dir)
|
||||||
{
|
{
|
||||||
@ -49,7 +46,8 @@ int main (int argc, char ** argv)
|
|||||||
writeBenchmark<LatticeFermion>(GridDefaultLatt(), d + "/ioBench", limeWrite<LatticeFermion>, Ls, rb);
|
writeBenchmark<LatticeFermion>(GridDefaultLatt(), d + "/ioBench", limeWrite<LatticeFermion>, Ls, rb);
|
||||||
}
|
}
|
||||||
|
|
||||||
MSG << "Benchmark Lime read" << std::endl;
|
MSG << SEP << std::endl;
|
||||||
|
MSG << "Benchmark double precision Lime read" << std::endl;
|
||||||
MSG << SEP << std::endl;
|
MSG << SEP << std::endl;
|
||||||
for (auto &d: dir)
|
for (auto &d: dir)
|
||||||
{
|
{
|
||||||
@ -57,6 +55,24 @@ int main (int argc, char ** argv)
|
|||||||
readBenchmark<LatticeFermion>(GridDefaultLatt(), d + "/ioBench", limeRead<LatticeFermion>, Ls, rb);
|
readBenchmark<LatticeFermion>(GridDefaultLatt(), d + "/ioBench", limeRead<LatticeFermion>, Ls, rb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MSG << SEP << std::endl;
|
||||||
|
MSG << "Benchmark single precision Lime write" << std::endl;
|
||||||
|
MSG << SEP << std::endl;
|
||||||
|
for (auto &d: dir)
|
||||||
|
{
|
||||||
|
MSG << "-- Directory " << d << std::endl;
|
||||||
|
writeBenchmark<LatticeFermionF>(GridDefaultLatt(), d + "/ioBench", limeWrite<LatticeFermionF>, Ls, rb);
|
||||||
|
}
|
||||||
|
|
||||||
|
MSG << SEP << std::endl;
|
||||||
|
MSG << "Benchmark single precision Lime read" << std::endl;
|
||||||
|
MSG << SEP << std::endl;
|
||||||
|
for (auto &d: dir)
|
||||||
|
{
|
||||||
|
MSG << "-- Directory " << d << std::endl;
|
||||||
|
readBenchmark<LatticeFermionF>(GridDefaultLatt(), d + "/ioBench", limeRead<LatticeFermionF>, Ls, rb);
|
||||||
|
}
|
||||||
|
|
||||||
Grid_finalize();
|
Grid_finalize();
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user