I am trying to understand parallel data writing from Fortran code with MPI. I came across a simple program from here.
I compiled and run the program with MPI compiler and getting the following error:
sathish@HP-EliteBook:~/Desktop$ mpif90 test.F90 -o test
sathish@HP-EliteBook:~/Desktop$ mpirun -np 4 test
-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
I see similar issues in other forums mentioning this is due to wrong mpi installation location or so. The following was one of the solutions suggesting use of LD_PRELOAD
:
sathish@HP-EliteBook:~/Desktop$ mpirun -x LD_PRELOAD=libmpi.so -np 4 test
-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
The issue still persists. I could not figure what the issue is for such a simple program.