Go to the first, previous, next, last section, table of contents.


Building and running Global Arrays programs

C programs that use Global Arrays should #include the files `global.h', `sndrcv.h', `msgtypesc.h', and `macommon.h'. Fortran programs should include the files `mafdecls.fh', `global.fh', and `tcgmsg.fh'.

Global Arrays requires several libraries in the link phase. They are:

`ma.lib' [Windows NT]
MA is a library of routines that comprises a dynamic memory allocator for use by C, Fortran, or mixed-language applications. Information about using MA is available from http://www.emsl.pnl.gov:2080/docs/parsoft/ma/MAapi.html.
`tcgmsg.lib' [Windows NT]
TCGMSG is a simple, messaging layer that has been ported to a wide variety of systems. (20) The HPVM implementation of TCGMSG is built atop SHMEM.
`linalg.lib' [Windows NT]
LAPACK is a widely-used linear algebra package. It provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, singular-value problems, and a variety of matrix factorizations, such as LU, Cholesky, QR, SVD, and Schur.
`global.lib' [Windows NT]
Global Arrays provides a consistent way to access the functions provided by all the above libraries in the context of two-dimensional arrays.

Before running an HPVM Global Arrays program, the FM environment variables listed in section Building and running FM programs, must be set. Then, start the program on each node with the command-line arguments -np #-of-processes and -key some-key-name. Note that all processes that are part of the same run of a program must specify the same values for -np and -key. After all nodes are started, they will synchronize and the program will begin to execute.


Go to the first, previous, next, last section, table of contents.