#[repr(C)]pub struct cudaDeviceProp {Show 93 fields
pub name: [c_char; 256],
pub uuid: cudaUUID_t,
pub luid: [c_char; 8],
pub luidDeviceNodeMask: c_uint,
pub totalGlobalMem: size_t,
pub sharedMemPerBlock: size_t,
pub regsPerBlock: c_int,
pub warpSize: c_int,
pub memPitch: size_t,
pub maxThreadsPerBlock: c_int,
pub maxThreadsDim: [c_int; 3],
pub maxGridSize: [c_int; 3],
pub totalConstMem: size_t,
pub major: c_int,
pub minor: c_int,
pub textureAlignment: size_t,
pub texturePitchAlignment: size_t,
pub multiProcessorCount: c_int,
pub integrated: c_int,
pub canMapHostMemory: c_int,
pub maxTexture1D: c_int,
pub maxTexture1DMipmap: c_int,
pub maxTexture2D: [c_int; 2],
pub maxTexture2DMipmap: [c_int; 2],
pub maxTexture2DLinear: [c_int; 3],
pub maxTexture2DGather: [c_int; 2],
pub maxTexture3D: [c_int; 3],
pub maxTexture3DAlt: [c_int; 3],
pub maxTextureCubemap: c_int,
pub maxTexture1DLayered: [c_int; 2],
pub maxTexture2DLayered: [c_int; 3],
pub maxTextureCubemapLayered: [c_int; 2],
pub maxSurface1D: c_int,
pub maxSurface2D: [c_int; 2],
pub maxSurface3D: [c_int; 3],
pub maxSurface1DLayered: [c_int; 2],
pub maxSurface2DLayered: [c_int; 3],
pub maxSurfaceCubemap: c_int,
pub maxSurfaceCubemapLayered: [c_int; 2],
pub surfaceAlignment: size_t,
pub concurrentKernels: c_int,
pub ECCEnabled: c_int,
pub pciBusID: c_int,
pub pciDeviceID: c_int,
pub pciDomainID: c_int,
pub tccDriver: c_int,
pub asyncEngineCount: c_int,
pub unifiedAddressing: c_int,
pub memoryBusWidth: c_int,
pub l2CacheSize: c_int,
pub persistingL2CacheMaxSize: c_int,
pub maxThreadsPerMultiProcessor: c_int,
pub streamPrioritiesSupported: c_int,
pub globalL1CacheSupported: c_int,
pub localL1CacheSupported: c_int,
pub sharedMemPerMultiprocessor: size_t,
pub regsPerMultiprocessor: c_int,
pub managedMemory: c_int,
pub isMultiGpuBoard: c_int,
pub multiGpuBoardGroupID: c_int,
pub hostNativeAtomicSupported: c_int,
pub pageableMemoryAccess: c_int,
pub concurrentManagedAccess: c_int,
pub computePreemptionSupported: c_int,
pub canUseHostPointerForRegisteredMem: c_int,
pub cooperativeLaunch: c_int,
pub sharedMemPerBlockOptin: size_t,
pub pageableMemoryAccessUsesHostPageTables: c_int,
pub directManagedMemAccessFromHost: c_int,
pub maxBlocksPerMultiProcessor: c_int,
pub accessPolicyMaxWindowSize: c_int,
pub reservedSharedMemPerBlock: size_t,
pub hostRegisterSupported: c_int,
pub sparseCudaArraySupported: c_int,
pub hostRegisterReadOnlySupported: c_int,
pub timelineSemaphoreInteropSupported: c_int,
pub memoryPoolsSupported: c_int,
pub gpuDirectRDMASupported: c_int,
pub gpuDirectRDMAFlushWritesOptions: c_uint,
pub gpuDirectRDMAWritesOrdering: c_int,
pub memoryPoolSupportedHandleTypes: c_uint,
pub deferredMappingCudaArraySupported: c_int,
pub ipcEventSupported: c_int,
pub clusterLaunch: c_int,
pub unifiedFunctionPointers: c_int,
pub deviceNumaConfig: c_int,
pub deviceNumaId: c_int,
pub mpsEnabled: c_int,
pub hostNumaId: c_int,
pub gpuPciDeviceID: c_uint,
pub gpuPciSubsystemID: c_uint,
pub hostNumaMultinodeIpcSupported: c_int,
pub reserved: [c_int; 56],
}Expand description
CUDA device properties.
Fields§
§name: [c_char; 256]ASCII string identifying device.
uuid: cudaUUID_t16-byte unique identifier.
luid: [c_char; 8]8-byte locally unique identifier.
Value is undefined on TCC and non-Windows platforms.
luidDeviceNodeMask: c_uintLUID device node mask.
Value is undefined on TCC and non-Windows platforms.
totalGlobalMem: size_tGlobal memory available on device in bytes.
Shared memory available per block in bytes.
regsPerBlock: c_int32-bit registers available per block.
warpSize: c_intWarp size in threads.
memPitch: size_tMaximum pitch in bytes allowed by memory copies.
maxThreadsPerBlock: c_intMaximum number of threads per block.
maxThreadsDim: [c_int; 3]Maximum size of each dimension of a block.
maxGridSize: [c_int; 3]Maximum size of each dimension of a grid.
totalConstMem: size_tConstant memory available on device in bytes.
major: c_intMajor compute capability.
minor: c_intMinor compute capability.
textureAlignment: size_tAlignment requirement for textures.
texturePitchAlignment: size_tPitch alignment requirement for texture references bound to pitched memory.
multiProcessorCount: c_intNumber of multiprocessors on device.
integrated: c_intDevice is integrated as opposed to discrete.
canMapHostMemory: c_intDevice can map host memory with cudaHostAlloc/cudaHostGetDevicePointer.
maxTexture1D: c_intMaximum 1D texture size.
maxTexture1DMipmap: c_intMaximum 1D mipmapped texture size.
maxTexture2D: [c_int; 2]Maximum 2D texture dimensions.
maxTexture2DMipmap: [c_int; 2]Maximum 2D mipmapped texture dimensions.
maxTexture2DLinear: [c_int; 3]Maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory.
maxTexture2DGather: [c_int; 2]Maximum 2D texture dimensions if texture gather operations have to be performed.
maxTexture3D: [c_int; 3]Maximum 3D texture dimensions.
maxTexture3DAlt: [c_int; 3]Maximum alternate 3D texture dimensions.
maxTextureCubemap: c_intMaximum Cubemap texture dimensions.
maxTexture1DLayered: [c_int; 2]Maximum 1D layered texture dimensions.
maxTexture2DLayered: [c_int; 3]Maximum 2D layered texture dimensions.
maxTextureCubemapLayered: [c_int; 2]Maximum Cubemap layered texture dimensions.
maxSurface1D: c_intMaximum 1D surface size.
maxSurface2D: [c_int; 2]Maximum 2D surface dimensions.
maxSurface3D: [c_int; 3]Maximum 3D surface dimensions.
maxSurface1DLayered: [c_int; 2]Maximum 1D layered surface dimensions.
maxSurface2DLayered: [c_int; 3]Maximum 2D layered surface dimensions.
maxSurfaceCubemap: c_intMaximum Cubemap surface dimensions.
maxSurfaceCubemapLayered: [c_int; 2]Maximum Cubemap layered surface dimensions.
surfaceAlignment: size_tAlignment requirements for surfaces.
concurrentKernels: c_intDevice can possibly execute multiple kernels concurrently.
ECCEnabled: c_intDevice has ECC support enabled.
pciBusID: c_intPCI bus ID of the device.
pciDeviceID: c_intPCI device ID of the device.
pciDomainID: c_intPCI domain ID of the device.
tccDriver: c_int1 if device is a Tesla device using TCC driver, 0 otherwise.
asyncEngineCount: c_intNumber of asynchronous engines.
unifiedAddressing: c_intDevice shares a unified address space with the host.
memoryBusWidth: c_intGlobal memory bus width in bits.
l2CacheSize: c_intSize of L2 cache in bytes.
persistingL2CacheMaxSize: c_intDevice’s maximum l2 persisting lines capacity setting in bytes.
maxThreadsPerMultiProcessor: c_intMaximum resident threads per multiprocessor.
streamPrioritiesSupported: c_intDevice supports stream priorities.
globalL1CacheSupported: c_intDevice supports caching globals in L1.
localL1CacheSupported: c_intDevice supports caching locals in L1.
Shared memory available per multiprocessor in bytes.
regsPerMultiprocessor: c_int32-bit registers available per multiprocessor.
managedMemory: c_intDevice supports allocating managed memory on this system.
isMultiGpuBoard: c_intDevice is on a multi-GPU board.
multiGpuBoardGroupID: c_intUnique identifier for a group of devices on the same multi-GPU board.
hostNativeAtomicSupported: c_intLink between the device and the host supports native atomic operations.
pageableMemoryAccess: c_intDevice supports coherently accessing pageable memory without calling cudaHostRegister on it.
concurrentManagedAccess: c_intDevice can coherently access managed memory concurrently with the CPU.
computePreemptionSupported: c_intDevice supports Compute Preemption.
canUseHostPointerForRegisteredMem: c_intDevice can access host registered memory at the same virtual address as the CPU.
cooperativeLaunch: c_intDevice supports launching cooperative kernels via cudaLaunchCooperativeKernel.
Per device maximum shared memory per block usable by special opt in.
pageableMemoryAccessUsesHostPageTables: c_intDevice accesses pageable memory via the host’s page tables.
directManagedMemAccessFromHost: c_intHost can directly access managed memory on the device without migration.
maxBlocksPerMultiProcessor: c_intMaximum number of resident blocks per multiprocessor.
accessPolicyMaxWindowSize: c_intThe maximum value of cudaAccessPolicyWindow::num_bytes.
Shared memory reserved by CUDA driver per block in bytes.
hostRegisterSupported: c_intDevice supports host memory registration via cudaHostRegister.
sparseCudaArraySupported: c_int1 if the device supports sparse CUDA arrays and sparse CUDA mipmapped arrays, 0 otherwise.
hostRegisterReadOnlySupported: c_intDevice supports using the cudaHostRegister flag cudaHostRegisterReadOnly to register memory that must be mapped as read-only to the GPU.
timelineSemaphoreInteropSupported: c_intExternal timeline semaphore interop is supported on the device.
memoryPoolsSupported: c_int1 if the device supports using the cudaMallocAsync and cudaMemPool family of APIs, 0 otherwise.
gpuDirectRDMASupported: c_int1 if the device supports GPUDirect RDMA APIs, 0 otherwise.
gpuDirectRDMAFlushWritesOptions: c_uintBitmask to be interpreted according to the cudaFlushGPUDirectRDMAWritesOptions enum.
gpuDirectRDMAWritesOrdering: c_intSee the cudaGPUDirectRDMAWritesOrdering enum for numerical values.
memoryPoolSupportedHandleTypes: c_uintBitmask of handle types supported with mempool-based IPC.
deferredMappingCudaArraySupported: c_int1 if the device supports deferred mapping CUDA arrays and CUDA mipmapped arrays.
ipcEventSupported: c_intDevice supports IPC Events.
clusterLaunch: c_intIndicates device supports cluster launch.
unifiedFunctionPointers: c_intIndicates device supports unified pointers.
deviceNumaConfig: c_intNUMA configuration of a device: value is of type cudaDeviceNumaConfig enum.
deviceNumaId: c_intNUMA node ID of the GPU memory.
mpsEnabled: c_intIndicates if contexts created on this device will be shared via MPS.
hostNumaId: c_intNUMA ID of the host node closest to the device or -1 when system does not support NUMA.
gpuPciDeviceID: c_uintThe combined 16-bit PCI device ID and 16-bit PCI vendor ID.
gpuPciSubsystemID: c_uintThe combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID.
hostNumaMultinodeIpcSupported: c_int1 if the device supports HostNuma location IPC between nodes in a multi-node system.
reserved: [c_int; 56]Reserved for future use.