#[non_exhaustive]#[repr(u32)]pub enum DeviceAttribute {
Show 159 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,
MaximumTexture1DWidth = 21,
MaximumTexture2DWidth = 22,
MaximumTexture2DHeight = 23,
MaximumTexture3DWidth = 24,
MaximumTexture3DHeight = 25,
MaximumTexture3DDepth = 26,
MaximumTexture2DLayeredWidth = 27,
MaximumTexture2DLayeredHeight = 28,
MaximumTexture2DLayeredLayers = 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,
MaximumTexture1DLayeredWidth = 42,
MaximumTexture1DLayeredLayers = 43,
CanTex2DGather = 44,
MaximumTexture2DGatherWidth = 45,
MaximumTexture2DGatherHeight = 46,
MaximumTexture3DWidthAlternate = 47,
MaximumTexture3DHeightAlternate = 48,
MaximumTexture3DDepthAlternate = 49,
PciDomainId = 50,
TexturePitchAlignment = 51,
MaximumTexturecubemapWidth = 52,
MaximumTexturecubemapLayeredWidth = 53,
MaximumTexturecubemapLayeredLayers = 54,
MaximumSurface1DWidth = 55,
MaximumSurface2DWidth = 56,
MaximumSurface2DHeight = 57,
MaximumSurface3DWidth = 58,
MaximumSurface3DHeight = 59,
MaximumSurface3DDepth = 60,
MaximumSurface1DLayeredWidth = 61,
MaximumSurface1DLayeredLayers = 62,
MaximumSurface2DLayeredWidth = 63,
MaximumSurface2DLayeredHeight = 64,
MaximumSurface2DLayeredLayers = 65,
MaximumSurfacecubemapWidth = 66,
MaximumSurfacecubemapLayeredWidth = 67,
MaximumSurfacecubemapLayeredLayers = 68,
MaximumTexture1DLinearWidth = 69,
MaximumTexture2DLinearWidth = 70,
MaximumTexture2DLinearHeight = 71,
MaximumTexture2DLinearPitch = 72,
MaximumTexture2DMipmappedWidth = 73,
MaximumTexture2DMipmappedHeight = 74,
ComputeCapabilityMajor = 75,
ComputeCapabilityMinor = 76,
MaximumTexture1DMipmappedWidth = 77,
StreamPrioritiesSupported = 78,
GlobalL1CacheSupported = 79,
LocalL1CacheSupported = 80,
MaxSharedMemoryPerMultiprocessor = 81,
MaxRegistersPerMultiprocessor = 82,
ManagedMemory = 83,
MultiGpuBoard = 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,
VirtualAddressManagementSupported = 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,
MempoolSupportedHandleTypes = 119,
ClusterLaunch = 120,
DeferredMappingCudaArraySupported = 121,
CanUse64BitStreamMemOps = 122,
CanUseStreamWaitValueNor = 123,
DmaBufSupported = 124,
IpcEventSupported = 125,
MemSyncDomainCount = 126,
TensorMapAccessSupported = 127,
HandleTypeFabricSupported = 128,
UnifiedFunctionPointers = 129,
NumaConfig = 130,
NumaId = 131,
MulticastSupported = 132,
MpsEnabled = 133,
HostNumaId = 134,
D3D12CigSupported = 135,
MemDecompressAlgorithmMask = 136,
MemDecompressMaximumLength = 137,
VulkanCigSupported = 138,
GpuPciDeviceId = 139,
GpuPciSubsystemId = 140,
HostNumaVirtualMemoryManagementSupported = 141,
HostNumaMemoryPoolsSupported = 142,
HostNumaMultinodeIpcSupported = 143,
HostMemoryPoolsSupported = 144,
HostVirtualMemoryManagementSupported = 145,
HostAllocDmaBufSupported = 146,
OnlyPartialHostNativeAtomicSupported = 147,
AtomicReductionSupported = 148,
LocalityDomainCount = 149,
MaxOversizedSharedMemoryPerBlock = 150,
D3D12CigStreamsSupported = 151,
DmaBufMmapSupported = 152,
LogicalEndpointUnicastSupported = 153,
LogicalEndpointMulticastSupported = 154,
LogicalEndpointCountedOpsSupported = 155,
LogicalEndpointUnicastAccessOnOwnerDeviceSupported = 156,
LocalityDomainMultiprocessorCount = 157,
LogicalEndpointSupportedHandleTypes = 158,
GpuDirectRdmaWithLocalizedMemorySupported = 161,
}Expand description
Device properties that can be queried using the driver.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MaxThreadsPerBlock = 1
Maximum number of threads per block.
MaxBlockDimX = 2
Maximum block dimension X.
MaxBlockDimY = 3
Maximum block dimension Y.
MaxBlockDimZ = 4
Maximum block dimension Z.
MaxGridDimX = 5
Maximum grid dimension X.
MaxGridDimY = 6
Maximum grid dimension Y.
MaxGridDimZ = 7
Maximum grid dimension Z.
Maximum shared memory available per block in bytes.
TotalConstantMemory = 9
Memory available on device for constant variables in a CUDA C kernel in bytes.
WarpSize = 10
Warp size in threads.
MaxPitch = 11
Maximum pitch in bytes allowed by memory copies.
MaxRegistersPerBlock = 12
Maximum number of 32-bit registers available per block.
ClockRate = 13
Typical clock frequency in kilohertz.
TextureAlignment = 14
Alignment requirement for textures.
GpuOverlap = 15
Device can possibly copy memory and execute a kernel concurrently.
Deprecated.
Use Self::AsyncEngineCount instead.
MultiprocessorCount = 16
Number of multiprocessors on device.
KernelExecTimeout = 17
Specifies whether there is a run time limit on kernels.
Integrated = 18
Device is integrated with host memory.
CanMapHostMemory = 19
Device can map host memory into CUDA address space.
ComputeMode = 20
Compute mode, as a [ComputeMode] value.
MaximumTexture1DWidth = 21
Maximum 1D texture width.
MaximumTexture2DWidth = 22
Maximum 2D texture width.
MaximumTexture2DHeight = 23
Maximum 2D texture height.
MaximumTexture3DWidth = 24
Maximum 3D texture width.
MaximumTexture3DHeight = 25
Maximum 3D texture height.
MaximumTexture3DDepth = 26
Maximum 3D texture depth.
MaximumTexture2DLayeredWidth = 27
Maximum 2D layered texture width.
MaximumTexture2DLayeredHeight = 28
Maximum 2D layered texture height.
MaximumTexture2DLayeredLayers = 29
Maximum layers in a 2D layered texture.
SurfaceAlignment = 30
Alignment requirement for surfaces.
ConcurrentKernels = 31
Device can possibly execute multiple kernels concurrently.
EccEnabled = 32
Device has ECC support enabled.
PciBusId = 33
PCI bus ID of the device.
PciDeviceId = 34
PCI device ID of the device.
TccDriver = 35
Device is using TCC driver model.
MemoryClockRate = 36
Peak memory clock frequency in kilohertz.
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.
MaximumTexture1DLayeredWidth = 42
Maximum 1D layered texture width.
MaximumTexture1DLayeredLayers = 43
Maximum layers in a 1D layered texture.
CanTex2DGather = 44
do not use.
MaximumTexture2DGatherWidth = 45
Maximum 2D texture width if CUDA_ARRAY3D_TEXTURE_GATHER is set.
MaximumTexture2DGatherHeight = 46
Maximum 2D texture height if CUDA_ARRAY3D_TEXTURE_GATHER is set.
MaximumTexture3DWidthAlternate = 47
Alternate maximum 3D texture width.
MaximumTexture3DHeightAlternate = 48
Alternate maximum 3D texture height.
MaximumTexture3DDepthAlternate = 49
Alternate maximum 3D texture depth.
PciDomainId = 50
PCI domain ID of the device.
TexturePitchAlignment = 51
Pitch alignment requirement for textures.
MaximumTexturecubemapWidth = 52
Maximum cubemap texture width/height.
MaximumTexturecubemapLayeredWidth = 53
Maximum cubemap layered texture width/height.
MaximumTexturecubemapLayeredLayers = 54
Maximum layers in a cubemap layered texture.
MaximumSurface1DWidth = 55
Maximum 1D surface width.
MaximumSurface2DWidth = 56
Maximum 2D surface width.
MaximumSurface2DHeight = 57
Maximum 2D surface height.
MaximumSurface3DWidth = 58
Maximum 3D surface width.
MaximumSurface3DHeight = 59
Maximum 3D surface height.
MaximumSurface3DDepth = 60
Maximum 3D surface depth.
MaximumSurface1DLayeredWidth = 61
Maximum 1D layered surface width.
MaximumSurface1DLayeredLayers = 62
Maximum layers in a 1D layered surface.
MaximumSurface2DLayeredWidth = 63
Maximum 2D layered surface width.
MaximumSurface2DLayeredHeight = 64
Maximum 2D layered surface height.
MaximumSurface2DLayeredLayers = 65
Maximum layers in a 2D layered surface.
MaximumSurfacecubemapWidth = 66
Maximum cubemap surface width.
MaximumSurfacecubemapLayeredWidth = 67
Maximum cubemap layered surface width.
MaximumSurfacecubemapLayeredLayers = 68
Maximum layers in a cubemap layered surface.
MaximumTexture1DLinearWidth = 69
Deprecated maximum 1D linear texture width.
The driver’s per-format 1D linear texture width query replaces it.
MaximumTexture2DLinearWidth = 70
Maximum 2D linear texture width.
MaximumTexture2DLinearHeight = 71
Maximum 2D linear texture height.
MaximumTexture2DLinearPitch = 72
Maximum 2D linear texture pitch in bytes.
MaximumTexture2DMipmappedWidth = 73
Maximum mipmapped 2D texture width.
MaximumTexture2DMipmappedHeight = 74
Maximum mipmapped 2D texture height.
ComputeCapabilityMajor = 75
Major compute capability version number.
ComputeCapabilityMinor = 76
Minor compute capability version number.
MaximumTexture1DMipmappedWidth = 77
Maximum mipmapped 1D texture width.
StreamPrioritiesSupported = 78
Device supports stream priorities.
GlobalL1CacheSupported = 79
Device supports caching globals in L1.
LocalL1CacheSupported = 80
Device supports caching locals in L1.
Maximum shared memory available per multiprocessor in bytes.
MaxRegistersPerMultiprocessor = 82
Maximum number of 32-bit registers available per multiprocessor.
ManagedMemory = 83
Device can allocate managed memory on this system.
MultiGpuBoard = 84
Device is on a multi-GPU board.
MultiGpuBoardGroupId = 85
Unique id for a group of devices on the same multi-GPU board.
HostNativeAtomicSupported = 86
Link between the device and the host supports all native atomic operations.
SingleToDoublePrecisionPerfRatio = 87
Ratio of single precision performance (in floating-point operations per second) to double precision performance.
PageableMemoryAccess = 88
Device supports coherently accessing pageable memory without registering it.
ConcurrentManagedAccess = 89
Device can coherently access managed memory concurrently with the CPU.
ComputePreemptionSupported = 90
Device supports compute preemption.
CanUseHostPointerForRegisteredMem = 91
Device can access host registered memory at the same virtual address as the CPU.
CanUseStreamMemOpsV1 = 92
along with v1 MemOps API, batched stream memory operations are supported.
CanUse64BitStreamMemOpsV1 = 93
along with v1 MemOps API, 64-bit batched stream memory operations are supported.
CanUseStreamWaitValueNorV1 = 94
along with v1 MemOps API, the NOR stream wait-value comparison is supported.
CooperativeLaunch = 95
Device supports launching cooperative kernels.
CooperativeMultiDeviceLaunch = 96
Cooperative launches across several devices are deprecated.
Maximum optin shared memory per block.
That is shared memory that is available for dynamic allocation or static allocation (including architecture specific static shared memory) on this device but is not guaranteed to be portable.
CanFlushRemoteWrites = 98
The flushing stream wait-value flag and the flush-remote-writes memory operation are supported on the device.
HostRegisterSupported = 99
Device supports host memory registration, as RegisteredHostMemory uses.
PageableMemoryAccessUsesHostPageTables = 100
Device accesses pageable memory via the host’s page tables.
DirectManagedMemAccessFromHost = 101
The host can directly access managed memory on the device without migration.
VirtualAddressManagementSupported = 102
Device supports the virtual memory management APIs.
HandleTypePosixFileDescriptorSupported = 103
Device supports exporting virtual memory allocations created for it to a POSIX file descriptor.
HandleTypeWin32HandleSupported = 104
Device supports exporting virtual memory allocations created for it to a Win32 NT handle.
HandleTypeWin32KmtHandleSupported = 105
Device supports exporting virtual memory allocations created for it to a Win32 KMT handle.
MaxBlocksPerMultiprocessor = 106
Maximum number of blocks per multiprocessor.
GenericCompressionSupported = 107
Device supports compression of memory.
MaxPersistingL2CacheSize = 108
Maximum L2 persisting lines capacity setting in bytes.
MaxAccessPolicyWindowSize = 109
Maximum byte size of an access policy window.
GpuDirectRdmaWithCudaVmmSupported = 110
Device supports requesting GPUDirect RDMA for virtual memory allocations.
Shared memory reserved by CUDA driver per block in bytes.
SparseCudaArraySupported = 112
Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays.
ReadOnlyHostRegisterSupported = 113
Device supports HostRegisterFlags::READ_ONLY for host registrations mapped read-only to the GPU.
TimelineSemaphoreInteropSupported = 114
External timeline semaphore interop is supported on the device.
MemoryPoolsSupported = 115
Device supports stream-ordered allocation and memory pools.
GpuDirectRdmaSupported = 116
Device supports GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see https://docs.nvidia.com/cuda/gpudirect-rdma for more information).
GpuDirectRdmaFlushWritesOptions = 117
The returned value is a bitmask of the driver’s GPUDirect RDMA write-flushing options.
GpuDirectRdmaWritesOrdering = 118
GPUDirect RDMA writes to the device do not need to be flushed for consumers within the scope indicated by the returned attribute.
The value is one of the driver’s GPUDirect RDMA write-ordering levels.
MempoolSupportedHandleTypes = 119
Handle types supported with mempool based IPC.
ClusterLaunch = 120
Indicates device supports cluster launch.
DeferredMappingCudaArraySupported = 121
Device supports deferred mapping CUDA arrays and CUDA mipmapped arrays.
CanUse64BitStreamMemOps = 122
64-bit batched stream memory operations are supported.
CanUseStreamWaitValueNor = 123
The NOR stream wait-value comparison is supported by stream memory operations.
DmaBufSupported = 124
Device supports buffer sharing with dma_buf mechanism.
IpcEventSupported = 125
Device supports IPC Events.
MemSyncDomainCount = 126
Number of memory domains the device supports.
TensorMapAccessSupported = 127
Device supports accessing memory using Tensor Map.
HandleTypeFabricSupported = 128
Device supports exporting virtual memory allocations to a fabric handle.
UnifiedFunctionPointers = 129
Device supports unified function pointers.
NumaConfig = 130
NUMA configuration of a device, as the driver’s NUMA configuration enum value.
NumaId = 131
NUMA node ID of the GPU memory.
MulticastSupported = 132
Device supports switch multicast and reduction operations.
MpsEnabled = 133
Indicates if contexts created on this device will be shared via MPS.
HostNumaId = 134
NUMA ID of the host node closest to the device.
Returns -1 when system does not support NUMA.
D3D12CigSupported = 135
Device supports CIG with D3D12.
MemDecompressAlgorithmMask = 136
The returned value is a bitmask of the driver’s decompression algorithms.
MemDecompressMaximumLength = 137
The returned valued is the maximum length in bytes of a single decompress operation that is allowed.
VulkanCigSupported = 138
Device supports CIG with Vulkan.
GpuPciDeviceId = 139
The combined 16-bit PCI device ID and 16-bit PCI vendor ID.
GpuPciSubsystemId = 140
The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID.
HostNumaVirtualMemoryManagementSupported = 141
Device supports host NUMA locations for virtual memory management allocations and mappings.
HostNumaMemoryPoolsSupported = 142
Device supports host NUMA locations for stream-ordered allocation and memory pools.
HostNumaMultinodeIpcSupported = 143
Device supports HOST_NUMA location IPC between nodes in a multi-node system.
HostMemoryPoolsSupported = 144
Device supports host locations for stream-ordered allocation and memory pools.
HostVirtualMemoryManagementSupported = 145
Device supports host locations for virtual memory management allocations and mappings.
HostAllocDmaBufSupported = 146
Device supports page-locked host memory buffer sharing with dma_buf mechanism.
OnlyPartialHostNativeAtomicSupported = 147
Link between the device and the host supports only some native atomic operations.
AtomicReductionSupported = 148
Device supports atomic reduction operations in stream batch memory operations.
LocalityDomainCount = 149
Number of locality domains.
Maximum oversized shared memory per block.
D3D12CigStreamsSupported = 151
Device supports CIG streams with D3D12.
DmaBufMmapSupported = 152
Device supports mmap() of dmabuf file descriptors for CUDA device memory allocations.
LogicalEndpointUnicastSupported = 153
Device supports unicast logical endpoints.
LogicalEndpointMulticastSupported = 154
Device supports multicast logical endpoints.
LogicalEndpointCountedOpsSupported = 155
Device supports counted operations via logical endpoints.
LogicalEndpointUnicastAccessOnOwnerDeviceSupported = 156
Device supports unicast logical endpoint access on the owner device.
LocalityDomainMultiprocessorCount = 157
Number of multiprocessors on each locality domain.
LogicalEndpointSupportedHandleTypes = 158
Handle types supported with logical endpoint IPC.
GpuDirectRdmaWithLocalizedMemorySupported = 161
Device supports GPUDirect RDMA with localized memory using the default RDMA mapping link.
Trait Implementations§
Source§impl Clone for DeviceAttribute
impl Clone for DeviceAttribute
impl Copy for DeviceAttribute
Source§impl Debug for DeviceAttribute
impl Debug for DeviceAttribute
Source§impl Display for DeviceAttribute
impl Display for DeviceAttribute
impl Eq for DeviceAttribute
Source§impl From<DeviceAttribute> for u32
impl From<DeviceAttribute> for u32
Source§fn from(enum_value: DeviceAttribute) -> Self
fn from(enum_value: DeviceAttribute) -> Self
Source§impl From<DeviceAttribute> for CUdevice_attribute_enum
impl From<DeviceAttribute> for CUdevice_attribute_enum
Source§fn from(value: DeviceAttribute) -> Self
fn from(value: DeviceAttribute) -> Self
Source§impl Hash for DeviceAttribute
impl Hash for DeviceAttribute
Source§impl PartialEq for DeviceAttribute
impl PartialEq for DeviceAttribute
impl StructuralPartialEq for DeviceAttribute
Source§impl TryFrom<CUdevice_attribute_enum> for DeviceAttribute
impl TryFrom<CUdevice_attribute_enum> for DeviceAttribute
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: CUdevice_attribute_enum) -> Result<Self, UnknownEnumValue>
fn try_from(value: CUdevice_attribute_enum) -> Result<Self, UnknownEnumValue>
Source§impl TryFrom<u32> for DeviceAttribute
impl TryFrom<u32> for DeviceAttribute
Source§type Error = TryFromPrimitiveError<DeviceAttribute>
type Error = TryFromPrimitiveError<DeviceAttribute>
Source§impl TryFromPrimitive for DeviceAttribute
impl TryFromPrimitive for DeviceAttribute
const NAME: &'static str = "DeviceAttribute"
type Primitive = u32
type Error = TryFromPrimitiveError<DeviceAttribute>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Forget for DeviceAttribute
impl Freeze for DeviceAttribute
impl Move for DeviceAttribute
impl RefUnwindSafe for DeviceAttribute
impl Send for DeviceAttribute
impl Sync for DeviceAttribute
impl Unpin for DeviceAttribute
impl UnsafeUnpin for DeviceAttribute
impl UnwindSafe for DeviceAttribute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.