1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Only one rank opens

This commit is contained in:
Peter Boyle 2024-02-29 20:09:11 -05:00
parent 88d8fa43d7
commit 04ca065281

View File

@ -842,10 +842,14 @@ public:
int main (int argc, char ** argv)
{
FP = fopen("Benchmark_usqcd.csv","w");
Grid_init(&argc,&argv);
if (GlobalSharedMemory::WorldRank==0) {
FP = fopen("Benchmark_usqcd.csv","w");
} else {
FP = fopen("/dev/null","w");
}
CartesianCommunicator::SetCommunicatorPolicy(CartesianCommunicator::CommunicatorPolicySequential);
#ifdef KNL
LebesgueOrder::Block = std::vector<int>({8,2,2,2});