@@ -647,7 +647,10 @@ 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+ #[ cfg( cuMemLocation_anon_id) ]
650651 __bindgen_anon_1 : driver_sys:: CUmemLocation_st__bindgen_ty_1 { id } ,
652+ #[ cfg( not( cuMemLocation_anon_id) ) ]
653+ id,
651654 } ,
652655 #[ cfg( not( cuMemPrefetchAsync_v2) ) ]
653656 id,
@@ -693,7 +696,10 @@ pub trait MemoryAdvise<T: DeviceCopy>: private::Sealed {
693696 #[ cfg( cuMemPrefetchAsync_v2) ]
694697 driver_sys:: CUmemLocation {
695698 type_ : driver_sys:: CUmemLocationType :: CU_MEM_LOCATION_TYPE_DEVICE ,
699+ #[ cfg( cuMemLocation_anon_id) ]
696700 __bindgen_anon_1 : driver_sys:: CUmemLocation_st__bindgen_ty_1 { id } ,
701+ #[ cfg( not( cuMemLocation_anon_id) ) ]
702+ id,
697703 } ,
698704 #[ cfg( not( cuMemPrefetchAsync_v2) ) ]
699705 id,
@@ -735,7 +741,10 @@ pub trait MemoryAdvise<T: DeviceCopy>: private::Sealed {
735741 #[ cfg( cuMemAdvise_v2) ]
736742 driver_sys:: CUmemLocation {
737743 type_ : driver_sys:: CUmemLocationType :: CU_MEM_LOCATION_TYPE_DEVICE ,
744+ #[ cfg( cuMemLocation_anon_id) ]
738745 __bindgen_anon_1 : driver_sys:: CUmemLocation_st__bindgen_ty_1 { id } ,
746+ #[ cfg( not( cuMemLocation_anon_id) ) ]
747+ id,
739748 } ,
740749 #[ cfg( not( cuMemAdvise_v2) ) ]
741750 id,
@@ -777,7 +786,10 @@ pub trait MemoryAdvise<T: DeviceCopy>: private::Sealed {
777786 #[ cfg( cuMemAdvise_v2) ]
778787 driver_sys:: CUmemLocation {
779788 type_ : driver_sys:: CUmemLocationType :: CU_MEM_LOCATION_TYPE_DEVICE ,
789+ #[ cfg( cuMemLocation_anon_id) ]
780790 __bindgen_anon_1 : driver_sys:: CUmemLocation_st__bindgen_ty_1 { id } ,
791+ #[ cfg( not( cuMemLocation_anon_id) ) ]
792+ id,
781793 } ,
782794 #[ cfg( not( cuMemAdvise_v2) ) ]
783795 id,
@@ -801,7 +813,10 @@ pub trait MemoryAdvise<T: DeviceCopy>: private::Sealed {
801813 #[ cfg( cuMemAdvise_v2) ]
802814 driver_sys:: CUmemLocation {
803815 type_ : driver_sys:: CUmemLocationType :: CU_MEM_LOCATION_TYPE_DEVICE ,
816+ #[ cfg( cuMemLocation_anon_id) ]
804817 __bindgen_anon_1 : driver_sys:: CUmemLocation_st__bindgen_ty_1 { id } ,
818+ #[ cfg( not( cuMemLocation_anon_id) ) ]
819+ id,
805820 } ,
806821 #[ cfg( not( cuMemAdvise_v2) ) ]
807822 id,
0 commit comments