I have installed GNU and Intel Compilers 6.0 on a cluster running RedHat 7.3.
All paths to binaries and libraries are added and both compilers work with sequental programs.

I have compiled MPICH 1.2.5 by both compilers and installed GNU version under
/usr/local/mpich-1.2.5 and Intel version under /usr/local/mpich-1.2.5-ifc.
After I have compiled examples provided with mpich in /examples directory.
Now when I am running cpi example or any other compiled with GNU it works perfectly,
but the same example made with Intel compiler results in the error as below when np > 1:

$ mpirun -np 1 cpi
Process 0 on lasc
pi is approximately 3.1416009869231254, Error is 0.0000083333333323
wall clock time = 0.000169

$ mpirun -np 2 cpi
/usr/local/mpich-1.2.5-ifc/examples/cpi: error while loading shared libraries: cannot open shared object file: No such file or directory
p0_4516: p4_error: Child process exited while making connection to remote process on lasc1: 0
/usr/local/mpich-1.2.5-ifc/bin/mpirun: line 1: 4516 Broken pipe
/usr/local/mpich-1.2.5-ifc/examples/cpi -p4pg /home/a.kuzmin/PI4432 -p4wd /usr/local/mpich-1.2.5-ifc/examples

What is the problem ?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

please use the option -static-libcxa when linking. This should help.

Leave a Comment

Please sign in to add a comment. Not a member? Join today