COPY - Copies elements from vector X to vector Y

pyclblas.clblasCcopy(N, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)

wraps: clblasCcopy

Copies complex-float elements from vector X to vector Y.

  • ( Y ← X )
Parameters:
  • N (int [in]) – Number of elements in vector X.
  • X (pyopencl.Buffer [in]) – Buffer object storing vector X.
  • offx (int [in]) – Offset of first element of vector X in buffer object. Counted in elements.
  • incx (int [in]) – Increment for the elements of X. Must not be zero.
  • Y (pyopencl.Buffer [out]) – Buffer object storing the vector Y.
  • offy (int [in]) – Offset of first element of vector Y in buffer object. Counted in elements.
  • incy (int [in]) – Increment for the elements of Y. Must not be zero.
  • commandQueues (pyopencl.CommandQueue [in]) – OpenCL command queues. A list, tuple, or single instance of pyopencl.CommandQueue. Must not be None.
  • eventWaitList (pyopencl.Event [in]) – Event wait list. A list, tuple, or single instance of pyopencl.Event. May be None.
Returns:

A tuple of pyopencl.Event instances, one for each commandQueue supplied.

pyclblas.clblasDcopy(N, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)

wraps: clblasDcopy

Copies double elements from vector X to vector Y.

  • ( Y ← X )
Parameters:
  • N (int [in]) – Number of elements in vector X.
  • X (pyopencl.Buffer [in]) – Buffer object storing vector X.
  • offx (int [in]) – Offset of first element of vector X in buffer object. Counted in elements.
  • incx (int [in]) – Increment for the elements of X. Must not be zero.
  • Y (pyopencl.Buffer [out]) – Buffer object storing the vector Y.
  • offy (int [in]) – Offset of first element of vector Y in buffer object. Counted in elements.
  • incy (int [in]) – Increment for the elements of Y. Must not be zero.
  • commandQueues (pyopencl.CommandQueue [in]) – OpenCL command queues. A list, tuple, or single instance of pyopencl.CommandQueue. Must not be None.
  • eventWaitList (pyopencl.Event [in]) – Event wait list. A list, tuple, or single instance of pyopencl.Event. May be None.
Returns:

A tuple of pyopencl.Event instances, one for each commandQueue supplied.

pyclblas.clblasScopy(N, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)

wraps: clblasScopy

Copies float elements from vector X to vector Y.

  • ( Y ← X )
Parameters:
  • N (int [in]) – Number of elements in vector X.
  • X (pyopencl.Buffer [in]) – Buffer object storing vector X.
  • offx (int [in]) – Offset of first element of vector X in buffer object. Counted in elements.
  • incx (int [in]) – Increment for the elements of X. Must not be zero.
  • Y (pyopencl.Buffer [out]) – Buffer object storing the vector Y.
  • offy (int [in]) – Offset of first element of vector Y in buffer object. Counted in elements.
  • incy (int [in]) – Increment for the elements of Y. Must not be zero.
  • commandQueues (pyopencl.CommandQueue [in]) – OpenCL command queues. A list, tuple, or single instance of pyopencl.CommandQueue. Must not be None.
  • eventWaitList (pyopencl.Event [in]) – Event wait list. A list, tuple, or single instance of pyopencl.Event. May be None.
Returns:

A tuple of pyopencl.Event instances, one for each commandQueue supplied.

pyclblas.clblasZcopy(N, X, offx, incx, Y, offy, incy, commandQueues, eventWaitList)

wraps: clblasZcopy

Copies complex-double elements from vector X to vector Y.

  • ( Y ← X )
Parameters:
  • N (int [in]) – Number of elements in vector X.
  • X (pyopencl.Buffer [in]) – Buffer object storing vector X.
  • offx (int [in]) – Offset of first element of vector X in buffer object. Counted in elements.
  • incx (int [in]) – Increment for the elements of X. Must not be zero.
  • Y (pyopencl.Buffer [out]) – Buffer object storing the vector Y.
  • offy (int [in]) – Offset of first element of vector Y in buffer object. Counted in elements.
  • incy (int [in]) – Increment for the elements of Y. Must not be zero.
  • commandQueues (pyopencl.CommandQueue [in]) – OpenCL command queues. A list, tuple, or single instance of pyopencl.CommandQueue. Must not be None.
  • eventWaitList (pyopencl.Event [in]) – Event wait list. A list, tuple, or single instance of pyopencl.Event. May be None.
Returns:

A tuple of pyopencl.Event instances, one for each commandQueue supplied.