JCublasJava/src/main/java/jcuda/jcublas/JCublas2.java
public static int cublasScalEx(
        cublasHandle handle, 
        int n, 
        Pointer alpha, /** host or device pointer */
        int alphaType, 
        Pointer x, 
        int xType, 
        int incx, 
        int executionType)
    {
        return checkResult(cublasScalExNative(handle, n, alpha, alphaType, x, xType, incx, executionType));
    }
public static int cublasScalEx(
        cublasHandle handle, 
        int n, 
        Pointer alpha, /** host or device pointer */
        int alphaType, 
        Pointer x, 
        int xType, 
        int incx, 
        int executionType)
    {
        return checkResult(cublasScalExNative(handle, n, alpha, alphaType, x, xType, incx, executionType));
    }
host or device pointer