main Program

Variables

Type Attributes Name Initial
double precision, allocatable, target, dimension(:) :: aa
double precision, allocatable, target, dimension(:) :: bb
double precision, allocatable, target, dimension(:) :: cc_gpu
double precision, allocatable, target, dimension(:) :: cc_host
integer :: status
integer :: SIZE
integer :: i
integer :: ic
integer :: ib
integer :: ia
integer :: error
integer(kind=c_int) :: cublas_error
type(c_ptr) :: cublas_handle
double precision, target :: alpha
double precision, target :: beta

Enumerations

enum, bind(c)

Enumerators

enumerator:: CUBLAS_STATUS_SUCCESS = 0
enumerator:: CUBLAS_STATUS_NOT_INITIALIZED = 1
enumerator:: CUBLAS_STATUS_ALLOC_FAILED = 3
enumerator:: CUBLAS_STATUS_INVALID_VALUE = 7
enumerator:: CUBLAS_STATUS_ARCH_MISMATCH = 8
enumerator:: CUBLAS_STATUS_MAPPING_ERROR = 11
enumerator:: CUBLAS_STATUS_EXECUTION_FAILED = 13
enumerator:: CUBLAS_STATUS_INTERNAL_ERROR = 14

enum, bind(c)

Enumerators

enumerator:: CUBLAS_OP_N = 0
enumerator:: CUBLAS_OP_T = 1
enumerator:: CUBLAS_OP_C = 2

Interfaces

interface

  • function cublasCreate_v2(handle) bind(c, name="cublasCreate_v2")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr) :: handle

    Return Value integer(kind=c_int)

interface

  • function cublasDestroy_v2(handle) bind(c, name="cublasDestroy_v2")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: handle

    Return Value integer(kind=c_int)

interface

  • function cudaDeviceSynchronize_v2() bind(c, name="cudaDeviceSynchronize")

    Arguments

    None

    Return Value integer(kind=c_int)

interface

  • function cublasDgemm_v2(handle, transa, transb, m, n, k, alpha, dA, ldda, dB, lddb, beta, dC, lddc) bind(c, name="cublasDgemm_v2")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: handle
    integer(kind=c_int), value :: transa
    integer(kind=c_int), value :: transb
    integer(kind=c_int), value :: m
    integer(kind=c_int), value :: n
    integer(kind=c_int), value :: k
    real(kind=c_double) :: alpha
    type(c_ptr), value :: dA
    integer(kind=c_int), value :: ldda
    type(c_ptr), value :: dB
    integer(kind=c_int), value :: lddb
    real(kind=c_double) :: beta
    type(c_ptr), value :: dC
    integer(kind=c_int), value :: lddc

    Return Value integer(kind=c_int)



📚 Documentation Pages
⏱️ Real-Time
🔗 Code API