public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Rudnei Dias da Cunha <rudnei.cunha@gmail.com>
To: cygwin@cygwin.com
Subject: Problem with OpenMPI
Date: Thu, 1 Oct 2020 11:47:21 -0300	[thread overview]
Message-ID: <CAL8czr2kheRUF+PPt6RinGdoYROc82hXEUGzcA7Lsa_gt680iA@mail.gmail.com> (raw)

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

             reply	other threads:[~2020-10-01 14:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-01 14:47 Rudnei Dias da Cunha [this message]
2020-10-01 19:29 ` Marco Atzeri
     [not found]   ` <CAG0O4Lv+Hz8BnkWr+Wuo8bLAWihDwMJpvigNFtDsErthKdN3NA@mail.gmail.com>
2020-10-03 15:12     ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL8czr2kheRUF+PPt6RinGdoYROc82hXEUGzcA7Lsa_gt680iA@mail.gmail.com \
    --to=rudnei.cunha@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).