SELF_GPU Module


Uses

  • module~~self_gpu~~UsesGraph module~self_gpu SELF_GPU module~self_gpu_enums~2 SELF_GPU_enums module~self_gpu->module~self_gpu_enums~2 iso_c_binding iso_c_binding module~self_gpu->iso_c_binding module~self_gpu_enums~2->iso_c_binding

Contents


Interfaces

public interface hipFree

  • public function hipFree_(ptr) bind(c,name="hipFree")

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: ptr

    Return Value integer(kind=kind(hipSuccess))

public interface hipGetDeviceCount

  • public function hipGetDeviceCount_(count) bind(c,name="hipGetDeviceCount")

    Arguments

    TypeIntentOptionalAttributesName
    integer(kind=c_int) :: count

    Return Value integer(kind=kind(hipSuccess))

public interface hipMalloc

  • public function hipMalloc_(ptr, mySize) bind(c,name="hipMalloc")

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr) :: ptr
    integer(kind=c_size_t), value:: mySize

    Return Value integer(kind=kind(hipSuccess))

public interface hipMemcpy

  • public function hipMemcpy_(dest, src, sizeBytes, myKind) bind(c,name="hipMemcpy")

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: dest
    type(c_ptr), value:: src
    integer(kind=c_size_t), value:: sizeBytes
    integer(kind=kind(hipMemcpyHostToHost)), value:: myKind

    Return Value integer(kind=kind(hipSuccess))

public interface hipSetDevice

  • public function hipSetDevice_(device_id) bind(c,name="hipSetDevice")

    Arguments

    TypeIntentOptionalAttributesName
    integer(kind=c_int), value:: device_id

    Return Value integer(kind=kind(hipSuccess))


Functions

public function GPUAvailable() result(avail)

Arguments

None

Return Value logical


Subroutines

public subroutine gpuCheck(gpuError_t)

Arguments

TypeIntentOptionalAttributesName
integer(kind=kind(hipSuccess)) :: gpuError_t