#[non_exhaustive]#[repr(i32)]pub enum CUdevice_attribute {
Show 134 variants
MaxThreadsPerBlock = 1,
MaxBlockDimX = 2,
MaxBlockDimY = 3,
MaxBlockDimZ = 4,
MaxGridDimX = 5,
MaxGridDimY = 6,
MaxGridDimZ = 7,
MaxSharedMemoryPerBlock = 8,
TotalConstantMemory = 9,
WarpSize = 10,
MaxPitch = 11,
MaxRegistersPerBlock = 12,
ClockRate = 13,
TextureAlignment = 14,
GpuOverlap = 15,
MultiprocessorCount = 16,
KernelExecTimeout = 17,
Integrated = 18,
CanMapHostMemory = 19,
ComputeMode = 20,
MaxTexture1DWidth = 21,
MaxTexture2DWidth = 22,
MaxTexture2DHeight = 23,
MaxTexture3DWidth = 24,
MaxTexture3DHeight = 25,
MaxTexture3DDepth = 26,
MaxTexture2DLayeredWidth = 27,
MaxTexture2DLayeredHeight = 28,
MaxTexture2DLayeredLayers = 29,
SurfaceAlignment = 30,
ConcurrentKernels = 31,
EccEnabled = 32,
PciBusId = 33,
PciDeviceId = 34,
TccDriver = 35,
MemoryClockRate = 36,
GlobalMemoryBusWidth = 37,
L2CacheSize = 38,
MaxThreadsPerMultiprocessor = 39,
AsyncEngineCount = 40,
UnifiedAddressing = 41,
MaxTexture1DLayeredWidth = 42,
MaxTexture1DLayeredLayers = 43,
CanTex2dGather = 44,
MaxTexture2DGatherWidth = 45,
MaxTexture2DGatherHeight = 46,
MaxTexture3DWidthAlt = 47,
MaxTexture3DHeightAlt = 48,
MaxTexture3DDepthAlt = 49,
PciDomainId = 50,
TexturePitchAlignment = 51,
MaxTextureCubemapWidth = 52,
MaxTextureCubemapLayeredWidth = 53,
MaxTextureCubemapLayeredLayers = 54,
MaxSurface1DWidth = 55,
MaxSurface2DWidth = 56,
MaxSurface2DHeight = 57,
MaxSurface3DWidth = 58,
MaxSurface3DHeight = 59,
MaxSurface3DDepth = 60,
MaxSurface1DLayeredWidth = 61,
MaxSurface1DLayeredLayers = 62,
MaxSurface2DLayeredWidth = 63,
MaxSurface2DLayeredHeight = 64,
MaxSurface2DLayeredLayers = 65,
MaxSurfaceCubemapWidth = 66,
MaxSurfaceCubemapLayeredWidth = 67,
MaxSurfaceCubemapLayeredLayers = 68,
MaxTexture1DLinearWidth = 69,
MaxTexture2DLinearWidth = 70,
MaxTexture2DLinearHeight = 71,
MaxTexture2DLinearPitch = 72,
MaxTexture2DMipmappedWidth = 73,
MaxTexture2DMipmappedHeight = 74,
ComputeCapabilityMajor = 75,
ComputeCapabilityMinor = 76,
MaxTexture1DMipmappedWidth = 77,
StreamPrioritiesSupported = 78,
GlobalL1CacheSupported = 79,
LocalL1CacheSupported = 80,
MaxSharedMemoryPerMultiprocessor = 81,
MaxRegistersPerMultiprocessor = 82,
ManagedMemory = 83,
IsMultiGpuBoard = 84,
MultiGpuBoardGroupId = 85,
HostNativeAtomicSupported = 86,
SingleToDoublePrecisionPerfRatio = 87,
PageableMemoryAccess = 88,
ConcurrentManagedAccess = 89,
ComputePreemptionSupported = 90,
CanUseHostPointerForRegisteredMem = 91,
CanUseStreamMemOpsV1 = 92,
CanUse64BitStreamMemOpsV1 = 93,
CanUseStreamWaitValueNorV1 = 94,
CooperativeLaunch = 95,
CooperativeMultiDeviceLaunch = 96,
MaxSharedMemoryPerBlockOptin = 97,
CanFlushRemoteWrites = 98,
HostRegisterSupported = 99,
PageableMemoryAccessUsesHostPageTables = 100,
DirectManagedMemAccessFromHost = 101,
VirtualMemoryManagementSupported = 102,
HandleTypePosixFileDescriptorSupported = 103,
HandleTypeWin32HandleSupported = 104,
HandleTypeWin32KmtHandleSupported = 105,
MaxBlocksPerMultiprocessor = 106,
GenericCompressionSupported = 107,
MaxPersistingL2CacheSize = 108,
MaxAccessPolicyWindowSize = 109,
GpuDirectRdmaWithCudaVmmSupported = 110,
ReservedSharedMemoryPerBlock = 111,
SparseCudaArraySupported = 112,
ReadOnlyHostRegisterSupported = 113,
TimelineSemaphoreInteropSupported = 114,
MemoryPoolsSupported = 115,
GpuDirectRdmaSupported = 116,
GpuDirectRdmaFlushWritesOptions = 117,
GpuDirectRdmaWritesOrdering = 118,
MemoryPoolSupportedHandleTypes = 119,
ClusterLaunch = 120,
DeferredMappingCudaArraySupported = 121,
CanUse64BitStreamMemOps = 122,
CanUseStreamWaitValueNor = 123,
DmaBufSupported = 124,
IpcEventSupported = 125,
MemSyncDomainCount = 126,
TensorMapAccessSupported = 127,
GpuDirectRdmaFabricSupported = 128,
UnifiedFunctionPointers = 129,
NumaConfig = 130,
NumaId = 131,
MulticastSupported = 132,
MpsEnabled = 133,
HostNumaId = 134,
}Expand description
Device attribute identifiers passed to cuDeviceGetAttribute.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MaxThreadsPerBlock = 1
Maximum number of threads per block.
MaxBlockDimX = 2
Maximum x-dimension of a block.
MaxBlockDimY = 3
Maximum y-dimension of a block.
MaxBlockDimZ = 4
Maximum z-dimension of a block.
MaxGridDimX = 5
Maximum x-dimension of a grid.
MaxGridDimY = 6
Maximum y-dimension of a grid.
MaxGridDimZ = 7
Maximum z-dimension of a grid.
Maximum shared memory available per block (bytes).
TotalConstantMemory = 9
Total amount of constant memory on the device (bytes).
WarpSize = 10
Warp size in threads.
MaxPitch = 11
Maximum pitch allowed by memory copies (bytes).
MaxRegistersPerBlock = 12
Maximum number of 32-bit registers per block.
ClockRate = 13
Peak clock frequency in kHz.
TextureAlignment = 14
Alignment requirement for textures.
GpuOverlap = 15
Device can possibly copy memory and execute a kernel concurrently.
MultiprocessorCount = 16
Number of multiprocessors on the device.
KernelExecTimeout = 17
Whether there is a run-time limit on kernels.
Integrated = 18
Device is integrated (shares host memory).
CanMapHostMemory = 19
Device can map host memory with cuMemHostAlloc / cuMemHostRegister.
ComputeMode = 20
Compute mode: default, exclusive, prohibited, etc.
MaxTexture1DWidth = 21
Maximum 1D texture width.
MaxTexture2DWidth = 22
Maximum 2D texture width.
MaxTexture2DHeight = 23
Maximum 2D texture height.
MaxTexture3DWidth = 24
Maximum 3D texture width.
MaxTexture3DHeight = 25
Maximum 3D texture height.
MaxTexture3DDepth = 26
Maximum 3D texture depth.
MaxTexture2DLayeredWidth = 27
Maximum 2D layered texture width.
MaxTexture2DLayeredHeight = 28
Maximum 2D layered texture height.
MaxTexture2DLayeredLayers = 29
Maximum layers in a 2D layered texture.
SurfaceAlignment = 30
Alignment requirement for surfaces.
ConcurrentKernels = 31
Device can execute multiple kernels concurrently.
EccEnabled = 32
Device supports ECC memory.
PciBusId = 33
PCI bus ID of the device.
PciDeviceId = 34
PCI device ID of the device.
TccDriver = 35
Device is using TCC (Tesla Compute Cluster) driver model.
MemoryClockRate = 36
Peak memory clock frequency in kHz.
GlobalMemoryBusWidth = 37
Global memory bus width in bits.
L2CacheSize = 38
Size of L2 cache in bytes.
MaxThreadsPerMultiprocessor = 39
Maximum resident threads per multiprocessor.
AsyncEngineCount = 40
Number of asynchronous engines.
UnifiedAddressing = 41
Device shares a unified address space with the host.
MaxTexture1DLayeredWidth = 42
Maximum 1D layered texture width.
MaxTexture1DLayeredLayers = 43
Maximum layers in a 1D layered texture.
CanTex2dGather = 44
Device can gather 2D textures (CAN_TEX2D_GATHER, deprecated).
MaxTexture2DGatherWidth = 45
Maximum 2D texture gather width.
MaxTexture2DGatherHeight = 46
Maximum 2D texture gather height.
MaxTexture3DWidthAlt = 47
Alternate maximum 3D texture width.
MaxTexture3DHeightAlt = 48
Alternate maximum 3D texture height.
MaxTexture3DDepthAlt = 49
Alternate maximum 3D texture depth.
PciDomainId = 50
PCI domain ID.
TexturePitchAlignment = 51
Texture pitch alignment.
MaxTextureCubemapWidth = 52
Maximum width for a cubemap texture.
MaxTextureCubemapLayeredWidth = 53
Maximum width for a cubemap layered texture.
MaxTextureCubemapLayeredLayers = 54
Maximum layers in a cubemap layered texture.
MaxSurface1DWidth = 55
Maximum 1D surface width.
MaxSurface2DWidth = 56
Maximum 2D surface width.
MaxSurface2DHeight = 57
Maximum 2D surface height.
MaxSurface3DWidth = 58
Maximum 3D surface width.
MaxSurface3DHeight = 59
Maximum 3D surface height.
MaxSurface3DDepth = 60
Maximum 3D surface depth.
MaxSurface1DLayeredWidth = 61
Maximum 1D layered surface width.
MaxSurface1DLayeredLayers = 62
Maximum layers in a 1D layered surface.
MaxSurface2DLayeredWidth = 63
Maximum 2D layered surface width.
MaxSurface2DLayeredHeight = 64
Maximum 2D layered surface height.
MaxSurface2DLayeredLayers = 65
Maximum layers in a 2D layered surface.
MaxSurfaceCubemapWidth = 66
Maximum cubemap surface width.
MaxSurfaceCubemapLayeredWidth = 67
Maximum cubemap layered surface width.
MaxSurfaceCubemapLayeredLayers = 68
Maximum layers in a cubemap layered surface.
MaxTexture1DLinearWidth = 69
Maximum 1D linear texture width (deprecated).
MaxTexture2DLinearWidth = 70
Maximum 2D linear texture width.
MaxTexture2DLinearHeight = 71
Maximum 2D linear texture height.
MaxTexture2DLinearPitch = 72
Maximum 2D linear texture pitch (bytes).
MaxTexture2DMipmappedWidth = 73
Maximum mipmapped 2D texture width.
MaxTexture2DMipmappedHeight = 74
Maximum mipmapped 2D texture height.
ComputeCapabilityMajor = 75
Major compute capability version number.
ComputeCapabilityMinor = 76
Minor compute capability version number.
MaxTexture1DMipmappedWidth = 77
Maximum mipmapped 1D texture width.
StreamPrioritiesSupported = 78
Device supports stream priorities.
GlobalL1CacheSupported = 79
Device supports caching globals in L1 cache.
LocalL1CacheSupported = 80
Device supports caching locals in L1 cache.
Maximum shared memory per multiprocessor (bytes).
MaxRegistersPerMultiprocessor = 82
Maximum registers per multiprocessor.
ManagedMemory = 83
Device supports managed memory.
IsMultiGpuBoard = 84
Device is on a multi-GPU board.
MultiGpuBoardGroupId = 85
Unique identifier for the multi-GPU board group.
HostNativeAtomicSupported = 86
Host-visible native-atomic support for float operations.
SingleToDoublePrecisionPerfRatio = 87
Ratio of single-to-double precision performance.
PageableMemoryAccess = 88
Device supports pageable memory access.
ConcurrentManagedAccess = 89
Device can access host registered memory at the same virtual address.
ComputePreemptionSupported = 90
Device supports compute preemption.
CanUseHostPointerForRegisteredMem = 91
Device can access host memory via pageable accesses.
CanUseStreamMemOpsV1 = 92
Deprecated: use of stream memory operations v1 (CUDA internal).
CanUse64BitStreamMemOpsV1 = 93
Deprecated: use of 64-bit stream memory operations v1 (CUDA internal).
CanUseStreamWaitValueNorV1 = 94
Deprecated: use of stream wait-value NOR v1 (CUDA internal).
CooperativeLaunch = 95
Device supports cooperative kernel launches.
CooperativeMultiDeviceLaunch = 96
Device supports cooperative kernel launches across multiple GPUs.
Maximum optin shared memory per block.
CanFlushRemoteWrites = 98
Device supports flushing of outstanding remote writes.
HostRegisterSupported = 99
Device supports host-side memory-register functions.
PageableMemoryAccessUsesHostPageTables = 100
Device supports pageable memory access using host page tables.
DirectManagedMemAccessFromHost = 101
Device supports direct access to managed memory on the host.
VirtualMemoryManagementSupported = 102
Device supports virtual memory management APIs.
HandleTypePosixFileDescriptorSupported = 103
Device supports handle-type POSIX file descriptors for IPC.
HandleTypeWin32HandleSupported = 104
Device supports handle-type Win32 handles for IPC.
HandleTypeWin32KmtHandleSupported = 105
Device supports handle-type Win32 KMT handles for IPC.
MaxBlocksPerMultiprocessor = 106
Maximum blocks per multiprocessor.
GenericCompressionSupported = 107
Device supports generic compression for memory.
MaxPersistingL2CacheSize = 108
Maximum persisting L2 cache size (bytes).
MaxAccessPolicyWindowSize = 109
Maximum access-policy window size for L2 cache.
GpuDirectRdmaWithCudaVmmSupported = 110
Device supports RDMA APIs via cuMemRangeGetAttribute.
Reserved range of shared memory per SM (bytes).
SparseCudaArraySupported = 112
Device supports sparse CUDA arrays.
ReadOnlyHostRegisterSupported = 113
Device supports read-only registration of host memory.
TimelineSemaphoreInteropSupported = 114
Device supports timeline semaphore interop.
MemoryPoolsSupported = 115
Device supports memory pools (cudaMallocAsync).
GpuDirectRdmaSupported = 116
GPU direct RDMA is supported.
GpuDirectRdmaFlushWritesOptions = 117
GPU direct RDMA flush-writes order.
GpuDirectRdmaWritesOrdering = 118
GPU direct RDMA writes ordering.
MemoryPoolSupportedHandleTypes = 119
Memory pool supported handle types.
ClusterLaunch = 120
Device supports cluster launch.
DeferredMappingCudaArraySupported = 121
Deferred mapping CUDA array supported.
CanUse64BitStreamMemOps = 122
Device supports 64-bit stream memory operations.
CanUseStreamWaitValueNor = 123
Device supports stream wait-value NOR.
DmaBufSupported = 124
Device supports importing memory from a Linux dma_buf.
IpcEventSupported = 125
Device supports IPC event handles.
MemSyncDomainCount = 126
Device supports mem-sync domain count.
TensorMapAccessSupported = 127
Device supports tensor-map access to data.
GpuDirectRdmaFabricSupported = 128
Device supports exporting memory as a fabric handle
(HANDLE_TYPE_FABRIC_SUPPORTED).
UnifiedFunctionPointers = 129
Unified function pointers supported.
NumaConfig = 130
NUMA config.
NumaId = 131
NUMA id.
MulticastSupported = 132
Device supports multicast.
MpsEnabled = 133
Device supports MPS features.
HostNumaId = 134
Host-NUMA identifier.
Trait Implementations§
Source§impl Clone for CUdevice_attribute
impl Clone for CUdevice_attribute
Source§fn clone(&self) -> CUdevice_attribute
fn clone(&self) -> CUdevice_attribute
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CUdevice_attribute
Source§impl Debug for CUdevice_attribute
impl Debug for CUdevice_attribute
impl Eq for CUdevice_attribute
Source§impl Hash for CUdevice_attribute
impl Hash for CUdevice_attribute
Source§impl PartialEq for CUdevice_attribute
impl PartialEq for CUdevice_attribute
Source§fn eq(&self, other: &CUdevice_attribute) -> bool
fn eq(&self, other: &CUdevice_attribute) -> bool
self and other values to be equal, and is used by ==.