File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- use std:: ffi:: c_char;
2- use std:: ffi:: c_int;
3-
41use cpp:: cpp;
52
63use crate :: device:: DeviceId ;
@@ -9,6 +6,7 @@ use crate::ffi::result;
96
107type 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 ) ]
1412pub 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}
You can’t perform that action at this time.
0 commit comments