HP-MPI Version 1.1 for Windows Release Note
HP-MPI V1.1 for Windows Release Note
Fortran command line basics
47
ifort compute_pi.f /I"%MPI_ROOT%\include\64" /link /out:compute_pi.exe ^
/libpath:"%MPI_ROOT%\lib" /subsystem:console libhpmpi64.lib
autodouble (automatic promotion)
HP-MPI supports automatic promotion of Fortran datatypes using any of the following
arguments (some of which are not supported on all Fortran compilers).
/integer_size:64
/4I8
-i8
/real_size:64
/4R8
/Qautodouble
-r8
If these flags are given to the mpif90.bat script at link time, then the application will be
linked enabling HP-MPI to interpret the datatype MPI_REAL as 8 bytes (etc. as appropriate) at
runtime.
However, if your application is written to explicitly handle the autodoubled datatypes (e.g. if a
variable is declared real and the code is compiled -r8 and corresponding MPI calls are given
MPI_DOUBLE for the datatype), then the autodouble related command line arguments should
not be passed to mpif90.bat at link time (because that would cause the datatypes to be
automatically changed).