News for hackers. Stuff that matters.
Re:Translate Fortran to C++ with AI and RAG by AndrewGaspar on Saturday April 19, 2025 @09:00PM (#43740735)
What you want isn't really "output C++ code that is pedantically equivalent to this Fortran code but with the array indexing fixed up", it's usually more like "translate this Fortran module into something that I can offload to a GPU using CUDA/ROCm/etc. with the same high level semantics, but GPU-friendly low level optimizations", and the exact composition of those low level bits probably don't look exactly like a loop-by-loop translation.
Re:Translate Fortran to C++ with AI and RAG by jeffbee on Saturday April 19, 2025 @09:59PM (#43740997)
Doesn't CUDA handle FORTRAN as such?
Re:Translate Fortran to C++ with AI and RAG by pjmlp on Sunday April 20, 2025 @01:27AM (#43741704)
CUDA supports Fortran, is one of the reasons OpenCL lost.