free_mem Subroutine

public subroutine free_mem(helper, backend, ptr, error_code)

Uses

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

Frees memory based on backend

Arguments

Type IntentOptional Attributes Name
type(backend_helper), intent(inout) :: helper

Backend helper

type(dtfft_backend_t), intent(in) :: backend

GPU backend

type(c_ptr), intent(in) :: ptr

Pointer to the memory to free

integer(kind=int32), intent(out) :: error_code

Error code


Calls

proc~~free_mem~~CallsGraph proc~free_mem free_mem interface~cudafree cudaFree proc~free_mem->interface~cudafree interface~int_to_str int_to_str proc~free_mem->interface~int_to_str interface~ncclcommderegister ncclCommDeregister proc~free_mem->interface~ncclcommderegister interface~ncclmemfree ncclMemFree proc~free_mem->interface~ncclmemfree interface~nvshmem_free nvshmem_free proc~free_mem->interface~nvshmem_free mpi_abort mpi_abort proc~free_mem->mpi_abort proc~is_backend_nccl is_backend_nccl proc~free_mem->proc~is_backend_nccl proc~is_backend_nvshmem is_backend_nvshmem proc~free_mem->proc~is_backend_nvshmem proc~is_same_ptr is_same_ptr proc~free_mem->proc~is_same_ptr proc~ncclgeterrorstring ncclGetErrorString proc~free_mem->proc~ncclgeterrorstring proc~int_to_str_int32 int_to_str_int32 interface~int_to_str->proc~int_to_str_int32 proc~int_to_str_int64 int_to_str_int64 interface~int_to_str->proc~int_to_str_int64 proc~int_to_str_int8 int_to_str_int8 interface~int_to_str->proc~int_to_str_int8 interface~ncclgeterrorstring_c ncclGetErrorString_c proc~ncclgeterrorstring->interface~ncclgeterrorstring_c proc~string_c2f string_c2f proc~ncclgeterrorstring->proc~string_c2f

Called by

proc~~free_mem~~CalledByGraph proc~free_mem free_mem proc~mem_free~3 abstract_transpose_plan%mem_free proc~mem_free~3->proc~free_mem proc~run_autotune_backend run_autotune_backend proc~run_autotune_backend->proc~free_mem proc~autotune_grid autotune_grid proc~autotune_grid->proc~run_autotune_backend proc~create_cuda transpose_plan_cuda%create_cuda proc~create_cuda->proc~run_autotune_backend proc~autotune_grid_decomposition autotune_grid_decomposition proc~create_cuda->proc~autotune_grid_decomposition proc~destroy_cuda transpose_plan_cuda%destroy_cuda proc~destroy_cuda->proc~mem_free~3 proc~autotune_grid_decomposition->proc~autotune_grid