In my project of developing optimization solvers, I am trying to test my code using as many compilers as possible. Due to some F03 features used in the code, not all compilers are applicable to my project.
I have set up a GitHub repository that provides a set of tools (a Makefile
and a small artificial test case) for testing whether a Fortran compiler is capable of compiling the code in my project. The following compilers have been tested (the list is updated from time to time, particularly the test results).
-
毕昇编译器 (Bisheng Compiler, based on the Classic flang) 1.3.3.b023 (fail:
Alloc
,Implied do
) -
Absoft Pro Fortran
af95
2022 with patch 4 (fail:Alloc
,Count
,Bound
,Array
,COA
,COB
,Circle
) -
AOCC
flang
13.0.0 (fail:Alloc
,Implied do
) -
Classic
flang
7.1.0 (fail:Alloc
,Implied do
) -
G95
g95
0.94 (insufficient support for F03 constructs) -
GNU
gfortran
9.3.0 -
Intel
ifort
2021.5.0 -
Intel
ifx
2022.0.0 -
Lahey
lf95
L8.10b (insufficient support for F03 constructs) -
NAG
nagfor
7.0 (fail:Alloc
) -
NVIDIA
nvfortran
21.11 (fail:Alloc
,Implied do
) -
Oracle
sunf95
12.6
I wanted to test LFortran, but it seems that there are still some intrinsic functions that are under development. Sorry if I overlooked something.
Besides, I have always wanted to test
But I am not sure whether Cray and IBM compilers are available on PC (x86, linux). For the NEC compiler, I have sent them several emails to ask how to purchase their compiler, but no reply has been received.
I will be very happy to hear your suggestions if there are other compilers to test or if you know how to make Cray/IBM/NEC compilers available on a linux PC. Thank you very much.