#[repr(u32)]pub enum DeviceAttribute {
Show 119 variants
MaxThreadsPerBlock = 1,
MaxBlockDimX = 2,
MaxBlockDimY = 3,
MaxBlockDimZ = 4,
MaxGridDimX = 5,
MaxGridDimY = 6,
MaxGridDimZ = 7,
SharedMemoryPerBlock = 8,
TotalConstantMemory = 9,
WarpSize = 10,
MaxPitch = 11,
RegistersPerBlock = 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,
MaximumTexture2dArrayWidth = 27,
MaximumTexture2dArrayHeight = 28,
MaximumTexture2dArrayNumslices = 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,
MaximumTexture2dGatherWidth45 = 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,
CanUseStreamMemOps = 92,
CanUse64BitStreamMemOps = 93,
CanUseStreamWaitValueNor = 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,
MempoolSupportedHandleTypes = 119,
}
Expand description
A Device
-specific attribute type
Variants§
MaxThreadsPerBlock = 1
MaxBlockDimX = 2
MaxBlockDimY = 3
MaxBlockDimZ = 4
MaxGridDimX = 5
MaxGridDimY = 6
MaxGridDimZ = 7
TotalConstantMemory = 9
WarpSize = 10
MaxPitch = 11
RegistersPerBlock = 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
MaximumTexture2dArrayWidth = 27
MaximumTexture2dArrayHeight = 28
MaximumTexture2dArrayNumslices = 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
MaximumTexture2dGatherWidth45 = 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
MaxRegistersPerMultiprocessor = 82
ManagedMemory = 83
MultiGpuBoard = 84
MultiGpuBoardGroupId = 85
HostNativeAtomicSupported = 86
SingleToDoublePrecisionPerfRatio = 87
PageableMemoryAccess = 88
ConcurrentManagedAccess = 89
ComputePreemptionSupported = 90
CanUseHostPointerForRegisteredMem = 91
CanUseStreamMemOps = 92
CanUse64BitStreamMemOps = 93
CanUseStreamWaitValueNor = 94
CooperativeLaunch = 95
CooperativeMultiDeviceLaunch = 96
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
SparseCudaArraySupported = 112
ReadOnlyHostRegisterSupported = 113
TimelineSemaphoreInteropSupported = 114
MemoryPoolsSupported = 115
GpuDirectRdmaSupported = 116
GpuDirectRdmaFlushWritesOptions = 117
GpuDirectRdmaWritesOrdering = 118
MempoolSupportedHandleTypes = 119
Trait Implementations§
Source§impl Clone for DeviceAttribute
impl Clone for DeviceAttribute
Source§fn clone(&self) -> DeviceAttribute
fn clone(&self) -> DeviceAttribute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeviceAttribute
impl Debug for DeviceAttribute
Source§impl TryFrom<u32> for DeviceAttribute
impl TryFrom<u32> for DeviceAttribute
Source§type Error = TryFromPrimitiveError<DeviceAttribute>
type Error = TryFromPrimitiveError<DeviceAttribute>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DeviceAttribute
impl TryFromPrimitive for DeviceAttribute
impl Copy for DeviceAttribute
Auto Trait Implementations§
impl Freeze for DeviceAttribute
impl RefUnwindSafe for DeviceAttribute
impl Send for DeviceAttribute
impl Sync for DeviceAttribute
impl Unpin 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
Mutably borrows from an owned value. Read more