Yes, I think we should have a Fortran coding benchmark, as well as a dataset curated for finetuning or training of coding LLMs for Fortran code development.
I did a web search and i found some early efforts in these areas:
Existing Benchmarks:
- fortbench (also discussed in another thread here): A reproducible, SWE-bench-style benchmark that tests whether LLM agents can fix 20 real issues from public Fortran projects using deterministic build/test verification. [1 ]
- HeCBench-Fortran-OMP : Specifically targets OpenMP GPU off benchmarks, which aligns closely with your interest in OpenMP/OpenACC data movement.
Datasets for Fine-Tuning (Fortran Output):
- HPC & OpenMP: There is a large OpenMP-Annotated Code Dataset (~77k HPC source files mapping loop contexts to OpenMP directives), as well as paired C++/Fortran datasets likeCodeRosetta andHPC-Fortran-Cpp . [1 ,2 ,3 ]
- General Fortran Generation:FortranCodeGen-3B-SynthData (~600 unit-tested MBPP-style tasks in Fortran) andtaeukkang/fortran-llm provide prompt-to-Fortran instruction pairs, alongside raw filtered corpora like the Fortran split ofThe Stack v2 /StarCoderData .