public class JNpp
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JNpp.Core
NPP Core - Basic functions for library management,
in particular library version and device property
query functions.
|
| Modifier and Type | Field and Description |
|---|---|
static short |
NPP_MAX_16S
Maximum 16-bit signed integer
|
static short |
NPP_MAX_16U
Maximum 16-bit unsigned integer
|
static int |
NPP_MAX_32S
Maximum 32-bit signed integer
|
static int |
NPP_MAX_32U
Maximum 32-bit unsigned integer
|
static byte |
NPP_MAX_8S
Maximum 8-bit signed integer
|
static byte |
NPP_MAX_8U
Maximum 8-bit unsigned integer
|
static short |
NPP_MIN_16S
Minimum 16-bit signed integer
|
static short |
NPP_MIN_16U
Minimum 16-bit unsigned integer
|
static int |
NPP_MIN_32S
Minimum 32-bit signed integer
|
static int |
NPP_MIN_32U
Minimum 32-bit unsigned integer
|
static byte |
NPP_MIN_8S
Minimum 8-bit signed integer
|
static byte |
NPP_MIN_8U
Minimum 8-bit unsigned integer
|
static int |
NPP_VERSION_BUILD
Build number.
|
static int |
NPP_VERSION_MAJOR
Major version number
|
static int |
NPP_VERSION_MINOR
Minor version number
|
| Constructor and Description |
|---|
JNpp() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static int |
checkResult(int result)
If the given result is a NppStatus that indicates an error
and exceptions have been enabled, this method will throw a
CudaException with an error message that corresponds to the
given result code.
|
(package private) static <T extends TypedPointer<?>> |
checkResult(T result)
If the given result is
null and exceptions are
enabled, then this method will throw a CudaException with
an error message stating that a memory allocation failed. |
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 JNpp library.
|
public static final int NPP_VERSION_MAJOR
public static final int NPP_VERSION_MINOR
public static final int NPP_VERSION_BUILD
public static final byte NPP_MAX_8U
public static final short NPP_MAX_16U
public static final int NPP_MAX_32U
public static final byte NPP_MIN_8U
public static final short NPP_MIN_16U
public static final int NPP_MIN_32U
public static final byte NPP_MIN_8S
public static final byte NPP_MAX_8S
public static final short NPP_MIN_16S
public static final short NPP_MAX_16S
public static final int NPP_MIN_32S
public static final int NPP_MAX_32S
public static void initialize()
public static void setExceptionsEnabled(boolean enabled)
NppStatus from the native method.
If exceptions are enabled, a CudaException with a detailed error
message will be thrown if a method is about to return a result code
that indicates an errorenabled - Whether exceptions are enabledstatic int checkResult(int result)
result - The result to checkjcuda.CudaException - If exceptions have been enabled and
the given result code indicates an errorstatic <T extends TypedPointer<?>> T checkResult(T result)
null and exceptions are
enabled, then this method will throw a CudaException with
an error message stating that a memory allocation failed.
Otherwise, the result is simply returned.T - The type of the pointerresult - The resultjcuda.CudaException - If exceptions have been enabled and
the given result was nullpublic static void setLogLevel(jcuda.LogLevel logLevel)
logLevel - The log level to use.