From 11ec92103020002973445e28e7edf57a4b7a2401 Mon Sep 17 00:00:00 2001 From: philsippl Date: Fri, 26 Jul 2024 06:25:04 +0000 Subject: [PATCH] dbg --- src/server/actor.rs | 120 ++++++++++++++++++++++---------------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/src/server/actor.rs b/src/server/actor.rs index 70ebc4783..6b8b8f8fd 100644 --- a/src/server/actor.rs +++ b/src/server/actor.rs @@ -704,66 +704,66 @@ impl ServerActor { self.streams[0][i].stream, ); - println!( - "{}: Inserting into db1 at {:#x} + {:#x} from {:#x} + {:#x} with len {:?}", - self.party_id, - *db.code_gr.limb_1[i].device_ptr(), - self.current_db_sizes[i] * IRIS_CODE_LENGTH, - *query.limb_1[i].device_ptr(), - IRIS_CODE_LENGTH * 15 + insertion_idx * IRIS_CODE_LENGTH * ROTATIONS, - IRIS_CODE_LENGTH, - ); - - helpers::dtod_at_offset( - *db.code_gr.limb_1[i].device_ptr(), - self.current_db_sizes[i] * IRIS_CODE_LENGTH, - *query.limb_1[i].device_ptr(), - IRIS_CODE_LENGTH * 15 + insertion_idx * IRIS_CODE_LENGTH * ROTATIONS, - IRIS_CODE_LENGTH, - self.streams[0][i].stream, - ); - - println!( - "{}: Inserting into db0_sums at {:#x} + {:#x} from {:#x} + {:#x} with len {:?}", - self.party_id, - *db.code_sums_gr.limb_0[i].device_ptr(), - self.current_db_sizes[i] * mem::size_of::(), - *sums.limb_0[i].device_ptr(), - mem::size_of::() * 15 - + insertion_idx * mem::size_of::() * ROTATIONS, - mem::size_of::(), - ); - - helpers::dtod_at_offset( - *db.code_sums_gr.limb_0[i].device_ptr(), - self.current_db_sizes[i] * mem::size_of::(), - *sums.limb_0[i].device_ptr(), - mem::size_of::() * 15 - + insertion_idx * mem::size_of::() * ROTATIONS, - mem::size_of::(), - self.streams[0][i].stream, - ); - - println!( - "{}: Inserting into db1sums at {:#x} + {:#x} from {:#x} + {:#x} with len {:?}", - self.party_id, - *db.code_sums_gr.limb_1[i].device_ptr(), - self.current_db_sizes[i] * mem::size_of::(), - *sums.limb_1[i].device_ptr(), - mem::size_of::() * 15 - + insertion_idx * mem::size_of::() * ROTATIONS, - mem::size_of::(), - ); - - helpers::dtod_at_offset( - *db.code_sums_gr.limb_1[i].device_ptr(), - self.current_db_sizes[i] * mem::size_of::(), - *sums.limb_1[i].device_ptr(), - mem::size_of::() * 15 - + insertion_idx * mem::size_of::() * ROTATIONS, - mem::size_of::(), - self.streams[0][i].stream, - ); + // println!( + // "{}: Inserting into db1 at {:#x} + {:#x} from {:#x} + {:#x} with len {:?}", + // self.party_id, + // *db.code_gr.limb_1[i].device_ptr(), + // self.current_db_sizes[i] * IRIS_CODE_LENGTH, + // *query.limb_1[i].device_ptr(), + // IRIS_CODE_LENGTH * 15 + insertion_idx * IRIS_CODE_LENGTH * ROTATIONS, + // IRIS_CODE_LENGTH, + // ); + + // helpers::dtod_at_offset( + // *db.code_gr.limb_1[i].device_ptr(), + // self.current_db_sizes[i] * IRIS_CODE_LENGTH, + // *query.limb_1[i].device_ptr(), + // IRIS_CODE_LENGTH * 15 + insertion_idx * IRIS_CODE_LENGTH * ROTATIONS, + // IRIS_CODE_LENGTH, + // self.streams[0][i].stream, + // ); + + // println!( + // "{}: Inserting into db0_sums at {:#x} + {:#x} from {:#x} + {:#x} with len {:?}", + // self.party_id, + // *db.code_sums_gr.limb_0[i].device_ptr(), + // self.current_db_sizes[i] * mem::size_of::(), + // *sums.limb_0[i].device_ptr(), + // mem::size_of::() * 15 + // + insertion_idx * mem::size_of::() * ROTATIONS, + // mem::size_of::(), + // ); + + // helpers::dtod_at_offset( + // *db.code_sums_gr.limb_0[i].device_ptr(), + // self.current_db_sizes[i] * mem::size_of::(), + // *sums.limb_0[i].device_ptr(), + // mem::size_of::() * 15 + // + insertion_idx * mem::size_of::() * ROTATIONS, + // mem::size_of::(), + // self.streams[0][i].stream, + // ); + + // println!( + // "{}: Inserting into db1sums at {:#x} + {:#x} from {:#x} + {:#x} with len {:?}", + // self.party_id, + // *db.code_sums_gr.limb_1[i].device_ptr(), + // self.current_db_sizes[i] * mem::size_of::(), + // *sums.limb_1[i].device_ptr(), + // mem::size_of::() * 15 + // + insertion_idx * mem::size_of::() * ROTATIONS, + // mem::size_of::(), + // ); + + // helpers::dtod_at_offset( + // *db.code_sums_gr.limb_1[i].device_ptr(), + // self.current_db_sizes[i] * mem::size_of::(), + // *sums.limb_1[i].device_ptr(), + // mem::size_of::() * 15 + // + insertion_idx * mem::size_of::() * ROTATIONS, + // mem::size_of::(), + // self.streams[0][i].stream, + // ); } } self.current_db_sizes[i] += 1;