Re: [OMPI devel] openmpi 3.1.x examples
Am 13.07.2018 um 22:07 schrieb Nathan Hjelm via devel: For one. The C++ bindings are no longer part of the standard and they are not built by default in v3.1x. They will be removed entirely in Open MPI v5.0.0. Not sure why the fortran one is not building. the fortran problem is due to a compiler settings It works with $ mpifort -g hello_usempi.f90 -o hello_usempi -fintrinsic-modules-path /usr/lib --- Diese E-Mail wurde von AVG auf Viren geprüft. http://www.avg.com ___ devel mailing list devel@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/devel
Re: [OMPI devel] openmpi 3.1.x examples
For one. The C++ bindings are no longer part of the standard and they are not built by default in v3.1x. They will be removed entirely in Open MPI v5.0.0. Not sure why the fortran one is not building. -Nathan > On Jul 13, 2018, at 2:02 PM, Marco Atzeri wrote: > > Hi, > may be I am missing something obvious, but are the > examples still actual > > C: hello_c.c > C++: hello_cxx.cc > Fortran mpif.h: hello_mpifh.f > Fortran use mpi: hello_usempi.f90 > Fortran use mpi_f08: hello_usempif08.f90 > Java:Hello.java > C shmem.h: hello_oshmem_c.c > Fortran shmem.fh:hello_oshmemfh.f90 > > > $ make hello_cxx > mpic++ -g hello_cxx.cc -o hello_cxx > hello_cxx.cc: In function ‘int main(int, char**)’: > hello_cxx.cc:25:5: error: ‘MPI’ has not been declared > > $ make -i > ... > mpifort -g hello_usempi.f90 -o hello_usempi > hello_usempi.f90:14:8: > > use mpi >1 > Fatal Error: Can't open module file ‘mpi.mod’ for reading at (1): No such > file or directory > > The second could be a different problem > > $ ls /usr/lib/mpi.mod > /usr/lib/mpi.mod > > > --- > Diese E-Mail wurde von AVG auf Viren geprüft. > http://www.avg.com > > ___ > devel mailing list > devel@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/devel ___ devel mailing list devel@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/devel
[OMPI devel] openmpi 3.1.x examples
Hi, may be I am missing something obvious, but are the examples still actual C: hello_c.c C++: hello_cxx.cc Fortran mpif.h: hello_mpifh.f Fortran use mpi: hello_usempi.f90 Fortran use mpi_f08: hello_usempif08.f90 Java:Hello.java C shmem.h: hello_oshmem_c.c Fortran shmem.fh:hello_oshmemfh.f90 $ make hello_cxx mpic++ -g hello_cxx.cc -o hello_cxx hello_cxx.cc: In function ‘int main(int, char**)’: hello_cxx.cc:25:5: error: ‘MPI’ has not been declared $ make -i ... mpifort -g hello_usempi.f90 -o hello_usempi hello_usempi.f90:14:8: use mpi 1 Fatal Error: Can't open module file ‘mpi.mod’ for reading at (1): No such file or directory The second could be a different problem $ ls /usr/lib/mpi.mod /usr/lib/mpi.mod --- Diese E-Mail wurde von AVG auf Viren geprüft. http://www.avg.com ___ devel mailing list devel@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/devel