public class JCusolver
extends java.lang.Object
JCusolverDn
, JCusolverSp
and JCusolverRf
.
Modifier and Type | Method and Description |
---|---|
(package private) static int |
checkResult(int result)
If the given result is not cusolverStatus.CUSOLVER_STATUS_SUCCESS
and exceptions have been enabled, this method will throw a
CudaException with an error message that corresponds to the
given result code.
|
static void |
initialize()
Initializes the native library.
|
static void |
setExceptionsEnabled(boolean enabled)
Enables or disables exceptions.
|
static void |
setLogLevel(jcuda.LogLevel logLevel)
Set the specified log level for the JCusolver library.
|
public static void initialize()
public static void setLogLevel(jcuda.LogLevel logLevel)
logLevel
- The log level to use.public static void setExceptionsEnabled(boolean enabled)
cusolverStatus
from the native methods.
If exceptions are enabled, a CudaException with a detailed error
message will be thrown if a method is about to set a result code
that is not cusolverStatus.CUSOLVER_STATUS_SUCCESSenabled
- Whether exceptions are enabledstatic int checkResult(int result)
result
- The result to checkjcuda.CudaException
- If exceptions have been enabled and
the given result code is not cusolverStatus.CUSOLVER_STATUS_SUCCESS