Skip to content

Commit

Permalink
update submod
Browse files Browse the repository at this point in the history
  • Loading branch information
shiinamiyuki committed Nov 22, 2023
1 parent dc8cf05 commit 76cb9a1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions luisa_compute/examples/vecadd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,4 @@ fn main() {
kernel.dispatch([1024, 1, 1], &z);
let z_data = z.view(..).copy_to_vec();
println!("{:?}", &z_data[0..16]);
{
let s = device.default_stream();
let t = std::time::Instant::now();
let times = 1000;
let s = s.scope();
for _ in 0..times {

s.submit_with_callback([], ||{
std::hint::black_box(());
});
s.synchronize();
}
let elapsed = t.elapsed().as_micros();
println!("{} us", elapsed as f32 / times as f32);
}
}

0 comments on commit 76cb9a1

Please sign in to comment.