Skip to content

Commit

Permalink
both limbs
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl committed Dec 27, 2024
1 parent 5375439 commit fc0b726
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions iris-mpc-gpu/src/dot/share_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use cudarc::{
},
driver::{
result::{self, malloc_async},
sys::CUdeviceptr,
sys::{CUdeviceptr, CU_MEMHOSTALLOC_PORTABLE},
CudaFunction, CudaSlice, CudaStream, CudaView, DevicePtr, DeviceSlice, LaunchAsync,
},
nccl,
Expand Down Expand Up @@ -279,7 +279,13 @@ impl ShareDB {
let _ = cudarc::driver::sys::lib().cuMemHostRegister_v2(
db.code_gr.limb_0[device_index] as *mut _,
max_size * self.code_length,
0,
CU_MEMHOSTALLOC_PORTABLE,
);

let _ = cudarc::driver::sys::lib().cuMemHostRegister_v2(
db.code_gr.limb_1[device_index] as *mut _,
max_size * self.code_length,
CU_MEMHOSTALLOC_PORTABLE,
);
}
}
Expand Down

0 comments on commit fc0b726

Please sign in to comment.