Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions zig/src/xpu/ze.zig
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ pub const Gpu = struct {
try check(gpus[0].api.zeEventPoolCreate(gpus[0].context, &.{ .flags = pool_host_visible, .count = @intCast(out_events.len) }, @intCast(gpus.len), &devs, &pool));
_ = try keep(&gpus[0].owned.pools, pool, gpus[0].api.zeEventPoolDestroy);
for (out_events, 0..) |*e, i| {
// signal=1 (DEVICE), wait=1 (DEVICE): cross-GPU synchronization without host round-trips
try check(gpus[0].api.zeEventCreate(pool, &.{ .index = @intCast(i), .signal = 1, .wait = 1 }, e));
// signal=2, wait=2 (ZE_EVENT_SCOPE_FLAG_DEVICE): peer cards wait on these, without host round-trips
try check(gpus[0].api.zeEventCreate(pool, &.{ .index = @intCast(i), .signal = 2, .wait = 2 }, e));
_ = try keep(&gpus[0].owned.events, e.*, gpus[0].api.zeEventDestroy);
}
}
Expand Down
Loading