Enum DeviceAttribute

Source
#[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

§

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

Trait Implementations§

Source§

impl Clone for DeviceAttribute

Source§

fn clone(&self) -> DeviceAttribute

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DeviceAttribute

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl TryFrom<u32> for DeviceAttribute

Source§

type Error = TryFromPrimitiveError<DeviceAttribute>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for DeviceAttribute

Source§

const NAME: &'static str = "DeviceAttribute"

Source§

type Primitive = u32

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl Copy for DeviceAttribute

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.