jcuda.jnpp
Class JNpp.Core

java.lang.Object
  extended by jcuda.jnpp.JNpp.Core
Enclosing class:
JNpp

public static class JNpp.Core
extends java.lang.Object

NPP Core - Basic functions for library management, in particular library version and device property query functions.


Method Summary
static int nppGetGpuComputeCapability()
          What CUDA compute model is supported by the default CUDA device?
static java.lang.String nppGetGpuName()
          Get the name of the default CUDA device.
static int nppGetGpuNumSMs()
          Get the number of Streaming Multiprocessors (SM) on the default CUDA device.
static NppLibraryVersion nppGetLibVersion()
          Get the NPP library version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nppGetLibVersion

public static NppLibraryVersion nppGetLibVersion()
Get the NPP library version.

Returns:
A struct containing separate values for major and minor revision and build number.

nppGetGpuComputeCapability

public static int nppGetGpuComputeCapability()
What CUDA compute model is supported by the default CUDA device? Before trying to call any NPP functions, the user should make a call this function to ensure that the current machine has a CUDA capable device.

Returns:
An enum value representing if a CUDA capable device was found and what level of compute capabilities it supports.

nppGetGpuNumSMs

public static int nppGetGpuNumSMs()
Get the number of Streaming Multiprocessors (SM) on the default CUDA device.

Returns:
Number of SMs of the default CUDA device.

nppGetGpuName

public static java.lang.String nppGetGpuName()
Get the name of the default CUDA device.

Returns:
Name string of the graphics-card/compute device in a system.