HP-MPI Version 1.1 for Windows Release Note
HP-MPI V1.1 for Windows Release Note
C command line basics
45
and the linker options:
/libpath:"%MPI_ROOT%\lib" /subsystem:console <libhpmpi64.lib|libhpmpi32.lib>
The above assumes the environment variable MPI_ROOT is set.
For example, to compile hello_world.c from the Help directory using Visual Studio (from a
Visual Studio 2005 command prompt window):
cl hello_world.c /I"%MPI_ROOT%\include\64" /link /out:hello_world.exe ^
/libpath:"%MPI_ROOT%\lib" /subsystem:console libhpmpi64.lib
The PGI compiler uses a more UNIX-like syntax. From a PGI command prompt:
pgcc hello_world.c -I"%MPI_ROOT%\include\64" -o hello_world.exe ^
-L"%MPI_ROOT%\lib" -lhpmpi64