In HPVM, jobs are generally submitted using the Java front end to LSF (see section HPVM front end). This obviates the need for an `mpirun' program to start up the executable(s). See section Building and running MPI programs, for more details on how to run an MPI program.
When using Microsoft Fortran to compile MPI programs, care must be taken
to pass strings (character arrays) correctly to MPI functions. The
Microsoft Fortran compiler converts a character array parameter into two
parameters when it calls the function: a pointer to the array and a
second parameter indicating the length of the array. This is
problematic for the MPI library which expects only the pointer to the
array. The example `collective.F' in the MPI `examples'
directory of the HPVM 1.9 release illustrates how to create an
integer EQUIVALENCE for the character array and pass in the
integer pointer to the MPI library. In this way, a single pointer to
the character array is passed to the MPI library and the program will
link without any problems.
Go to the first, previous, next, last section, table of contents.