12.07.2015 Views

CUBLAS Library

CUBLAS Library

CUBLAS Library

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 1The <strong>CUBLAS</strong> <strong>Library</strong>copies a tile of rows×cols elements from a matrix A in CPU memoryspace to a matrix B in GPU memory space. Each element requiresstorage of elemSize bytes. Both matrices are assumed to be stored incolumn‐major format, with the leading dimension (that is, the numberof rows) of source matrix A provided in lda, and the leadingdimension of destination matrix B provided in ldb. B is a devicepointer that points to an object, or part of an object, that was allocatedin GPU memory space via cublasAlloc().Return Values<strong>CUBLAS</strong>_STATUS_NOT_INITIALIZED if <strong>CUBLAS</strong> library was not initialized<strong>CUBLAS</strong>_STATUS_INVALID_VALUE if rows or cols < 0; or elemSize,lda, or ldb

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!