Skip to content

Commit df7073d

Browse files
author
Micah Chambers (minerva)
committed
add missing
1 parent 402e79b commit df7073d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ffi/device.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
use std::ffi::c_char;
2-
use std::ffi::c_int;
3-
41
use cpp::cpp;
52

63
use crate::device::DeviceId;
@@ -9,6 +6,7 @@ use crate::ffi::result;
96

107
type Result<T> = std::result::Result<T, crate::error::Error>;
118

9+
// Post CUDA 11, NVIDIA has only appended to this struct
1210
#[derive(Clone, Debug)]
1311
#[repr(C)]
1412
pub struct CudaDeviceProp {
@@ -335,6 +333,8 @@ impl Default for CudaDeviceProp {
335333
CudaDeviceProp {
336334
name: [0; 256],
337335
uuid: [0; 16],
336+
luid: [0; 8],
337+
luid_device_node_mask: 0,
338338
total_global_mem: 0,
339339
shared_mem_per_block: 0,
340340
regs_per_block: 0,
@@ -408,6 +408,9 @@ impl Default for CudaDeviceProp {
408408
direct_managed_mem_access_from_host: 0,
409409
max_blocks_per_multi_processor: 0,
410410
access_policy_max_window_size: 0,
411+
host_native_atomic_supported: 0,
412+
reserved_shared_mem_per_block: 0,
413+
shared_mem_per_block_optin: 0,
411414
}
412415
}
413416
}

0 commit comments

Comments
 (0)