Re: [OMPI users] Question about undefined routines when using mpi_f08

2018-08-06 Thread Grove, John W
Yes, yes, and yes. I built everything, both openmpi using icc for the C 
compiler, icpc for C++, and ifort for Fortran. All point to the same 
installation. My application is built using the installed openmpi front ends, 
mpicc, mpicxx, mpifort, which all report they use the intel versions.

John W. Grove
CCS-2 MS D413, PO Box 1663

Los Alamos National Laboratory

Los Alamos, NM 87545

(505) 667-0723

jgr...@lanl.gov

On 8/2/18, 3:14 PM, "users on behalf of Jeff Squyres (jsquyres) via users" 
 wrote:

On Aug 2, 2018, at 4:40 PM, Grove, John W  wrote:
> 
> I am compiling an application using openmpi 3.1.1. The application is 
mixed Fortran/C/C++. I am using the intel compiler on a mac pro running OS 
10.13.6. When I try to use the mpi_f08 interface I get unresolved symbols at 
load time, specficially
> _mpi_f08_types_mp_ompi_comm_op_ne_, 
_mpi_f08_types_mp_ompi_datatype_op_eq_, _mpi_f08_types_mp_ompi_op_op_eq_, 
_mpi_f08_types_mp_ompi_request_op_ne_, and _mpi_f08_types_mp_ompi_win_op_eq_. 
Generally the comparisons are being done against the appropriate NULL object, 
such as MPI_COMM_NULL. These routines appear to be present in the dylib objects 
created when I built openmpi, and I verified that the installed permissions are 
correct with user and group having read and execute permission as appropriate. 
Has anyone else seen this problem, and if some do you have any suggestions as 
to how to resolve this issue? Fortunately for me, I have the option to not use 
the f08 interface, and in this case everything works, but I would like to 
understand why using mpi_f08 fails to load for me.

Did you configure, compile, and install Open MPI with the Intel fortran 
compiler?

It is generally easiest to configure/compile/install Open MPI with the same 
compiler toolchain with which you will build your application.  Mismatching the 
Fortran compiler (e.g., building Open MPI with gfortran and then building your 
application with ifort) is one typical way of getting undefined symbols like 
this.

-- 
Jeff Squyres
jsquy...@cisco.com

___
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users


___
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users

Re: [OMPI users] Question about undefined routines when using mpi_f08

2018-08-02 Thread Jeff Squyres (jsquyres) via users
On Aug 2, 2018, at 4:40 PM, Grove, John W  wrote:
> 
> I am compiling an application using openmpi 3.1.1. The application is mixed 
> Fortran/C/C++. I am using the intel compiler on a mac pro running OS 10.13.6. 
> When I try to use the mpi_f08 interface I get unresolved symbols at load 
> time, specficially
> _mpi_f08_types_mp_ompi_comm_op_ne_, _mpi_f08_types_mp_ompi_datatype_op_eq_, 
> _mpi_f08_types_mp_ompi_op_op_eq_, _mpi_f08_types_mp_ompi_request_op_ne_, and 
> _mpi_f08_types_mp_ompi_win_op_eq_. Generally the comparisons are being done 
> against the appropriate NULL object, such as MPI_COMM_NULL. These routines 
> appear to be present in the dylib objects created when I built openmpi, and I 
> verified that the installed permissions are correct with user and group 
> having read and execute permission as appropriate. Has anyone else seen this 
> problem, and if some do you have any suggestions as to how to resolve this 
> issue? Fortunately for me, I have the option to not use the f08 interface, 
> and in this case everything works, but I would like to understand why using 
> mpi_f08 fails to load for me.

Did you configure, compile, and install Open MPI with the Intel fortran 
compiler?

It is generally easiest to configure/compile/install Open MPI with the same 
compiler toolchain with which you will build your application.  Mismatching the 
Fortran compiler (e.g., building Open MPI with gfortran and then building your 
application with ifort) is one typical way of getting undefined symbols like 
this.

-- 
Jeff Squyres
jsquy...@cisco.com

___
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users