@@ -10,7 +10,6 @@ use crate::resources::{
1010 ResourceIndex , ResourceUnits ,
1111} ;
1212
13-
1413impl ResourceAllocator {
1514 pub fn get_sockets ( & self , allocation : & Allocation , idx : u32 ) -> Vec < usize > {
1615 let idx = ResourceId :: new ( idx) ;
@@ -1071,21 +1070,3 @@ fn test_tight_scattering() {
10711070 assert_eq ! ( r1[ 4 ] . group_idx, r1[ 5 ] . group_idx) ;
10721071 assert_ne ! ( r1[ 0 ] . group_idx, r1[ 4 ] . group_idx) ;
10731072}
1074-
1075- // #[test]
1076- // fn test_coupling_tight() {
1077- // for coupled in [true, false] {
1078- // let descriptor = descriptor_cpus_gpus(3, 4, 2, coupled);
1079- // let mut allocator = test_allocator(&descriptor);
1080- //
1081- // allocator.force_claim_from_groups(0.into(), &[0], 4.into());
1082- // allocator.force_claim_from_groups(1.into(), &[1, 2], 4.into());
1083- //
1084- // let rq = ResBuilder::default()
1085- // .add_force_compact(0, ResourceAmount::new_units(1))
1086- // .add_force_compact(1, ResourceAmount::new_units(1))
1087- // .finish_v();
1088- // let al = allocator.try_allocate(&rq);
1089- // assert_eq!(al.is_none(), coupled);
1090- // }
1091- // }
0 commit comments