Skip to content

Commit cb2f579

Browse files
committed
fix(cust): use bindgen anonymous union for CUmemLocation_st.id on CUDA 13.2
Made-with: Cursor
1 parent 0bc607f commit cb2f579

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

crates/cust/src/memory/unified.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ pub trait MemoryAdvise<T: DeviceCopy>: private::Sealed {
647647
#[cfg(cuMemPrefetchAsync_v2)]
648648
driver_sys::CUmemLocation {
649649
type_: driver_sys::CUmemLocationType::CU_MEM_LOCATION_TYPE_DEVICE,
650-
id,
650+
__bindgen_anon_1: driver_sys::CUmemLocation_st__bindgen_ty_1 { id },
651651
},
652652
#[cfg(not(cuMemPrefetchAsync_v2))]
653653
id,
@@ -693,7 +693,7 @@ pub trait MemoryAdvise<T: DeviceCopy>: private::Sealed {
693693
#[cfg(cuMemPrefetchAsync_v2)]
694694
driver_sys::CUmemLocation {
695695
type_: driver_sys::CUmemLocationType::CU_MEM_LOCATION_TYPE_DEVICE,
696-
id,
696+
__bindgen_anon_1: driver_sys::CUmemLocation_st__bindgen_ty_1 { id },
697697
},
698698
#[cfg(not(cuMemPrefetchAsync_v2))]
699699
id,
@@ -735,7 +735,7 @@ pub trait MemoryAdvise<T: DeviceCopy>: private::Sealed {
735735
#[cfg(cuMemAdvise_v2)]
736736
driver_sys::CUmemLocation {
737737
type_: driver_sys::CUmemLocationType::CU_MEM_LOCATION_TYPE_DEVICE,
738-
id,
738+
__bindgen_anon_1: driver_sys::CUmemLocation_st__bindgen_ty_1 { id },
739739
},
740740
#[cfg(not(cuMemAdvise_v2))]
741741
id,
@@ -777,7 +777,7 @@ pub trait MemoryAdvise<T: DeviceCopy>: private::Sealed {
777777
#[cfg(cuMemAdvise_v2)]
778778
driver_sys::CUmemLocation {
779779
type_: driver_sys::CUmemLocationType::CU_MEM_LOCATION_TYPE_DEVICE,
780-
id,
780+
__bindgen_anon_1: driver_sys::CUmemLocation_st__bindgen_ty_1 { id },
781781
},
782782
#[cfg(not(cuMemAdvise_v2))]
783783
id,
@@ -801,7 +801,7 @@ pub trait MemoryAdvise<T: DeviceCopy>: private::Sealed {
801801
#[cfg(cuMemAdvise_v2)]
802802
driver_sys::CUmemLocation {
803803
type_: driver_sys::CUmemLocationType::CU_MEM_LOCATION_TYPE_DEVICE,
804-
id,
804+
__bindgen_anon_1: driver_sys::CUmemLocation_st__bindgen_ty_1 { id },
805805
},
806806
#[cfg(not(cuMemAdvise_v2))]
807807
id,

0 commit comments

Comments
 (0)