Skip to content

Commit

Permalink
sync after gather (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl authored Nov 1, 2024
1 parent 0921a1a commit 25bac46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/prod/common-values-iris-mpc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: "ghcr.io/worldcoin/iris-mpc:v0.8.39"
image: "ghcr.io/worldcoin/iris-mpc:v0.8.40"

environment: prod
replicaCount: 1
Expand Down
4 changes: 4 additions & 0 deletions iris-mpc-gpu/src/server/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1255,12 +1255,16 @@ impl ServerActor {
.device(0)
.htod_copy(valid_entries.iter().map(|&x| x as u8).collect::<Vec<_>>())?;

self.device_manager.device(0).synchronize()?;

tracing::info!(party_id = self.party_id, "all_gather start");

self.comms[0]
.all_gather(&buffer_self, &mut buffer)
.map_err(|e| eyre!(format!("{:?}", e)))?;

self.device_manager.device(0).synchronize()?;

tracing::info!(party_id = self.party_id, "dtoh_sync_copy start");

let results = self.device_manager.device(0).dtoh_sync_copy(&buffer)?;
Expand Down

0 comments on commit 25bac46

Please sign in to comment.