stretched_y_matrix_bytes Function

public pure function stretched_y_matrix_bytes(bc_is_010, stretching_y, lowmem_fft, n_spec, nproc) result(nbytes8)

010-case, non-uniform y-stretching Poisson coefficient matrices, src/poisson_fft.f90:176-186 (only 010 sets stretched_y) and :320-323,424-428 (allocation shapes), copied to the device at src/backend/cuda/poisson_fft.f90:390-411: 'bottom': a_re, a_im, shape (nx_spec, ny_spec, nz_spec, 5), real(dp) otherwise ('centred', 'top-bottom'): a_odd_re/im, a_even_re/im, shape (nx_spec, ny_spec/2, nz_spec, 5), real(dp) doubled by the store_a_dev copies when lowmem_fft is .false. (the default). On nproc > 1 ranks n_spec is the y-slab (nx_spec, ny/nproc, nz), but the matrices cover the z-slab (nx_spec, ny, nz/nproc) of the rank. The z-slab c_zslab_dev and the two all-to-all buffers r_a2a_dev add three complex z-slabs. An absent nproc counts one rank.

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: bc_is_010
character(len=*), intent(in) :: stretching_y
logical, intent(in) :: lowmem_fft
integer, intent(in) :: n_spec(3)
integer, intent(in), optional :: nproc

Return Value integer(kind=i8)


Called by

proc~~stretched_y_matrix_bytes~~CalledByGraph proc~stretched_y_matrix_bytes m_memory_estimate::stretched_y_matrix_bytes proc~spectral_plus_mirror_bytes m_memcheck_estimate::spectral_plus_mirror_bytes proc~spectral_plus_mirror_bytes->proc~stretched_y_matrix_bytes proc~estimate_for_num_gpus m_memcheck_estimate::estimate_for_num_gpus proc~estimate_for_num_gpus->proc~spectral_plus_mirror_bytes proc~print_requested_line m_memcheck_report::print_requested_line proc~print_requested_line->proc~estimate_for_num_gpus proc~report m_memcheck_report::report proc~report->proc~estimate_for_num_gpus proc~report->proc~print_requested_line proc~run_build_mode m_memcheck_build::run_build_mode proc~run_build_mode->proc~estimate_for_num_gpus program~x3d2_memcheck x3d2_memcheck program~x3d2_memcheck->proc~report program~x3d2_memcheck->proc~run_build_mode