public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problem with OpenMPI
@ 2020-10-01 14:47 Rudnei Dias da Cunha
  2020-10-01 19:29 ` Marco Atzeri
  0 siblings, 1 reply; 3+ messages in thread
From: Rudnei Dias da Cunha @ 2020-10-01 14:47 UTC (permalink / raw)
  To: cygwin

Hi,
I have installed all the relevant OpenMPI packages to develop programs in
Fortran but found a problem when compiling programs in Fortran 90 with the
clause

use mpi

as mpifort then complains:

$ mpifort hello_usempi.f90
hello_usempi.f90:13:9:

   13 |     use mpi
      |         1
Fatal Error: Cannot open module file ‘mpi.mod’ for reading at (1): No such
file or directory

The workaround was to use

mpifort -J/usr/lib

as /usr/lib is the directory where mpi.mod resides after the installation
of the OpenMPI packages.

Has anyone found this before? Shouldn't the flag -J/usr/lib be issued as
part of the string issued by mpifort?

Regards
Rudnei

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-03 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 14:47 Problem with OpenMPI Rudnei Dias da Cunha
2020-10-01 19:29 ` Marco Atzeri
     [not found]   ` <CAG0O4Lv+Hz8BnkWr+Wuo8bLAWihDwMJpvigNFtDsErthKdN3NA@mail.gmail.com>
2020-10-03 15:12     ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).