Skip to content

Commit e995020

Browse files
committed
Update DeviceAttribute enum to match cuda-driver-sys.
1 parent a61006c commit e995020

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

src/device.rs

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,37 @@ pub enum DeviceAttribute {
192192
ComputePreemptionSupported = 90,
193193
/// Device can access host registered memory at the same virtual address as the CPU
194194
CanUseHostPointerForRegisteredMem = 91,
195+
/// Stream memory operations are supported.
196+
CanUseStreamMemOps = 92,
197+
/// 64-bit stream memory operations are supported.
198+
CanUse64BitStreamMemOps = 93,
199+
/// Wait value NOR is supported
200+
CanUseStreamWaitValueNor = 94,
201+
/// Supports launching cooperative kernels
202+
CooperativeLaunch = 95,
203+
/// Supports launching cooperative kernels on multiple devices.
204+
CooperativeMultiDeviceLaunch = 96,
205+
/// Maximum opt-in shared memory per block.
206+
MaxSharedMemoryPerBlockOptin = 97,
207+
/// Stream memory operations can wait for flush.
208+
CanFlushRemoteWrites = 98,
209+
/// Device supports host memory registration
210+
HostRegisterSupported = 99,
211+
/// Device accesses pageable memory via the host page tables
212+
PageableMemoryAccessUsesHostPageTable = 100,
213+
/// Device supports direct access to device memory without migration
214+
DirectManagedMemAccessFromhost = 101,
215+
/// Device supports virual memory management APIs
216+
VirtualMemoryManagementSupported = 102,
217+
/// Device supports exporting memory to a posix file descriptor
218+
HandleTypePosixFileDescriptorSupported = 103,
219+
/// Device supports exporting memory to a Win32 NT handle
220+
HandleTypeWin32HandleSupported = 104,
221+
/// Device supports exporting memory to a Win32 KMT handle
222+
HandleTypeWin32KmtHandleSupported = 105,
223+
195224
#[doc(hidden)]
196-
__NonExhaustive = 92,
225+
__NonExhaustive = 106,
197226
}
198227

199228
/// Opaque handle to a CUDA device.

0 commit comments

Comments
 (0)