clBLAS  2.11
 All Functions Typedefs Enumerations Enumerator Groups Pages
Functions
SBMV - Symmetric banded matrix-vector multiplication

Functions

clblasStatus clblasSsbmv (clblasOrder order, clblasUplo uplo, size_t N, size_t K, cl_float alpha, const cl_mem A, size_t offa, size_t lda, const cl_mem X, size_t offx, int incx, cl_float beta, cl_mem Y, size_t offy, int incy, cl_uint numCommandQueues, cl_command_queue *commandQueues, cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *events)
 Matrix-vector product with a symmetric banded matrix and float elements. More...
 
clblasStatus clblasDsbmv (clblasOrder order, clblasUplo uplo, size_t N, size_t K, cl_double alpha, const cl_mem A, size_t offa, size_t lda, const cl_mem X, size_t offx, int incx, cl_double beta, cl_mem Y, size_t offy, int incy, cl_uint numCommandQueues, cl_command_queue *commandQueues, cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *events)
 Matrix-vector product with a symmetric banded matrix and double elements. More...
 

Detailed Description

Function Documentation

clblasStatus clblasDsbmv ( clblasOrder  order,
clblasUplo  uplo,
size_t  N,
size_t  K,
cl_double  alpha,
const cl_mem  A,
size_t  offa,
size_t  lda,
const cl_mem  X,
size_t  offx,
int  incx,
cl_double  beta,
cl_mem  Y,
size_t  offy,
int  incy,
cl_uint  numCommandQueues,
cl_command_queue *  commandQueues,
cl_uint  numEventsInWaitList,
const cl_event *  eventWaitList,
cl_event *  events 
)

Matrix-vector product with a symmetric banded matrix and double elements.

Matrix-vector products:

  • \( Y \leftarrow \alpha A X + \beta Y \)
Parameters
[in]orderRow/columns order.
[in]uploThe triangle in matrix being referenced.
[in]NNumber of rows and columns in banded matrix A.
[in]KNumber of sub-diagonals/super-diagonals in banded matrix A.
[in]alphaThe factor of matrix A.
[in]ABuffer object storing matrix A.
[in]offaOffset in number of elements for first element in matrix A.
[in]ldaLeading dimension of matrix A. It cannot be less than ( K + 1 )
[in]XBuffer object storing vector X.
[in]offxOffset of first element of vector X in buffer object. Counted in elements.
[in]incxIncrement for the elements of vector X. It cannot be zero.
[in]betaThe factor of vector Y.
[out]YBuffer object storing vector Y.
[in]offyOffset of first element of vector Y in buffer object. Counted in elements.
[in]incyIncrement for the elements of vector Y. It cannot be zero.
[in]numCommandQueuesNumber of OpenCL command queues in which the task is to be performed.
[in]commandQueuesOpenCL command queues.
[in]numEventsInWaitListNumber of events in the event wait list.
[in]eventWaitListEvent wait list.
[in]eventsEvent objects per each command queue that identify a particular kernel execution instance.
Returns
  • clblasSuccess on success;
  • clblasInvalidDevice if a target device does not support floating point arithmetic with double precision;
  • the same error codes as the clblasSsbmv() function otherwise.
clblasStatus clblasSsbmv ( clblasOrder  order,
clblasUplo  uplo,
size_t  N,
size_t  K,
cl_float  alpha,
const cl_mem  A,
size_t  offa,
size_t  lda,
const cl_mem  X,
size_t  offx,
int  incx,
cl_float  beta,
cl_mem  Y,
size_t  offy,
int  incy,
cl_uint  numCommandQueues,
cl_command_queue *  commandQueues,
cl_uint  numEventsInWaitList,
const cl_event *  eventWaitList,
cl_event *  events 
)

Matrix-vector product with a symmetric banded matrix and float elements.

Matrix-vector products:

  • \( Y \leftarrow \alpha A X + \beta Y \)
Parameters
[in]orderRow/columns order.
[in]uploThe triangle in matrix being referenced.
[in]NNumber of rows and columns in banded matrix A.
[in]KNumber of sub-diagonals/super-diagonals in banded matrix A.
[in]alphaThe factor of matrix A.
[in]ABuffer object storing matrix A.
[in]offaOffset in number of elements for first element in matrix A.
[in]ldaLeading dimension of matrix A. It cannot be less than ( K + 1 )
[in]XBuffer object storing vector X.
[in]offxOffset of first element of vector X in buffer object. Counted in elements.
[in]incxIncrement for the elements of vector X. It cannot be zero.
[in]betaThe factor of vector Y.
[out]YBuffer object storing vector Y.
[in]offyOffset of first element of vector Y in buffer object. Counted in elements.
[in]incyIncrement for the elements of vector Y. It cannot be zero.
[in]numCommandQueuesNumber of OpenCL command queues in which the task is to be performed.
[in]commandQueuesOpenCL command queues.
[in]numEventsInWaitListNumber of events in the event wait list.
[in]eventWaitListEvent wait list.
[in]eventsEvent objects per each command queue that identify a particular kernel execution instance.
Returns
  • clblasSuccess on success;
  • clblasNotInitialized if clblasSetup() was not called;
  • clblasInvalidValue if invalid parameters are passed:
    • either N or incx is zero, or
    • K is greater than N - 1
    • the leading dimension is invalid;
  • clblasInvalidMemObject if either A or X object is Invalid, or an image object rather than the buffer one;
  • clblasOutOfHostMemory if the library can't allocate memory for internal structures;
  • clblasInvalidCommandQueue if the passed command queue is invalid;
  • clblasInvalidContext if a context a passed command queue belongs to was released;
  • clblasInvalidOperation if kernel compilation relating to a previous call has not completed for any of the target devices;
  • clblasCompilerNotAvailable if a compiler is not available;
  • clblasBuildProgramFailure if there is a failure to build a program executable.
Examples:
example_ssbmv.c.