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*propthe properties of devicedev. TheCUdevpropstructure is defined as:. **View CUDA Toolkit Documentation for a C++ code example**. where:.maxThreadsPerBlockis 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;.sharedMemPerBlockis the total amount of shared memory available per block in bytes;.totalConstantMemoryis the total amount of constant memory available on the device in bytes;.SIMDWidthis the warp size;.memPitchis the maximum pitch allowed by the memory copy functions that involve memory regions allocated throughcuMemAllocPitch();.regsPerBlockis the total number of registers available per block;.clockRateis the clock frequency in kilohertz;.textureAlignis the alignment requirement; texture base addresses that are aligned totextureAlignbytes do not need an offset applied to texture fetches.
- Parameters:
dev (int) – Device to get properties for.
- Returns:
Returned properties of device.
- Return type:
See also
cuDeviceGetProperties