JCublasJava/src/main/java/jcuda/jcublas/JCublas2.java
public static int cublasSetVector(
        int n,
        int elemSize,
        Pointer x,
        int incx,
        Pointer devicePtr,
        int incy)
    {
        return checkResult(cublasSetVectorNative(n, elemSize, x, incx, devicePtr, incy));
    }
public static int cublasSetVector(
        int n,
        int elemSize,
        Pointer x,
        int incx,
        Pointer devicePtr,
        int incy)
    {
        return checkResult(cublasSetVectorNative(n, elemSize, x, incx, devicePtr, incy));
    }
<pre>
cublasStatus_t
cublasSetVector (int n, int elemSize, const void *x, int incx,
void *y, int incy)

copies n elements from a vector x in CPU memory space to a vector y
in GPU memory space. Elements in both vectors are assumed to have a
size of elemSize bytes. Storage spacing between consecutive elements
is incx for the source vector x and incy for the destination vector
y. In general, y points to an object, or part of an object, allocated
via cublasAlloc(). Column major format for two-dimensional matrices
is assumed throughout CUBLAS. Therefore, if the increment for a vector
is equal to 1, this access a column vector while using an increment
equal to the leading dimension of the respective matrix accesses a
row vector.

Return Values
-------------
CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library not been initialized
CUBLAS_STATUS_INVALID_VALUE    if incx, incy, or elemSize <= 0
CUBLAS_STATUS_MAPPING_ERROR    if an error occurred accessing GPU memory
CUBLAS_STATUS_SUCCESS          if the operation completed successfully
</pre>