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.
testmight be one of the worse name you can give for a binary you compiled, since it is also the name of a command from the shell. Furthermore, since you didn't use any path to access it (like./testfor example) it is really unclear which of the shell command or the binary is called (I'd go for the shell one but I'm not positive on it). Anyway, try renaming your binary into something more sensible and try again... - Gilles