Occupancy Calc Data from cuDeviceGetAttribute

Hey there,

how can I obtain the values

    Thread Blocks/Multiprocessor

    Warps/Multiprocessor

from cuDeviceGetAttribute? These seem to be hardware limits that are given in the Occupancy Calculator, but I don’t see how they can be derived from the available attributes. (If they can’t, please take this as a suggestion to add them :) )

Andreas

For reference, this is what I get out of cuDeviceGetAttribute:

1 device(s) found.

Device #0: Quadro FX 570

 Â Compute Capability: 1.1

 Â Total Memory: 261440 KB

 Â CLOCK_RATE: 414000

 Â GPU_OVERLAP: 1

 Â MAX_BLOCK_DIM_X: 512

 Â MAX_BLOCK_DIM_Y: 512

 Â MAX_BLOCK_DIM_Z: 64

 Â MAX_GRID_DIM_X: 65535

 Â MAX_GRID_DIM_Y: 65535

 Â MAX_GRID_DIM_Z: 1

 Â MAX_PITCH: 262144

 Â MAX_REGISTERS_PER_BLOCK: 8192

 Â MAX_SHARED_MEMORY_PER_BLOCK: 16384

 Â MAX_THREADS_PER_BLOCK: 512

 Â MULTIPROCESSOR_COUNT: 2

 Â TEXTURE_ALIGNMENT: 256

 Â TOTAL_CONSTANT_MEMORY: 65536

 Â WARP_SIZE: 32