Simple summation 8x slower than in Julia

Here are my timings with different compilers:

$ gfortran -Ofast -march=native test.f90 && ./a.out
 Time   1.4684500000000000
   1.7136493465701697
$ ifort -fast -xHost test.f90 && ./a.out
ipo: warning #11021: unresolved __ehdr_start
        Referenced in libc.a(libc-start.o)
 Time  0.699488000000000
   1.71364934657041
$ nvfortran -fast test.f90 && ./a.out                                                                                                                                                       
/usr/bin/ld: warning: /home/pedro/software/nvidia/hpc_sdk/Linux_x86_64/21.3/compilers/lib/nvhpc.ld contains output sections; did you forget -T?
 Time   0.2167658805847168
    1.713649346569483
3 Likes