JCublasJava/src/main/java/jcuda/jcublas/JCublas2.java
public static int cublasDotEx(
        cublasHandle handle, 
        int n, 
        Pointer x, 
        int xType, 
        int incx, 
        Pointer y, 
        int yType, 
        int incy, 
        Pointer result, 
        int resultType, 
        int executionType)
    {
        return checkResult(cublasDotExNative(handle, n, x, xType, incx, y, yType, incy, result, resultType, executionType));
    }
public static int cublasDotEx(
        cublasHandle handle, 
        int n, 
        Pointer x, 
        int xType, 
        int incx, 
        Pointer y, 
        int yType, 
        int incy, 
        Pointer result, 
        int resultType, 
        int executionType)
    {
        return checkResult(cublasDotExNative(handle, n, x, xType, incx, y, yType, incy, result, resultType, executionType));
    }
host or device pointer