next up previous
Next: Other useful information Up: Basic Steps Previous: Run sample MPI

Edit and run your own program

The best is that you edit files in a CSIL machine, then copy files to meiko directory ( use ftp or rcp). In compiling a program, you can follow the Makefile in the sample directory or use the following commands.

 
cc -O -I/fs/meiko-user/shared/mpi/include -c cpi.c
cc -O -o cpi cpi.o -L/fs/meiko-user/shared/mpi/lib/meiko/meiko 
    -lmpi -L/opt/MEIKOcs2/lib -lew -lelan -lm
or 
f77 -O -o pi3 pi3.f -L/fs/meiko-user/shared/mpi/lib/meiko/meiko 
     -lmpi -L/opt/MEIKOcs2/lib -lew -lelan

To execute, be sure you are logged onto one of the server nodes (eg. m124.cs). make sure that your current directory is under /Mtmp and the compiled binary code is also under that directory.

Killing your job If your program does not work or it hangs, use control-C to kill it. Don't leave your program running before you logout, otherwise other people cannot use the partition you are occupying.

Every time when you logout, you should use rinfo and ps to check if you have any job running.



Tao Yang
Mon Mar 24 17:36:21 PST 1997