/** * Wrapper for CUBLAS function.<br /> * <br /> * cublasStatus * cublasGetError()<br /> *<br /> * returns the last error that occurred on invocation of any of the * CUBLAS BLAS functions. While the CUBLAS helper functions return status * directly, the BLAS functions do not do so for improved * compatibility with existing environments that do not expect BLAS * functions to return status. Reading the error status via * cublasGetError() resets the internal error state to * CUBLAS_STATUS_SUCCESS. */ public static int cublasGetError() { if (exceptionsEnabled) { int returnedResult = lastResult; lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS; return returnedResult; } return cublasGetErrorNative(); } private static native int cublasGetErrorNative();
/** * Wrapper for CUBLAS function.<br /> * <br /> * cublasStatus * cublasGetError()<br /> *<br /> * returns the last error that occurred on invocation of any of the * CUBLAS BLAS functions. While the CUBLAS helper functions return status * directly, the BLAS functions do not do so for improved * compatibility with existing environments that do not expect BLAS * functions to return status. Reading the error status via * cublasGetError() resets the internal error state to * CUBLAS_STATUS_SUCCESS. */ public static int cublasGetError() { if (exceptionsEnabled) { int returnedResult = lastResult; lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS; return returnedResult; } return cublasGetErrorNative(); } private static native int cublasGetErrorNative();
/** * Wrapper for CUBLAS function.<br /> * <br /> * cublasStatus * cublasGetError()<br /> *<br /> * returns the last error that occurred on invocation of any of the * CUBLAS BLAS functions. While the CUBLAS helper functions return status * directly, the BLAS functions do not do so for improved * compatibility with existing environments that do not expect BLAS * functions to return status. Reading the error status via * cublasGetError() resets the internal error state to * CUBLAS_STATUS_SUCCESS. */ public static int cublasGetError() { if (exceptionsEnabled) { int returnedResult = lastResult; lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS; return returnedResult; } return cublasGetErrorNative(); } private static native int cublasGetErrorNative();
/** * Wrapper for CUBLAS function.<br /> * <br /> * cublasStatus * cublasGetError()<br /> *<br /> * returns the last error that occurred on invocation of any of the * CUBLAS BLAS functions. While the CUBLAS helper functions return status * directly, the BLAS functions do not do so for improved * compatibility with existing environments that do not expect BLAS * functions to return status. Reading the error status via * cublasGetError() resets the internal error state to * CUBLAS_STATUS_SUCCESS. */ public static int cublasGetError() { if (exceptionsEnabled) { int returnedResult = lastResult; lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS; return returnedResult; } return cublasGetErrorNative(); } private static native int cublasGetErrorNative();
/** * Wrapper for CUBLAS function.<br /> * <br /> * cublasStatus * cublasGetError()<br /> *<br /> * returns the last error that occurred on invocation of any of the * CUBLAS BLAS functions. While the CUBLAS helper functions return status * directly, the BLAS functions do not do so for improved * compatibility with existing environments that do not expect BLAS * functions to return status. Reading the error status via * cublasGetError() resets the internal error state to * CUBLAS_STATUS_SUCCESS. */ public static int cublasGetError() { if (exceptionsEnabled) { int returnedResult = lastResult; lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS; return returnedResult; } return cublasGetErrorNative(); } private static native int cublasGetErrorNative();
/** * Wrapper for CUBLAS function.<br /> * <br /> * cublasStatus * cublasGetError()<br /> *<br /> * returns the last error that occurred on invocation of any of the * CUBLAS BLAS functions. While the CUBLAS helper functions return status * directly, the BLAS functions do not do so for improved * compatibility with existing environments that do not expect BLAS * functions to return status. Reading the error status via * cublasGetError() resets the internal error state to * CUBLAS_STATUS_SUCCESS. */ public static int cublasGetError() { if (exceptionsEnabled) { int returnedResult = lastResult; lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS; return returnedResult; } return cublasGetErrorNative(); } private static native int cublasGetErrorNative();
/** * Obtain the current CUBLAS status by calling cublasGetErrorNative, * and store the result as the lastResult. If the obtained result * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions * have been enabled, an CudaException will be thrown. */ private static void checkResultBLAS() { if (exceptionsEnabled) { lastResult = cublasGetErrorNative(); if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS) { throw new CudaException(cublasStatus.stringFor(lastResult)); } } }
/** * Obtain the current CUBLAS status by calling cublasGetErrorNative, * and store the result as the lastResult. If the obtained result * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions * have been enabled, an CudaException will be thrown. */ private static void checkResultBLAS() { if (exceptionsEnabled) { lastResult = cublasGetErrorNative(); if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS) { throw new CudaException(cublasStatus.stringFor(lastResult)); } } }
/** * Obtain the current CUBLAS status by calling cublasGetErrorNative, * and store the result as the lastResult. If the obtained result * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions * have been enabled, an CudaException will be thrown. */ private static void checkResultBLAS() { if (exceptionsEnabled) { lastResult = cublasGetErrorNative(); if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS) { throw new CudaException(cublasStatus.stringFor(lastResult)); } } }
/** * Obtain the current CUBLAS status by calling cublasGetErrorNative, * and store the result as the lastResult. If the obtained result * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions * have been enabled, an CudaException will be thrown. */ private static void checkResultBLAS() { if (exceptionsEnabled) { lastResult = cublasGetErrorNative(); if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS) { throw new CudaException(cublasStatus.stringFor(lastResult)); } } }
/** * Obtain the current CUBLAS status by calling cublasGetErrorNative, * and store the result as the lastResult. If the obtained result * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions * have been enabled, an CudaException will be thrown. */ private static void checkResultBLAS() { if (exceptionsEnabled) { lastResult = cublasGetErrorNative(); if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS) { throw new CudaException(cublasStatus.stringFor(lastResult)); } } }
/** * Obtain the current CUBLAS status by calling cublasGetErrorNative, * and store the result as the lastResult. If the obtained result * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions * have been enabled, an CudaException will be thrown. */ private static void checkResultBLAS() { if (exceptionsEnabled) { lastResult = cublasGetErrorNative(); if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS) { throw new CudaException(cublasStatus.stringFor(lastResult)); } } }