diff options
author | Andrzej Janik <[email protected]> | 2021-07-06 00:16:46 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-07-06 00:16:46 +0200 |
commit | 58fb8a234c338ace4a205c9847df740841701bde (patch) | |
tree | 479593bd3dfc8a666c53888929f4743365062807 /ptx | |
parent | 2c6bee4955f64b8a5cba9872093b2648cfd6bea8 (diff) | |
download | ZLUDA-58fb8a234c338ace4a205c9847df740841701bde.tar.gz ZLUDA-58fb8a234c338ace4a205c9847df740841701bde.zip |
Synchronize through barrier
Diffstat (limited to 'ptx')
-rw-r--r-- | ptx/src/test/spirv_run/mod.rs | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/ptx/src/test/spirv_run/mod.rs b/ptx/src/test/spirv_run/mod.rs index 4f8b252..226043f 100644 --- a/ptx/src/test/spirv_run/mod.rs +++ b/ptx/src/test/spirv_run/mod.rs @@ -283,10 +283,26 @@ fn run_spirv<Input: From<u8> + Copy + Debug, Output: From<u8> + Copy + Debug + D )?;
let inp_b = ze::DeviceBuffer::<Input>::new(&ctx, dev, cmp::max(input.len(), 1))?;
let out_b = ze::DeviceBuffer::<Output>::new(&ctx, dev, cmp::max(output.len(), 1))?;
- let event_pool = ze::EventPool::new(&ctx, 3, Some(&[dev]))?;
- let ev0 = ze::Event::new(&event_pool, 0)?;
- let ev1 = ze::Event::new(&event_pool, 1)?;
- let ev2 = ze::Event::new(&event_pool, 2)?;
+ let event_pool =
+ ze::EventPool::new(&ctx, ze::sys::ze_event_pool_flags_t(0), 3, Some(&[dev]))?;
+ let ev0 = ze::Event::new(
+ &event_pool,
+ 0,
+ ze::sys::ze_event_scope_flags_t(0),
+ ze::sys::ze_event_scope_flags_t(0),
+ )?;
+ let ev1 = ze::Event::new(
+ &event_pool,
+ 1,
+ ze::sys::ze_event_scope_flags_t(0),
+ ze::sys::ze_event_scope_flags_t(0),
+ )?;
+ let ev2 = ze::Event::new(
+ &event_pool,
+ 2,
+ ze::sys::ze_event_scope_flags_t(0),
+ ze::sys::ze_event_scope_flags_t(0),
+ )?;
{
let init_evs = [&ev0, &ev1];
kernel.set_group_size(1, 1, 1)?;
|