We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e422369 commit 5b6d246Copy full SHA for 5b6d246
samples/introduction/async_api/kernels/src/lib.rs
@@ -10,5 +10,5 @@ pub unsafe fn increment(g_data: *mut u32, inc_value: u32) {
10
+ cuda_std::thread::thread_idx().x) as usize;
11
12
let elem: &mut u32 = unsafe { &mut *g_data.add(idx) };
13
- *elem = *elem + inc_value;
+ *elem += inc_value;
14
}
0 commit comments