clBLAS  2.11
 All Functions Typedefs Enumerations Enumerator Groups Pages
Functions
ROTMG - Constructs the modified givens rotation

Functions

clblasStatus clblasSrotmg (cl_mem SD1, size_t offSD1, cl_mem SD2, size_t offSD2, cl_mem SX1, size_t offSX1, const cl_mem SY1, size_t offSY1, cl_mem SPARAM, size_t offSparam, cl_uint numCommandQueues, cl_command_queue *commandQueues, cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *events)
 construct the modified givens rotation on float elements More...
 
clblasStatus clblasDrotmg (cl_mem DD1, size_t offDD1, cl_mem DD2, size_t offDD2, cl_mem DX1, size_t offDX1, const cl_mem DY1, size_t offDY1, cl_mem DPARAM, size_t offDparam, cl_uint numCommandQueues, cl_command_queue *commandQueues, cl_uint numEventsInWaitList, const cl_event *eventWaitList, cl_event *events)
 construct the modified givens rotation on double elements More...
 

Detailed Description

Function Documentation

clblasStatus clblasDrotmg ( cl_mem  DD1,
size_t  offDD1,
cl_mem  DD2,
size_t  offDD2,
cl_mem  DX1,
size_t  offDX1,
const cl_mem  DY1,
size_t  offDY1,
cl_mem  DPARAM,
size_t  offDparam,
cl_uint  numCommandQueues,
cl_command_queue *  commandQueues,
cl_uint  numEventsInWaitList,
const cl_event *  eventWaitList,
cl_event *  events 
)

construct the modified givens rotation on double elements

Parameters
[out]DD1Buffer object that contains DD1
[in]offDD1Offset to DD1 in DD1 buffer object. Counted in elements.
[out]DD2Buffer object that contains DD2
[in]offDD2Offset to DD2 in DD2 buffer object. Counted in elements.
[out]DX1Buffer object that contains DX1
[in]offDX1Offset to DX1 in DX1 buffer object. Counted in elements.
[in]DY1Buffer object that contains DY1
[in]offDY1Offset to DY1 in DY1 buffer object. Counted in elements.
[out]DPARAMBuffer object that contains DPARAM array of minimum length 5 DPARAM(0) = DFLAG DPARAM(1) = DH11 DPARAM(2) = DH21 DPARAM(3) = DH12 DPARAM(4) = DH22
[in]offDparamOffset to DPARAM in DPARAM buffer object. Counted in elements.
[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 the floating point arithmetic with double precision;
  • the same error codes as the clblasSrotmg() function otherwise.
clblasStatus clblasSrotmg ( cl_mem  SD1,
size_t  offSD1,
cl_mem  SD2,
size_t  offSD2,
cl_mem  SX1,
size_t  offSX1,
const cl_mem  SY1,
size_t  offSY1,
cl_mem  SPARAM,
size_t  offSparam,
cl_uint  numCommandQueues,
cl_command_queue *  commandQueues,
cl_uint  numEventsInWaitList,
const cl_event *  eventWaitList,
cl_event *  events 
)

construct the modified givens rotation on float elements

Parameters
[out]SD1Buffer object that contains SD1
[in]offSD1Offset to SD1 in SD1 buffer object. Counted in elements.
[out]SD2Buffer object that contains SD2
[in]offSD2Offset to SD2 in SD2 buffer object. Counted in elements.
[out]SX1Buffer object that contains SX1
[in]offSX1Offset to SX1 in SX1 buffer object. Counted in elements.
[in]SY1Buffer object that contains SY1
[in]offSY1Offset to SY1 in SY1 buffer object. Counted in elements.
[out]SPARAMBuffer object that contains SPARAM array of minimum length 5 SPARAM(0) = SFLAG SPARAM(1) = SH11 SPARAM(2) = SH21 SPARAM(3) = SH12 SPARAM(4) = SH22
[in]offSparamOffset to SPARAM in SPARAM buffer object. Counted in elements.
[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;
  • clblasInvalidMemObject if either SX1, SY1, SD1, SD2 or SPARAM 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_srotmg.c.