Skip to content

Commit

Permalink
register in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl committed Dec 27, 2024
1 parent e5c8c51 commit 6e005fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iris-mpc-gpu/src/dot/share_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ mod tests {
.unwrap();
let query_sums = engine.query_sums(&preprocessed_query, &streams, &blass);
let mut db_slices = engine.alloc_db(DB_SIZE);
engine.register_db_slices(&db_slices);
let db_sizes = engine.load_full_db(&mut db_slices, &db);

engine.dot(
Expand Down Expand Up @@ -989,6 +990,7 @@ mod tests {
.unwrap();
let query_sums = engine.query_sums(&preprocessed_query, &streams, &blass);
let mut db_slices = engine.alloc_db(DB_SIZE);
engine.register_db_slices(&db_slices);
let db_sizes = engine.load_full_db(&mut db_slices, &codes_db);

engine.dot(
Expand Down Expand Up @@ -1122,6 +1124,8 @@ mod tests {
let db_sizes = codes_engine.load_full_db(&mut code_db_slices, &codes_db);
let mut mask_db_slices = masks_engine.alloc_db(DB_SIZE);
let mask_db_sizes = masks_engine.load_full_db(&mut mask_db_slices, &masks_db);
codes_engine.register_db_slices(&code_db_slices);
masks_engine.register_db_slices(&mask_db_slices);

assert_eq!(db_sizes, mask_db_sizes);

Expand Down

0 comments on commit 6e005fa

Please sign in to comment.