Tunç Bahçecioğlu - Part 3

coding, parallel

Delphi and mpi in 4 steps

  1. Download and install MPICH2
  2. Download mpi.pas from lazarus site and put it in your project. http://wiki.lazarus.freepascal.org/MPICH
  3. Comment out any code that gives error in MPI.pas (Lazarus pascal is a little bit different than Delphi object pascal)
  4. Write your code!
program HelloWorld1;

uses  MPI;

var myid: integer;
begin
MPI_Init(nil,nil);
MPI_Comm_rank(MPI_COMM_WORLD,@myid);
writeln('id=',myid);
MPI_Finalize;

end.