Only one rank opens

This commit is contained in:
Peter Boyle committed 2024-02-29 20:09:11 -05:00
1 parent 88d8fa43d7
commit 04ca065281
1 file changed
+6 -2
+6 -2
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});