Jerry,

See
https://github.com/BerkeleyLab/fiats/blob/c256784fbd3eb28053daad657fc01c3caaf562d4/src/fiats/neural_network_s.F90#L871.
The F2023_LOCALITY macro switches on the use of reduce locality.  The
F2018_LOCALITY macro uses only locality specifiers that were in Fortran
2018.  The F2008_LOCALITY macro switches to default locality. In this code,
the biggest savings comes from reduce locality.

Damian

On Mon, Mar 10, 2025 at 10:20 Jerry D <jvdelis...@gmail.com> wrote:

> On 3/10/25 4:29 AM, Damian Rouson wrote:
> > If this moves forward, I’d like to offer example code to target in Fiats
> > (https://go.lbl.gov/fiats <https://go.lbl.gov/fiats>).  I presented
> > automatic parallelization results produced by compiling with LLVM flang-
> > new for inference at the PAW-ATM workshop at SC24 (see https://
> > go.lbl.gov/just-write-fortran <https://go.lbl.gov/just-write-fortran>).
> > It would be great to have a similar capability with gfortran.  And I
> > would be especially excited if Fortran 2023 reduce locality is
> > supported. In our training algorithm, the use of reduce locality reduces
> > one block of code from around 10 statements to one statement.
> >
> > Damian
> >
> Damian,
>
> Can you send an example of that one block of code as an example. You may
> have already done so, I have lost track in between some other burning
> issues.
>
> Regards,
>
> Jerry
>

Reply via email to