Skip to content

amr_ghost_bench_kernels ​

The benchmark's own device routines, in a module: flang does not lower a call to an internal procedure (a contains of the program) from inside a target region ("'fir.call' op using value defined outside the region"), see docs/developer/fnl.md; nvfortran accepts both forms.

Source: src/tests/perf/ghost-fill/amr/test_amr_ghost_bench.F90

Dependencies

Contents ​

Functions ​

interp_seam_ghost_b8641a59 ​

VERBATIM COPY of adam_fnl_field_kernels' interp_seam_ghost_gpu_dev at b8641a59 (before #157 B1), for V0p. Device twin of field_object%interp_seam_ghost: the interpolant of interp_seam_value_gpu_dev, with the guard of issue #101 (the density, followed by the three momenta: the density clamped to the MP bound of the coarse cells' densities, seam_mp_bound, the velocity m/rho to the MP bound of their velocities, the momentum rho times it; a ghost whose clamped density is still below SEAM_DENSITY_GUARD times the anchor's takes in every variable the anchor cell's value, the injection value). Each thread recomputes the density of its ghost, so the rows of one ghost decide alike whatever their order; the guard reads only the tricubic donor footprint, real cells. The footprint buffers are constant-bound locals (see interp_seam_value_gpu_dev).

Attributes: pure

Returns: real(kind=R8P)

fortran
function interp_seam_ghost_b8641a59(regime, meta, ngc, q_gpu, v, b_send, i_send, j_send, k_send, density_var) result(value_)

Arguments

NameTypeIntentAttributesDescription
regimeinteger(kind=I4P)inActive fill regime (SEAM_FILL_*).
metainteger(kind=I4P)inPacked interpolation metadata (see seam_meta_pack).
ngcinteger(kind=I4P)inGhost cells number (bounds of q_gpu).
q_gpureal(kind=R8P)inField variables, FNL layout (b,i,j,k,v).
vinteger(kind=I4P)inVariable index.
b_sendinteger(kind=I4P)inDonor block index.
i_sendinteger(kind=I4P)inAnchor donor cell, i.
j_sendinteger(kind=I4P)inAnchor donor cell, j.
k_sendinteger(kind=I4P)inAnchor donor cell, k.
density_varinteger(kind=I4P)inDensity index for the guard, 0 for none (maps%seam_density_var).

Call graph

guard_density_nomp ​

seam_guard_density_gpu_dev without the MP bound (diagnostic): the density clamped to its bracketing cells' range.

Attributes: pure

Returns: real(kind=R8P)

fortran
function guard_density_nomp(meta, ngc_, qd, b, i, j, k, rho_in) result(rho)

Arguments

NameTypeIntentAttributesDescription
metainteger(kind=I4P)in
ngc_integer(kind=I4P)in
qdreal(kind=R8P)in
binteger(kind=I4P)in
iinteger(kind=I4P)in
jinteger(kind=I4P)in
kinteger(kind=I4P)in
rho_inreal(kind=R8P)in

Call graph

guard_value_nomp ​

seam_guard_value_gpu_dev without the MP bound (diagnostic): a velocity clamped to its bracketing cells' range.

Attributes: pure

Returns: real(kind=R8P)

fortran
function guard_value_nomp(meta, ngc_, qd, v, b, i, j, k, rho, value_in) result(value_)

Arguments

NameTypeIntentAttributesDescription
metainteger(kind=I4P)in
ngc_integer(kind=I4P)in
qdreal(kind=R8P)in
vinteger(kind=I4P)in
binteger(kind=I4P)in
iinteger(kind=I4P)in
jinteger(kind=I4P)in
kinteger(kind=I4P)in
rhoreal(kind=R8P)in
value_inreal(kind=R8P)in

Call graph