parallel tuninig

This commit is contained in:
Joachim Schoeberl 2011-07-21 14:45:41 +00:00
parent f0f57bfa52
commit edd41fbf68
4 changed files with 2 additions and 23 deletions

View File

@ -72,7 +72,7 @@
{ {
bool parthread = netgen::mparam.parthread; bool parthread = netgen::mparam.parthread;
// if (netgen::id > 0) parthread = false; // if (netgen::id > 0) parthread = true;
if (netgen::ntasks > 1) parthread = false; if (netgen::ntasks > 1) parthread = false;
if (parthread) if (parthread)

View File

@ -641,7 +641,6 @@ namespace netgen
SetNextMajorTimeStamp(); SetNextMajorTimeStamp();
// paralleltop->Print(); // paralleltop->Print();
cout << "receive mesh complete, id = " << id << endl;
} }

View File

@ -442,7 +442,6 @@ namespace netgen
*testout << "ParallelMeshTopology :: UpdateCoarseGridGlobal" << endl; *testout << "ParallelMeshTopology :: UpdateCoarseGridGlobal" << endl;
cout << "update global, id = " << id << endl;
const MeshTopology & topology = mesh.GetTopology(); const MeshTopology & topology = mesh.GetTopology();
@ -539,7 +538,6 @@ namespace netgen
else else
MyMPI_Bcast ( recvarray ); MyMPI_Bcast ( recvarray );
cout << "have done bcast, id = " << id << endl;
if (id != 0) if (id != 0)
{ {
@ -630,9 +628,6 @@ namespace netgen
*testout << "l2d - sel = " << loc2distsurfel << endl; *testout << "l2d - sel = " << loc2distsurfel << endl;
} }
MPI_Barrier (MPI_COMM_WORLD);
cout << "update global complete, id = " << id << endl;
MPI_Barrier (MPI_COMM_WORLD);
coarseupdate = 1; coarseupdate = 1;
} }
@ -643,7 +638,6 @@ namespace netgen
void ParallelMeshTopology :: UpdateCoarseGrid () void ParallelMeshTopology :: UpdateCoarseGrid ()
{ {
cout << "updatecoarsegrid, id = " << id << endl;
static int timer = NgProfiler::CreateTimer ("UpdateCoarseGrid"); static int timer = NgProfiler::CreateTimer ("UpdateCoarseGrid");
NgProfiler::RegionTimer reg(timer); NgProfiler::RegionTimer reg(timer);
@ -687,12 +681,6 @@ namespace netgen
Array<int,1> glob2loc; Array<int,1> glob2loc;
Array<int> cnt_send(ntasks-1); Array<int> cnt_send(ntasks-1);
MPI_Barrier (MPI_HIGHORDER_COMM);
cout << "before ex edges" << endl;
*testout << "before ex edges" << endl;
MPI_Barrier (MPI_HIGHORDER_COMM);
NgProfiler::StartTimer (timere); NgProfiler::StartTimer (timere);
// exchange edges // exchange edges
@ -765,9 +753,7 @@ namespace netgen
NgProfiler::StopTimer (timere); NgProfiler::StopTimer (timere);
MPI_Barrier (MPI_HIGHORDER_COMM);
cout << "before ex faces" << endl;
*testout << "before ex faces" << endl;
MPI_Barrier (MPI_HIGHORDER_COMM); MPI_Barrier (MPI_HIGHORDER_COMM);
if (mesh.GetDimension() == 3) if (mesh.GetDimension() == 3)
@ -837,11 +823,6 @@ namespace netgen
NgProfiler::StopTimer (timerf); NgProfiler::StopTimer (timerf);
} }
MPI_Barrier (MPI_HIGHORDER_COMM);
cout << "after ex faces" << endl;
*testout << "after ex faces" << endl;
MPI_Barrier (MPI_HIGHORDER_COMM);
// set which elements are where for the master processor // set which elements are where for the master processor

View File

@ -1159,7 +1159,6 @@ namespace netgen
#ifdef PARALLEL #ifdef PARALLEL
cout << "is par = " << int(isparallel) << ", id = " << id << endl;
if (mesh.GetDimension() == 3) if (mesh.GetDimension() == 3)
if (isparallel != (id != 0)) if (isparallel != (id != 0))
{ {