cuda.bindings._v2.driver.device_get_properties#

cuda.bindings._v2.driver.device_get_properties(int dev)#

Returns properties for a selected device.

[Deprecated]. This function was deprecated as of CUDA 5.0 and replaced by device_get_attribute(). Returns in *prop the properties of device dev. The CUdevprop structure is defined as:. **View CUDA Toolkit Documentation for a C++ code example**. where:.

  • maxThreadsPerBlock is the maximum number of threads per block;.

  • maxThreadsDim[3] is the maximum sizes of each dimension of a block;.

  • maxGridSize[3] is the maximum sizes of each dimension of a grid;.

  • sharedMemPerBlock is the total amount of shared memory available per block in bytes;.

  • totalConstantMemory is the total amount of constant memory available on the device in bytes;.

  • SIMDWidth is the warp size;.

  • memPitch is the maximum pitch allowed by the memory copy functions that involve memory regions allocated through cuMemAllocPitch();.

  • regsPerBlock is the total number of registers available per block;.

  • clockRate is the clock frequency in kilohertz;.

  • textureAlign is the alignment requirement; texture base addresses that are aligned to textureAlign bytes do not need an offset applied to texture fetches.

Parameters:

dev (int) – Device to get properties for.

Returns:

Returned properties of device.

Return type:

CUdevprop_v1

See also

cuDeviceGetProperties