Commit e2537356 authored by Philip Carns's avatar Philip Carns

remove extra locking around darshan_initalize(). This causes deadlocks in

some versions of mpich because malloc() is intercepted in a way that 
indirectly makes an open() call before initialization is complete.


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@376 3b7491f3-a168-0410-bf4b-c445ed680a29
parent bc95a066
...@@ -335,7 +335,6 @@ static void darshan_mpi_initialize(int *argc, char ***argv) ...@@ -335,7 +335,6 @@ static void darshan_mpi_initialize(int *argc, char ***argv)
DARSHAN_MPI_CALL(PMPI_Comm_size)(MPI_COMM_WORLD, &nprocs); DARSHAN_MPI_CALL(PMPI_Comm_size)(MPI_COMM_WORLD, &nprocs);
DARSHAN_MPI_CALL(PMPI_Comm_rank)(MPI_COMM_WORLD, &rank); DARSHAN_MPI_CALL(PMPI_Comm_rank)(MPI_COMM_WORLD, &rank);
CP_LOCK();
if(argc && argv) if(argc && argv)
{ {
darshan_initialize(*argc, *argv, nprocs, rank); darshan_initialize(*argc, *argv, nprocs, rank);
...@@ -346,8 +345,6 @@ static void darshan_mpi_initialize(int *argc, char ***argv) ...@@ -346,8 +345,6 @@ static void darshan_mpi_initialize(int *argc, char ***argv)
darshan_initialize(0, NULL, nprocs, rank); darshan_initialize(0, NULL, nprocs, rank);
} }
CP_UNLOCK();
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment