Skip to content

Commit

Permalink
revert nccl changes
Browse files Browse the repository at this point in the history
  • Loading branch information
carlomazzaferro committed Jan 25, 2025
1 parent 4d15e1a commit fad8d51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion iris-mpc-gpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ repository.workspace = true

[dependencies]
bincode = "1.3.3"
cudarc = { version = "0.13.3", features = ["cuda-12020", "nccl"] }
cudarc = { git = "https://github.com/worldcoin/cudarc-fork.git", features = [
"cuda-12020",
"nccl",
] }
eyre.workspace = true
tracing.workspace = true
bytemuck.workspace = true
Expand Down
12 changes: 3 additions & 9 deletions iris-mpc-gpu/src/bin/nccl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,9 @@ async fn main() -> eyre::Result<()> {
for i in 0..n_devices {
devs[i].bind_to_thread().unwrap();

comms[i]
.broadcast(slices[i].as_ref(), &mut slices1[i], 0)
.unwrap();
comms[i]
.broadcast(slices[i].as_ref(), &mut slices2[i], 1)
.unwrap();
comms[i]
.broadcast(slices[i].as_ref(), &mut slices3[i], 2)
.unwrap();
comms[i].broadcast(&slices[i], &mut slices1[i], 0).unwrap();
comms[i].broadcast(&slices[i], &mut slices2[i], 1).unwrap();
comms[i].broadcast(&slices[i], &mut slices3[i], 2).unwrap();
}

for dev in devs.iter() {
Expand Down

0 comments on commit fad8d51

Please sign in to comment.