
Using OpenCL from FORTRANĪs mentioned earlier, OpenCL is C API, and can be accessible directly from C, but not from FORTRAN. One good example is C support for pointers, while in FORTRAN they have different meaning and implementation. Although similar in mind and programming constructs, sometimes the difference can make them very distinct from each other. FORTRAN suits scientific computing very well, but when it comes to working with hardware issues, C is better and closer to the “metal”. FORTRAN and CĪre pretty much different languages. Those who will be patient reading through without skipping, will enjoy and hopefully benefit, to the end.Īs an old Hebrew saying: “ If you worked hard and achieved, believe it” (is possible). The rest of the post describes the process of our development and early integration. Therefore, to integrate OpenCL into FORTRAN we have to bridge with C somehow. Anyway, the two of us are not fluent native FORTRAN speakers from elementary school and feel more comfortable in C for advanced programming and due to other technical issues with libraries being used we have to stick with C/C++. One of the roles in our projects is to add GPGPU capability through OpenCL to accelerate various routines. For those who are familiar, OpenCL is a C based API.


Certainly, a vast majority of scientific code is also written in FORTRAN.
#Simply fortran cuda support software
Either Photon-Plasma simulations or CESM for climate modeling (as most climate modeling software around). Both of the projects Lukas and I are working on, here at NBI Copenhagen, are based on FORTRAN.
