So your tests show:
1. "Shared library in FORTRAN + MPI executable in FORTRAN" works.
2. "Shared library in C++ + MPI executable in FORTRAN " does not work.
It seems to me that the symbols in C library are not really recognized by FORTRAN executable as you thought. What compilers did yo use to built OpenMPI?
Different compiler has different convention to handle symbols. E.g. if there is a variable "var_foo" in your FORTRAN code, some FORTRN compiler will save "var_foo_" in the object file by default; if you want to access "var_foo" in C code, you actually need to refer "var_foo_" in C code. If you define "var_foo" in a module in the FORTAN compiler, some FORTRAN compiler may append the module name to "var_foo".
So I suggest to check the symbols in the object files generated by your FORTAN and C compiler to see the difference.
Mi
"Rajesh Ramaya" <rajesh.ramaya@e-xstream.com>
Sent by: users-bounces@open-mpi.org 10/31/2008 03:07 PM
|
|