remove Subroutine

private subroutine remove(self, kernel)

Takes CUDA kernel as an argument and searches for it in cache If kernel is found than reduces ref_count of such entry and kernel becomes a null pointer

Type Bound

nvrtc_cache

Arguments

Type IntentOptional Attributes Name
class(nvrtc_cache), intent(inout) :: self

Cache instance

type(CUfunction), intent(inout) :: kernel

CUDA kernel to search for


Calls

proc~~remove~~CallsGraph proc~remove nvrtc_cache%remove is_null_ptr is_null_ptr proc~remove->is_null_ptr proc~is_same_ptr is_same_ptr proc~remove->proc~is_same_ptr

Called by

proc~~remove~~CalledByGraph proc~remove nvrtc_cache%remove proc~destroy~4 nvrtc_kernel%destroy proc~destroy~4->proc~remove proc~get_kernel get_kernel proc~get_kernel->proc~remove proc~create~4 nvrtc_kernel%create proc~create~4->proc~destroy~4 proc~create~4->proc~get_kernel proc~destroy~9 transpose_handle_cuda%destroy proc~destroy~9->proc~destroy~4 proc~create~9 transpose_handle_cuda%create proc~create~9->proc~create~4 proc~destroy_cuda transpose_plan_cuda%destroy_cuda proc~destroy_cuda->proc~destroy~9 proc~run_autotune_backend run_autotune_backend proc~run_autotune_backend->proc~destroy~9 proc~autotune_grid~2 autotune_grid proc~autotune_grid~2->proc~run_autotune_backend proc~create_cuda transpose_plan_cuda%create_cuda proc~create_cuda->proc~run_autotune_backend proc~autotune_grid_decomposition~2 autotune_grid_decomposition proc~create_cuda->proc~autotune_grid_decomposition~2 proc~autotune_grid_decomposition~2->proc~autotune_grid~2