Re: MPI beginner



Rick: Three possibilities;

1) Manually commenet out the MPI calls and logic.

2 ) Use Fortran Preprocessor (FPP) logic to effect essentially the same t hing.
(see:
http://www.intel.com/software/products/compilers/docs/flin/main_for/mergedProjects/bldaps_for/common/bldaps_use_fpp.htm

3) Try out: mpiSim - An experimental MPI Simulation Tool:
http://ftp.aset.psu.edu/pub/ger/fortran/mpiSim/mpiSim.html
(Pay particular attention to the Limitations section).

Regards.
Skip Knoble


On Mon, 29 Sep 2008 01:57:45 -0700 (PDT), Rick <fernand31@xxxxxxxxx> wrote:

-|This is probably a silly question, but: is there a standard way to
-|compile the same code with ifort using MPI or not using it? For
-|instance, I could provide line of codes that would apply in each of
-|the two cases.
-|My code is used by other people, most of the time without
-|parallelization. That would save them the burden of installing mpi
-|each time.
-|
-|With ifort, compiling MPI code does not work:
-|
-|fortcom: Error: hello_f90.f90, line 12: Error in opening the compiled
-|module file. Check INCLUDE paths. [MPI]
-| use mpi
-|--------^
-|fortcom: Error: hello_f90.f90, line 17: This name does not have a
-|type, and must have an explicit type. [MPI_COMM_WORLD]
-| call MPI_COMM_RANK(MPI_COMM_WORLD, rank, ierr)
-|-----------------------^

.



Relevant Pages

  • Re: MPI beginner
    ... compile the same code with ifort using MPI or not using it? ... There are two standard ways to deal with this. ... The second is to use Coco to conditionally compile in the MPI stuff. ...
    (comp.lang.fortran)
  • Re: MPI beginner
    ... compile the same code with ifort using MPI or not using it? ... You can supply a dummy module with dummy routines and parameters. ...
    (comp.lang.fortran)
  • Re: Changing MPI compiler
    ... Can I not use the regular Intel Compiler ifc to make MPI ... Tim Prince wrote: ... > You can't mix pgf90 MPI with ifort like this. ...
    (comp.lang.fortran)
  • MPI beginner
    ... This is probably a silly question, but: is there a standard way to ... compile the same code with ifort using MPI or not using it? ...
    (comp.lang.fortran)
  • Re: What do you prefer: real(8) or double precision and why?
    ... > The include solutions however, appear to give me a problem with using fpp, ... > on platforms that do not support MPI. ... And of course, in your code you then include the .i90 files, not the ...
    (comp.lang.fortran)