jcuda.driver
Class CUdevice_attribute

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

public class CUdevice_attribute
extends java.lang.Object

Device properties.

Most comments are taken from the CUDA reference manual

See Also:
JCudaDriver.cuDeviceGetAttribute(int[], int, CUdevice)

Field Summary
static int CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY
          Device can map host memory into CUDA address space
static int CU_DEVICE_ATTRIBUTE_CLOCK_RATE
          Clock frequency in kilohertz;
static int CU_DEVICE_ATTRIBUTE_COMPUTE_MODE
          Compute mode (See CUcomputemode for details)
static int CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS
          Device can possibly execute multiple kernels concurrently
static int CU_DEVICE_ATTRIBUTE_ECC_ENABLED
          Device has ECC support enabled
static int CU_DEVICE_ATTRIBUTE_GPU_OVERLAP
          1 if the device can concurrently copy memory between host and device while executing a kernel, or 0 if not;
static int CU_DEVICE_ATTRIBUTE_INTEGRATED
          Device is integrated with host memory
static int CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT
          Specifies whether there is a run time limit on kernels
static int CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X
          Maximum x-dimension of a block;
static int CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y
          Maximum y-dimension of a block;
static int CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z
          Maximum z-dimension of a block;
static int CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X
          Maximum x-dimension of a grid;
static int CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y
          Maximum y-dimension of a grid;
static int CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z
          Maximum z-dimension of a grid;
static int CU_DEVICE_ATTRIBUTE_MAX_PITCH
          Maximum pitch in bytes allowed by the memory copy functions that involve memory regions allocated through cuMemAllocPitch();
static int CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK
          Maximum number of 32-bit registers available to a thread block; this number is shared by all thread blocks simultaneously resident on a multiprocessor;
static int CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK
          Maximum amount of shared memory available to a thread block in bytes; this amount is shared by all thread blocks simultaneously resident on a multiprocessor;
static int CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK
          Maximum number of threads per block;
static int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH
          Maximum 1D texture width
static int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT
          aximum texture array height
static int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES
          Maximum slices in a texture array
static int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH
          Maximum texture array width
static int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT
          aximum 2D texture height
static int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH
          Maximum 2D texture width
static int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH
          Maximum 3D texture depth
static int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT
          aximum 3D texture height
static int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH
          Maximum 3D texture width
static int CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT
          Number of multiprocessors on the device
static int CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK
          Deprecated. 
static int CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK
          Deprecated. 
static int CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT
          Alignment requirement for surfaces
static int CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT
          Alignment requirement; texture base addresses aligned to textureAlign bytes do not need an offset applied to texture fetches;
static int CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY
          Total amount of constant memory available on the device in bytes;
static int CU_DEVICE_ATTRIBUTE_WARP_SIZE
          Warp size in threads;
 
Method Summary
static java.lang.String stringFor(int n)
          Returns the String identifying the given CUdevice_attribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK

public static final int CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK
Maximum number of threads per block;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X

public static final int CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X
Maximum x-dimension of a block;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y

public static final int CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y
Maximum y-dimension of a block;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z

public static final int CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z
Maximum z-dimension of a block;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X

public static final int CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X
Maximum x-dimension of a grid;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y

public static final int CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y
Maximum y-dimension of a grid;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z

public static final int CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z
Maximum z-dimension of a grid;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK

public static final int CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK
Maximum amount of shared memory available to a thread block in bytes; this amount is shared by all thread blocks simultaneously resident on a multiprocessor;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK

@Deprecated
public static final int CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK
Deprecated. 
Deprecated, use CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY

public static final int CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY
Total amount of constant memory available on the device in bytes;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_WARP_SIZE

public static final int CU_DEVICE_ATTRIBUTE_WARP_SIZE
Warp size in threads;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAX_PITCH

public static final int CU_DEVICE_ATTRIBUTE_MAX_PITCH
Maximum pitch in bytes allowed by the memory copy functions that involve memory regions allocated through cuMemAllocPitch();

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK

public static final int CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK
Maximum number of 32-bit registers available to a thread block; this number is shared by all thread blocks simultaneously resident on a multiprocessor;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK

@Deprecated
public static final int CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK
Deprecated. 
Deprecated, use CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_CLOCK_RATE

public static final int CU_DEVICE_ATTRIBUTE_CLOCK_RATE
Clock frequency in kilohertz;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT

public static final int CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT
Alignment requirement; texture base addresses aligned to textureAlign bytes do not need an offset applied to texture fetches;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_GPU_OVERLAP

public static final int CU_DEVICE_ATTRIBUTE_GPU_OVERLAP
1 if the device can concurrently copy memory between host and device while executing a kernel, or 0 if not;

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT

public static final int CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT
Number of multiprocessors on the device

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT

public static final int CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT
Specifies whether there is a run time limit on kernels

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_INTEGRATED

public static final int CU_DEVICE_ATTRIBUTE_INTEGRATED
Device is integrated with host memory

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY

public static final int CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY
Device can map host memory into CUDA address space

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_COMPUTE_MODE

public static final int CU_DEVICE_ATTRIBUTE_COMPUTE_MODE
Compute mode (See CUcomputemode for details)

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH

public static final int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH
Maximum 1D texture width

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH

public static final int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH
Maximum 2D texture width

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT

public static final int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT
aximum 2D texture height

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH

public static final int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH
Maximum 3D texture width

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT

public static final int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT
aximum 3D texture height

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH

public static final int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH
Maximum 3D texture depth

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH

public static final int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH
Maximum texture array width

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT

public static final int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT
aximum texture array height

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES

public static final int CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES
Maximum slices in a texture array

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT

public static final int CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT
Alignment requirement for surfaces

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS

public static final int CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS
Device can possibly execute multiple kernels concurrently

See Also:
Constant Field Values

CU_DEVICE_ATTRIBUTE_ECC_ENABLED

public static final int CU_DEVICE_ATTRIBUTE_ECC_ENABLED
Device has ECC support enabled

See Also:
Constant Field Values
Method Detail

stringFor

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

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