Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl committed Jul 26, 2024
1 parent ed80a56 commit 11ec921
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions src/server/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<u32>(),
*sums.limb_0[i].device_ptr(),
mem::size_of::<u32>() * 15
+ insertion_idx * mem::size_of::<u32>() * ROTATIONS,
mem::size_of::<u32>(),
);

helpers::dtod_at_offset(
*db.code_sums_gr.limb_0[i].device_ptr(),
self.current_db_sizes[i] * mem::size_of::<u32>(),
*sums.limb_0[i].device_ptr(),
mem::size_of::<u32>() * 15
+ insertion_idx * mem::size_of::<u32>() * ROTATIONS,
mem::size_of::<u32>(),
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::<u32>(),
*sums.limb_1[i].device_ptr(),
mem::size_of::<u32>() * 15
+ insertion_idx * mem::size_of::<u32>() * ROTATIONS,
mem::size_of::<u32>(),
);

helpers::dtod_at_offset(
*db.code_sums_gr.limb_1[i].device_ptr(),
self.current_db_sizes[i] * mem::size_of::<u32>(),
*sums.limb_1[i].device_ptr(),
mem::size_of::<u32>() * 15
+ insertion_idx * mem::size_of::<u32>() * ROTATIONS,
mem::size_of::<u32>(),
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::<u32>(),
// *sums.limb_0[i].device_ptr(),
// mem::size_of::<u32>() * 15
// + insertion_idx * mem::size_of::<u32>() * ROTATIONS,
// mem::size_of::<u32>(),
// );

// helpers::dtod_at_offset(
// *db.code_sums_gr.limb_0[i].device_ptr(),
// self.current_db_sizes[i] * mem::size_of::<u32>(),
// *sums.limb_0[i].device_ptr(),
// mem::size_of::<u32>() * 15
// + insertion_idx * mem::size_of::<u32>() * ROTATIONS,
// mem::size_of::<u32>(),
// 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::<u32>(),
// *sums.limb_1[i].device_ptr(),
// mem::size_of::<u32>() * 15
// + insertion_idx * mem::size_of::<u32>() * ROTATIONS,
// mem::size_of::<u32>(),
// );

// helpers::dtod_at_offset(
// *db.code_sums_gr.limb_1[i].device_ptr(),
// self.current_db_sizes[i] * mem::size_of::<u32>(),
// *sums.limb_1[i].device_ptr(),
// mem::size_of::<u32>() * 15
// + insertion_idx * mem::size_of::<u32>() * ROTATIONS,
// mem::size_of::<u32>(),
// self.streams[0][i].stream,
// );
}
}
self.current_db_sizes[i] += 1;
Expand Down

0 comments on commit 11ec921

Please sign in to comment.