compile_and_cache Function

private function compile_and_cache(comm, kernel_name, kernel_type, transpose_type, code, props, base_storage, tile_size, padding) result(kernel)

Uses

  • proc~~compile_and_cache~~UsesGraph proc~compile_and_cache compile_and_cache iso_c_binding iso_c_binding proc~compile_and_cache->iso_c_binding iso_fortran_env iso_fortran_env proc~compile_and_cache->iso_fortran_env

Compiles kernel stored in code and caches pointer to CUfunction

Arguments

Type IntentOptional Attributes Name
type(MPI_Comm), intent(in) :: comm

MPI Communicator

character(len=*), intent(in) :: kernel_name

Kernel name

type(kernel_type_t), intent(in) :: kernel_type

Type of kernel to build

type(dtfft_transpose_t), intent(in) :: transpose_type

Type of transposition to perform

type(kernel_codegen), intent(in) :: code

Kernel code to compile

type(device_props), intent(in) :: props

GPU architecture properties

integer(kind=int64), intent(in) :: base_storage

Number of bytes needed to store single element

integer(kind=int32), intent(in) :: tile_size

Tile size to use in shared memory

integer(kind=int32), intent(in) :: padding

Padding to use in shared memory

Return Value type(CUfunction)

Compiled kernel to return


Calls

proc~~compile_and_cache~~CallsGraph proc~compile_and_cache compile_and_cache interface~to_str to_str proc~compile_and_cache->interface~to_str is_null_ptr is_null_ptr proc~compile_and_cache->is_null_ptr mpi_abort mpi_abort proc~compile_and_cache->mpi_abort proc~add nvrtc_cache%add proc~compile_and_cache->proc~add proc~astring_f2c astring_f2c proc~compile_and_cache->proc~astring_f2c proc~cudageterrorstring cudaGetErrorString proc~compile_and_cache->proc~cudageterrorstring proc~destroy_strings destroy_strings proc~compile_and_cache->proc~destroy_strings proc~get nvrtc_cache%get proc~compile_and_cache->proc~get proc~get_conf_log_enabled get_conf_log_enabled proc~compile_and_cache->proc~get_conf_log_enabled proc~nvrtcgeterrorstring nvrtcGetErrorString proc~compile_and_cache->proc~nvrtcgeterrorstring proc~pop_nvtx_domain_range pop_nvtx_domain_range proc~compile_and_cache->proc~pop_nvtx_domain_range proc~push_nvtx_domain_range push_nvtx_domain_range proc~compile_and_cache->proc~push_nvtx_domain_range proc~string_c2f string_c2f proc~compile_and_cache->proc~string_c2f proc~to_cstr kernel_codegen%to_cstr proc~compile_and_cache->proc~to_cstr proc~write_message write_message proc~compile_and_cache->proc~write_message proc~double_to_string double_to_string interface~to_str->proc~double_to_string proc~float_to_string float_to_string interface~to_str->proc~float_to_string proc~int32_to_string int32_to_string interface~to_str->proc~int32_to_string proc~int64_to_string int64_to_string interface~to_str->proc~int64_to_string proc~int8_to_string int8_to_string interface~to_str->proc~int8_to_string proc~create~12 nvrtc_cache%create proc~add->proc~create~12 proc~get_true_transpose_type get_true_transpose_type proc~add->proc~get_true_transpose_type proc~string_f2c string_f2c proc~astring_f2c->proc~string_f2c proc~cudageterrorstring->proc~string_c2f interface~cudageterrorstring_c cudaGetErrorString_c proc~cudageterrorstring->interface~cudageterrorstring_c proc~destroy_string string%destroy_string proc~destroy_strings->proc~destroy_string proc~get->proc~get_true_transpose_type proc~is_unpack_kernel is_unpack_kernel proc~get->proc~is_unpack_kernel interface~get_conf_internal get_conf_internal proc~get_conf_log_enabled->interface~get_conf_internal proc~nvrtcgeterrorstring->proc~string_c2f interface~nvtxdomainrangepop_c nvtxDomainRangePop_c proc~pop_nvtx_domain_range->interface~nvtxdomainrangepop_c proc~push_nvtx_domain_range->proc~astring_f2c interface~nvtxdomainrangepushex_c nvtxDomainRangePushEx_c proc~push_nvtx_domain_range->interface~nvtxdomainrangepushex_c proc~create_nvtx_domain create_nvtx_domain proc~push_nvtx_domain_range->proc~create_nvtx_domain proc~to_cstr->proc~astring_f2c mpi_comm_rank mpi_comm_rank proc~write_message->mpi_comm_rank mpi_finalized mpi_finalized proc~write_message->mpi_finalized proc~get_conf_internal_int32 get_conf_internal_int32 interface~get_conf_internal->proc~get_conf_internal_int32 proc~get_conf_internal_logical get_conf_internal_logical interface~get_conf_internal->proc~get_conf_internal_logical proc~create_nvtx_domain->proc~astring_f2c interface~nvtxdomaincreate_c nvtxDomainCreate_c proc~create_nvtx_domain->interface~nvtxdomaincreate_c

Called by

proc~~compile_and_cache~~CalledByGraph proc~compile_and_cache compile_and_cache proc~get_kernel get_kernel proc~get_kernel->proc~compile_and_cache proc~get_transpose_kernel get_transpose_kernel proc~get_kernel->proc~get_transpose_kernel proc~get_transpose_kernel->proc~compile_and_cache proc~create~4 nvrtc_kernel%create proc~create~4->proc~get_kernel proc~create~9 transpose_handle_cuda%create proc~create~9->proc~create~4