3 ms·
Fortran used to get lots of hate from the C-like crowd. Maybe it still does. This said, it is a modern, very high performance computing language. It is easy
by hpcjoe 5y ago
Fortran used to get lots of hate from the C-like crowd. Maybe it still does.
This said, it is a modern, very high performance computing language. It is easy to, as the article notes, adapt the language to fit the algorithm, rather than doing the reverse which C/C++/etc. demand. The only other language that I am aware of like that is Julia.
Julia has a REPL built in, and you need to use PackageCompiler.jl to compile AOT code. Then again fortran has a nascent REPL[1].
[1] https://lfortran.org/ https://lfortran.org/
- adgjlsfhk1 5y agoHonestly, I think fortran is way too far behind Julia at this point to be able to catch up. The work on LFortran is really ambitious and badly needed for the language, but it was needed 20 years ago. Once you factor in the fact that Fortran isn't expecting generics until the end of the decade, and has no real plans for solid GPU support, and I don't see it being enough to keep up with more modern languages.
- j_not_j 5y agoThe OpenMP project provides GPU support for the #pragmas which parallelize both C and Fortran 90 codes on SMP machines. (Note: not OpenMPI). See https://www.openmp.org/blog/openmp-api-speeds-up-autonomous-driving-codes/ https://www.openmp.org/blog/openmp-api-speeds-up-autonomous-... for a description of an example application of this. Both GNU and Clang support OpenMP pragmas.