Michal Kucer
2025
LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study
Nishath Rajiv Ranasinghe
|
Shawn M. Jones
|
Michal Kucer
|
Ayan Biswas
|
Daniel O’Malley
|
Alexander Most
|
Selma Liliane Wanna
|
Ajay Sreekumar
Proceedings of the 1st Workshop on AI and Scientific Discovery: Directions and Opportunities
Large Language Models (LLMs) are increasinglybeing leveraged for generating andtranslating scientific computer codes by bothdomain-experts and non-domain experts. Fortranhas served as one of the go to programminglanguages in legacy high-performance computing(HPC) for scientific discoveries. Despitegrowing adoption, LLM-based code translationof legacy code-bases has not been thoroughlyassessed or quantified for its usability.Here, we studied the applicability of LLMbasedtranslation of Fortran to C++ as a step towardsbuilding an agentic-workflow using openweightLLMs on two different computationalplatforms. We statistically quantified the compilationaccuracy of the translated C++ codes,measured the similarity of the LLM translatedcode to the human translated C++ code, andstatistically quantified the output similarity ofthe Fortran to C++ translation.
Search
Fix data
Co-authors
- Ayan Biswas 1
- Shawn M. Jones 1
- Alexander Most 1
- Daniel O’Malley 1
- Nishath Rajiv Ranasinghe 1
- show all...