codon
codon copied to clipboard
Will codon support distributed libraries?
Will codon support distributed libraries such as openmpi? If I want to use a distributed library, do I have to encapsulate the interface and import it in codon?
Hi @GongChangYan -- it is on our roadmap to do something like this, similar to what we do for OpenMP right now, although can't give an ETA just yet. It is definitely possible to wrap a library like MPI in Codon; you can see how we do it for OpenMP here: https://github.com/exaloop/codon/blob/develop/stdlib/openmp.codon (there are also a number of compiler transformations involved to make it work seamlessly, but just using the API is relatively straightforward).