spectral_slab_bytes Function

public pure function spectral_slab_bytes(n_spec) result(nbytes8)

Bytes of ONE complex spectral array (waves_dev, and c_dev on the plain-cuFFT fallback path) of the shape n_spec. n_spec comes from cuda_fft_spectral_dims in src/backend/cuda/poisson_fft.f90, the routine the solver init calls, so the shape per BC class and per number of ranks is the solver's. Whether a decomposition is valid is checked by cuda_fft_decomp_reason, not here.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n_spec(3)

Return Value integer(kind=i8)


Called by

proc~~spectral_slab_bytes~~CalledByGraph proc~spectral_slab_bytes m_memory_estimate::spectral_slab_bytes proc~estimate_for_num_gpus m_memcheck_estimate::estimate_for_num_gpus proc~estimate_for_num_gpus->proc~spectral_slab_bytes proc~spectral_extra_bytes_110 m_memory_estimate::spectral_extra_bytes_110 proc~estimate_for_num_gpus->proc~spectral_extra_bytes_110 proc~prepare_probe m_memcheck_estimate::prepare_probe proc~prepare_probe->proc~spectral_slab_bytes proc~spectral_extra_bytes_110->proc~spectral_slab_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~prepare_probe 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