Appearance
amr_ghost_bench_kernels
The benchmark's own device routines, in a module: flang does not lower a call to an internal procedure (a
containsof 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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
regime | integer(kind=I4P) | in | Active fill regime (SEAM_FILL_*). | |
meta | integer(kind=I4P) | in | Packed interpolation metadata (see seam_meta_pack). | |
ngc | integer(kind=I4P) | in | Ghost cells number (bounds of q_gpu). | |
q_gpu | real(kind=R8P) | in | Field variables, FNL layout (b,i,j,k,v). | |
v | integer(kind=I4P) | in | Variable index. | |
b_send | integer(kind=I4P) | in | Donor block index. | |
i_send | integer(kind=I4P) | in | Anchor donor cell, i. | |
j_send | integer(kind=I4P) | in | Anchor donor cell, j. | |
k_send | integer(kind=I4P) | in | Anchor donor cell, k. | |
density_var | integer(kind=I4P) | in | Density 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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
meta | integer(kind=I4P) | in | ||
ngc_ | integer(kind=I4P) | in | ||
qd | real(kind=R8P) | in | ||
b | integer(kind=I4P) | in | ||
i | integer(kind=I4P) | in | ||
j | integer(kind=I4P) | in | ||
k | integer(kind=I4P) | in | ||
rho_in | real(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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
meta | integer(kind=I4P) | in | ||
ngc_ | integer(kind=I4P) | in | ||
qd | real(kind=R8P) | in | ||
v | integer(kind=I4P) | in | ||
b | integer(kind=I4P) | in | ||
i | integer(kind=I4P) | in | ||
j | integer(kind=I4P) | in | ||
k | integer(kind=I4P) | in | ||
rho | real(kind=R8P) | in | ||
value_in | real(kind=R8P) | in |
Call graph