Do concurrent "reduce" in GCC

Does anyone know if anyone is working on a GCC implementation of the Fortran 2023 do concurrent reduce() clause?

I am not even referring to implementing it in parallel - just to have the compiler recognize it and not throw an error when compiling (even if it just treats the loop as a serial do loop like it does currently for do concurrent anyways).

Intel’s ifx, NVIDIA’s nvfortran, and HPE’s cce compilers all recognize the new reduce() clause. I believe lfortran and flang do as well?

However, if I want to write code that also works with GCC, I cannot use reduce() even with GCC 14.

Does anyone know if GCC 15 will recognize the clause?

– Ron

https://gcc.gnu.org/pipermail/fortran/2024-September/061043.html

1 Like