Skip to content

rocblas_wrapper

Lines: 259 | Visibility: public

Fortran wrapper around rocBLAS aiming to provide the same API as BLAS author: Gunnar Schmitz

Dependencies

Uses

module~~rocblas_wrapper~~UsesGraph module~rocblas_wrapper rocblas_wrapper iso_c_binding iso_c_binding module~rocblas_wrapper->iso_c_binding module~mod_settings mod_settings module~rocblas_wrapper->module~mod_settings module~mod_constants mod_constants module~mod_settings->module~mod_constants module~mod_cpu_vendor mod_cpu_vendor module~mod_settings->module~mod_cpu_vendor module~mod_io mod_io module~mod_settings->module~mod_io module~mod_periodic_table mod_periodic_table module~mod_settings->module~mod_periodic_table module~mod_precision mod_precision module~mod_settings->module~mod_precision module~mod_throw mod_throw module~mod_settings->module~mod_throw module~mod_constants->iso_c_binding module~mod_constants->module~mod_precision module~mod_cpu_vendor->iso_c_binding module~mod_io->module~mod_precision iso_fortran_env iso_fortran_env module~mod_io->iso_fortran_env module~mod_optional_args mod_optional_args module~mod_io->module~mod_optional_args module~mod_periodic_table->module~mod_constants module~mod_periodic_table->module~mod_io module~mod_periodic_table->module~mod_precision module~mod_periodic_table->module~mod_throw module~mod_array_helpers mod_array_helpers module~mod_periodic_table->module~mod_array_helpers module~mod_precision->iso_c_binding module~mod_precision->iso_fortran_env module~mod_throw->iso_c_binding module~mod_throw->module~mod_io module~mod_throw->module~mod_precision module~mod_throw->iso_fortran_env module~mod_mpi mod_mpi module~mod_throw->module~mod_mpi module~mod_sort mod_sort module~mod_throw->module~mod_sort module~mod_array_helpers->module~mod_precision module~mod_array_helpers->module~mod_throw module~mod_mpi->module~mod_precision mpi_f08 mpi_f08 module~mod_mpi->mpi_f08 module~mod_sort->module~mod_precision

Module Variables

  • rocblas_handle : type(c_ptr)
  • handle_initialized : logical
  • ROCBLAS_OP_N : integer(c_int)
  • ROCBLAS_OP_T : integer(c_int)
  • ROCBLAS_FILL_LOWER : integer(c_int)
  • ROCBLAS_FILL_UPPER : integer(c_int)
  • ROCBLAS_SIDE_LEFT : integer(c_int)
  • ROCBLAS_SIDE_RIGHT : integer(c_int)
  • HIP_MEMCPY_HOST_TO_DEVICE : integer(c_int)
  • HIP_MEMCPY_DEVICE_TO_HOST : integer(c_int)

Procedures Summary

Name Type Description
blas_uplo_to_rocblas Function
blas_side_to_rocblas Function
rocblas_init Subroutine
rocblas_shutdown Subroutine
hip_daxpy Subroutine
hip_dsyr Subroutine
hip_dgemm Subroutine
hip_dsymm Subroutine
rocblas_init Subroutine
rocblas_shutdown Subroutine

Interface Details

interface rocblas_create_handle


interface rocblas_destroy_handle


interface hip_malloc


interface hip_free


interface hip_memcpy


interface rocblas_daxpy


interface rocblas_dsyr


interface rocblas_dgemm


interface rocblas_dsymm


Procedure Details

function blas_uplo_to_rocblas

function blas_uplo_to_rocblas( &
    uplo &
)

Arguments

  • uplo : character [in]

Called By

proc~~blas_uplo_to_rocblas~~CalledByGraph proc~blas_uplo_to_rocblas rocblas_wrapper::blas_uplo_to_rocblas proc~hip_dsymm rocblas_wrapper::hip_dsymm proc~hip_dsymm->proc~blas_uplo_to_rocblas proc~hip_dsyr rocblas_wrapper::hip_dsyr proc~hip_dsyr->proc~blas_uplo_to_rocblas

function blas_side_to_rocblas

function blas_side_to_rocblas( &
    side &
)

Arguments

  • side : character [in]

Called By

proc~~blas_side_to_rocblas~~CalledByGraph proc~blas_side_to_rocblas rocblas_wrapper::blas_side_to_rocblas proc~hip_dsymm rocblas_wrapper::hip_dsymm proc~hip_dsymm->proc~blas_side_to_rocblas

subroutine rocblas_init

subroutine rocblas_init()

subroutine rocblas_shutdown

subroutine rocblas_shutdown()

subroutine hip_daxpy

subroutine hip_daxpy( &
    n, &
    alpha, &
    x, &
    incx, &
    y, &
    incy &
)

Arguments

  • n : integer [in]
  • alpha : real(c_double) [in]
  • x : real(c_double) [in]
  • incx : integer [in]
  • y : real(c_double) [inout]
  • incy : integer [in]

subroutine hip_dsyr

subroutine hip_dsyr( &
    uplo, &
    n, &
    alpha, &
    x, &
    incx, &
    a, &
    lda &
)

Arguments

  • uplo : character [in]
  • n : integer [in]
  • alpha : real(c_double) [in]
  • x : real(c_double) [in]
  • incx : integer [in]
  • a : real(c_double) [inout]
  • lda : integer [in]

subroutine hip_dgemm

subroutine hip_dgemm( &
    transa, &
    transb, &
    m, &
    n, &
    k, &
    alpha, &
    a, &
    lda, &
    b, &
    ldb, &
    beta, &
    c, &
    ldc &
)

Arguments

  • transa : character [in]
  • transb : character [in]
  • m : integer [in]
  • n : integer [in]
  • k : integer [in]
  • alpha : real(c_double) [in]
  • a : real(c_double) [in]
  • lda : integer [in]
  • b : real(c_double) [in]
  • ldb : integer [in]
  • beta : real(c_double) [in]
  • c : real(c_double) [inout]
  • ldc : integer [in]

subroutine hip_dsymm

subroutine hip_dsymm( &
    side, &
    uplo, &
    m, &
    n, &
    alpha, &
    a, &
    lda, &
    b, &
    ldb, &
    beta, &
    c, &
    ldc &
)

Arguments

  • side : character [in]
  • uplo : character [in]
  • m : integer [in]
  • n : integer [in]
  • alpha : real(c_double) [in]
  • a : real(c_double) [in]
  • lda : integer [in]
  • b : real(c_double) [in]
  • ldb : integer [in]
  • beta : real(c_double) [in]
  • c : real(c_double) [inout]
  • ldc : integer [in]

subroutine rocblas_init

subroutine rocblas_init()

Called By

proc~~rocblas_init~2~~CalledByGraph proc~rocblas_init~2 rocblas_wrapper::rocblas_init proc~hip_daxpy rocblas_wrapper::hip_daxpy proc~hip_daxpy->proc~rocblas_init~2 proc~hip_dgemm rocblas_wrapper::hip_dgemm proc~hip_dgemm->proc~rocblas_init~2 proc~hip_dsymm rocblas_wrapper::hip_dsymm proc~hip_dsymm->proc~rocblas_init~2 proc~hip_dsyr rocblas_wrapper::hip_dsyr proc~hip_dsyr->proc~rocblas_init~2

subroutine rocblas_shutdown

subroutine rocblas_shutdown()