D programs linked with C/MPI based libraries

Kagamin spam at here.lot
Thu Apr 7 11:39:46 PDT 2011


Dominic Jones Wrote:

> Hello,
> 
> Is it possible to call within a D driver program library functions which are
> programmed in C/C++ with the message passing interface (MPI)? I want to write
> a program which makes use of the ParMetis library
> (http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview).
> 
> Supposing it is possible, to compile and run C/MPI programs, wrapper commands
> are used, such as mpicc and mpirun. What would be done in D?

Looks like MPI is just another C interface. You just need to write binding for it and call it.


More information about the Digitalmars-d-learn mailing list