Re:Scientific Computing on the Erlang VM
by rvirding on Friday January 02, 2015 @11:17AM
(#8827250)
You can use similar methods for interfacing C as well, if this is a better way for you to interface fortran.
[ Parent
| on HN ]
Re:Scientific Computing on the Erlang VM
by m_mueller on Friday January 02, 2015 @09:29PM
(#8829682)
C bindings are compatible with Fortran, you mainly have to think about two issues:
* depending on the compiler / setting, the Fortran function names have one or two underlines as well as their module name prepended.
* index order for multidimensional arrays are reversed in Fortran.
Other than that the datatypes basically just work. So as long as you have C bindings this is not what I'm worried about, it's rather the overhead of the Erlang VM when compared to MPI (although for usual HPC loads this probably wouldn't even be an issue as long as it's not an order of magnitude slower, since most of them are not network bound if done right).