mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-12 16:55:37 +00:00
Only one rank opens
This commit is contained in:
parent
88d8fa43d7
commit
04ca065281
@ -842,10 +842,14 @@ public:
|
|||||||
|
|
||||||
int main (int argc, char ** argv)
|
int main (int argc, char ** argv)
|
||||||
{
|
{
|
||||||
|
|
||||||
FP = fopen("Benchmark_usqcd.csv","w");
|
|
||||||
Grid_init(&argc,&argv);
|
Grid_init(&argc,&argv);
|
||||||
|
|
||||||
|
if (GlobalSharedMemory::WorldRank==0) {
|
||||||
|
FP = fopen("Benchmark_usqcd.csv","w");
|
||||||
|
} else {
|
||||||
|
FP = fopen("/dev/null","w");
|
||||||
|
}
|
||||||
|
|
||||||
CartesianCommunicator::SetCommunicatorPolicy(CartesianCommunicator::CommunicatorPolicySequential);
|
CartesianCommunicator::SetCommunicatorPolicy(CartesianCommunicator::CommunicatorPolicySequential);
|
||||||
#ifdef KNL
|
#ifdef KNL
|
||||||
LebesgueOrder::Block = std::vector<int>({8,2,2,2});
|
LebesgueOrder::Block = std::vector<int>({8,2,2,2});
|
||||||
|
Loading…
Reference in New Issue
Block a user