clBLAS  2.11
 All Functions Typedefs Enumerations Enumerator Groups Pages
Functions
SYR - Symmetric rank 1 update

Functions

clblasStatus clblasSsyr (clblasOrder order, clblasUplo uplo, size_t N, cl_float alpha, const cl_mem X, size_t offx, int incx, cl_mem A, size_t offa, size_t lda, cl_uint numCommandQueues, cl_command_queue *commandQueues, cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *events)
 Symmetric rank 1 operation with a general triangular matrix and float elements. More...
 
clblasStatus clblasDsyr (clblasOrder order, clblasUplo uplo, size_t N, cl_double alpha, const cl_mem X, size_t offx, int incx, cl_mem A, size_t offa, size_t lda, cl_uint numCommandQueues, cl_command_queue *commandQueues, cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *events)
 Symmetric rank 1 operation with a general triangular matrix and double elements. More...
 

Detailed Description

The Level 2 Basic Linear Algebra Subprograms are functions that perform symmetric rank 1 update operations.

Function Documentation

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

Symmetric rank 1 operation with a general triangular matrix and double elements.

Symmetric rank 1 operation:

  • \( A \leftarrow \alpha x x^T + A \)
Parameters
[in]orderRow/column order.
[in]uploThe triangle in matrix being referenced.
[in]NNumber of columns in matrix A.
[in]alphaThe factor of matrix A.
[in]XBuffer object storing vector X.
[in]offxOffset of first element of vector X in buffer object.
[in]incxIncrement for the elements of X. Must not be zero.
[out]ABuffer object storing matrix A.
[in]offaOffset of first element of matrix A in buffer object.
[in]ldaLeading dimension of matrix A. It cannot be less than N.
[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 clblasSsyr() function otherwise.
clblasStatus clblasSsyr ( clblasOrder  order,
clblasUplo  uplo,
size_t  N,
cl_float  alpha,
const cl_mem  X,
size_t  offx,
int  incx,
cl_mem  A,
size_t  offa,
size_t  lda,
cl_uint  numCommandQueues,
cl_command_queue *  commandQueues,
cl_uint  numEventsInWaitList,
const cl_event *  eventWaitList,
cl_event *  events 
)

Symmetric rank 1 operation with a general triangular matrix and float elements.

Symmetric rank 1 operation:

  • \( A \leftarrow \alpha x x^T + A \)
Parameters
[in]orderRow/column order.
[in]uploThe triangle in matrix being referenced.
[in]NNumber of columns in matrix A.
[in]alphaThe factor of matrix A.
[in]XBuffer object storing vector X.
[in]offxOffset of first element of vector X in buffer object.
[in]incxIncrement for the elements of X. Must not be zero.
[out]ABuffer object storing matrix A.
[in]offaOffset of first element of matrix A in buffer object.
[in]ldaLeading dimension of matrix A. It cannot be less than N.
[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:
    • N is zero, or
    • either incx is zero, or
    • the leading dimension is invalid;
  • clblasInvalidMemObject if either A, 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.