private static void checkResultBLAS()
    {
        if (exceptionsEnabled)
        {
            lastResult = cublasGetErrorNative();
            if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS)
            {
                throw new CudaException(cublasStatus.stringFor(lastResult));
            }
        }
    }
private static void checkResultBLAS()
    {
        if (exceptionsEnabled)
        {
            lastResult = cublasGetErrorNative();
            if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS)
            {
                throw new CudaException(cublasStatus.stringFor(lastResult));
            }
        }
    }
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.
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 .