BSPonMPI transforms a BSP program into an MPI program. Therefore in addition to linking this library to your program, you should use your standard MPI tools to compile and run it.
Example: Suppose on Unix your MPI compiler is 'mpicc' and you want
to compile your program example.c, you should execute
mpicc -o example example.c -lbsponmpi
If you have to link your MPI programs to e.g. to the library 'mpi', execute
cc -o example example.c -lmpi -lbsponmpi
Sometimes it matters in which order you pass your libraries to the linker. So if it doesn't work, try reordering the linker/compiler arguments.
RunningAfter compilation your program is an MPI program. Run it using the command you always use to run MPI programs (or consult your system administrator).
mpirun -np 4 example
Runs the 'example' program on 4 processors when you use the MPICH library.
BSPonMPI implements BSPlib for the most part. There is one deviation
of the standard: A call to
bsp_init() is mandatory. BSPonMPI warns
you when your program does not call