Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure execution times of streams #214

Merged
merged 12 commits into from
Aug 8, 2024
10 changes: 2 additions & 8 deletions iris-mpc-gpu/src/helpers/device_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,11 @@ impl DeviceManager {
}
}

pub fn create_events(&self, blocking_sync: bool) -> Vec<CUevent> {
let flags = if blocking_sync {
CUevent_flags::CU_EVENT_BLOCKING_SYNC
} else {
CUevent_flags::CU_EVENT_DEFAULT
};

pub fn create_events(&self) -> Vec<CUevent> {
let mut events = vec![];
for idx in 0..self.devices.len() {
self.devices[idx].bind_to_thread().unwrap();
events.push(event::create(flags).unwrap());
events.push(event::create(CUevent_flags::CU_EVENT_DEFAULT).unwrap());
}
events
}
Expand Down
Loading
Loading