jcuda.driver
Class CUfunction_attribute

java.lang.Object
  extended by jcuda.driver.CUfunction_attribute

public class CUfunction_attribute
extends java.lang.Object

Function properties.

Most comments are taken from the CUDA reference manual.

See Also:
JCudaDriver.cuFuncGetAttribute(int[], int, jcuda.driver.CUfunction)

Field Summary
static int CU_FUNC_ATTRIBUTE_BINARY_VERSION
          The binary version for which the function was compiled.
static int CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES
          The size in bytes of user-allocated constant memory required by this function.
static int CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES
          The size in bytes of thread local memory used by this function.
static int CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK
          The number of threads beyond which a launch of the function would fail.
static int CU_FUNC_ATTRIBUTE_NUM_REGS
          The number of registers used by each thread of this function.
static int CU_FUNC_ATTRIBUTE_PTX_VERSION
          The PTX virtual architecture version for which the function was compiled.
static int CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES
          The size in bytes of statically-allocated shared memory required by this function.
 
Method Summary
static java.lang.String stringFor(int n)
          Returns the String identifying the given CUfunction_attribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK

public static final int CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK
The number of threads beyond which a launch of the function would fail. This number depends on both the function and the device on which the function is currently loaded.

See Also:
Constant Field Values

CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES

public static final int CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES
The size in bytes of statically-allocated shared memory required by this function. This does not include dynamically-allocated shared memory requested by the user at runtime.

See Also:
Constant Field Values

CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES

public static final int CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES
The size in bytes of user-allocated constant memory required by this function.

See Also:
Constant Field Values

CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES

public static final int CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES
The size in bytes of thread local memory used by this function.

See Also:
Constant Field Values

CU_FUNC_ATTRIBUTE_NUM_REGS

public static final int CU_FUNC_ATTRIBUTE_NUM_REGS
The number of registers used by each thread of this function.

See Also:
Constant Field Values

CU_FUNC_ATTRIBUTE_PTX_VERSION

public static final int CU_FUNC_ATTRIBUTE_PTX_VERSION
The PTX virtual architecture version for which the function was compiled.

See Also:
Constant Field Values

CU_FUNC_ATTRIBUTE_BINARY_VERSION

public static final int CU_FUNC_ATTRIBUTE_BINARY_VERSION
The binary version for which the function was compiled.

See Also:
Constant Field Values
Method Detail

stringFor

public static java.lang.String stringFor(int n)
Returns the String identifying the given CUfunction_attribute

Parameters:
n - The CUfunction_attribute
Returns:
The String identifying the given CUfunction_attribute