Skip to content

Commit

Permalink
bump cudarc (#964)
Browse files Browse the repository at this point in the history
* bump cudarc

* remove borrows

* lock
  • Loading branch information
carlomazzaferro authored Jan 24, 2025
1 parent d11df4b commit ee0d900
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

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

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

for dev in devs.iter() {
Expand Down

0 comments on commit ee0d900

Please sign in to comment.