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.

1 Comment

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*Required Fields