I have a program to call intel mpi's functions. The program seems good but some times after finished running, the following error message popped up:
Fatal error in MPI_Comm_free: Invalid communicator, error stack: MPI_Comm_free(134): MPI_Comm_free(comm=00000001403B600) failed
MPI_Comm_free(105): Cannot free permanent communicator MPI_COMM_WORLD.
Excepted the MPI, I also used the OpenMP in the code. In the project, when the option "Generate Parallel Code (/Qopenmp)" is enabled, this error message will pop up 1 time when running the same program 3~4 times. However, after disabled this option, this error message will never appears.
are all outside the parallel region of OpenMP.
My environment is: Win7 x64 + VS2008 +IVF 11.1.065 (with MKL) + Intel MPI 4.0.0.012.
Could anyone help me to take a look at this problem?