Open MPI with D

Jude Young 10equals2 at gmail.com
Fri Nov 25 00:13:01 PST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, so I finally got mpi.h to compile and link with D.

A few problems are left to fix, like the fact that I didn't realize
that OpenMPI does not care about the types, unless you are building it...

Anyways applied a temp fix and got the first program running!
young at Dan-Laptop:~/bin/DlanguageBindings/OpenMPI/examples$ mpirun hello_d
Hello, world, I am 0 of 1

Not great, but its a start...
One thing that has been buggin me..
I don't fully understand how C handles the arguments given to the
program, but I do know that MPI handles them directly.
int MPI_Init(int *argc, const char ***argv);


Is there an easy way to turn D style (string[] args) into C style?



PS- MPI has it's own wrappers for the compilation of programs, mpicc.
would it be within the scope of Deimos to provide a similar mpidc wrapper?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOz04NAAoJENcHIWLyQiSlF5kIANt2Pbvodt8mkQ4QAmtq4scu
7IhZZxv8vNh0JRObsXBBLLFPghtPzc22WTfqFtngMO1n8RcAULtQhrCOmlgoZBlN
BL8srGW7k76UEHE8Sg+uDF/1ZX3QakzLg4fJQd8lFS1/gfOGJ4cLdXlzuxygi8u2
d6J8zBcUzwcGWslm6C/4P0cQwOHQlrIv9zKEyW4vv8439AsR3zr4aUA0mtmOp5bq
U92i1RvbNICsefsJCYQTrWJ0Hh4n7M3+KYfPwUFi4Aszg5UP0MY/3e51d1miId/L
hrIk+kAea6wxp8wLmUjE3LPCsKkYGdQBwoTrWkfUm/dX0GObM7x+Hy5MwRQJaa4=
=A8f+
-----END PGP SIGNATURE-----


More information about the Digitalmars-d mailing list