VTT-ProperTune/OpenPFC

Changing reshape algorithm from json does not work

Opened this issue · 1 comments

    "fft_options": {
        "reshape_algorithm": "p2p_plined",
        "use_gpu_aware": true,
        "use_pencils": true,
        "use_reorder": true
    },
World: (Lx = 1024, Ly = 1024, Lz = 1024, x0 = -568.689, y0 = -568.689, z0 = -568.689, x1 = 568.689, y1 = 568.689, z0 = 568.689, dx = 1.111, dy = 1.111, dz = 1.111)
backend options: options = (fft1d:contiguous, mpi:alltoallv, decomposition:pencil, mpi:from-gpu)

In backend options, there clearly should be p2p_plined, not alltoallv.

It is working, but should use plan_options, not fft_options.

    "origo": "center",
    "plan_options": {
        "reshape_algorithm": "p2p_plined",
        "use_gpu_aware": true,
        "use_pencils": true,
        "use_reorder": true
    },
    "saveat": -1.0,
    "t0": 0.0,
    "t1": 10.0
}

World: (Lx = 128, Ly = 128, Lz = 128, x0 = -71.086, y0 = -71.086, z0 = -71.086, x1 = 71.086, y1 = 71.086, z0 = 71.086, dx = 1.111, dy = 1.111, dz = 1.111)

Parsing backend options ...
Using strided 1d fft operations
Using p2p_plined reshape algorithm
Using pencil decomposition
Using gpu aware fft
Backend options: options = (fft1d:contiguous, mpi:point-to-point-pipelined, decomposition:pencil, mpi:from-gpu)

Again, validation of JSON input files using a JSON validator before running the simulation would be a very good improvement. See issue #31.