Skip to content

Comparison reproducibility #2

@ivan-pi

Description

@ivan-pi

I run your comparison on my Mac, using gfortran v13:

$ make
gfortran-13 -o index_array -Wall -O3 index_array.f90
gfortran-13 -o whole_array -Wall -O3 whole_array.f90
whole_array.f90:34:68:

   34 |   real ( kind = 8 ), dimension ( Nx, Ny ) :: r, con, dfdcon, lap_con, dummy_con
      |                                                                    1
Warning: Unused variable 'lap_con' declared at (1) [-Wunused-variable]
$ ./index_array 
 ------------------------------------------------------
  Indexed array compute time =      8.723 seconds.
$ ./whole_array 
 ------------------------------------------------------
  Whole array computed time =     13.959 seconds.

The indexed version looks faster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions