mirror of
https://github.com/zml/zml.git
synced 2026-11-16 19:11:09 +00:00
pjrtx.zig was mean to be a ZML specific wrapper over pjrt.zig. But pjrt.zig in its current form is pretty usable without wrapper, the extra layer of indirection is IMHO confusing because it mostly transfer the calls directly to pjrt.zig but make some call suspending. I moved the few helpers left in pjrtx.zig where they are used, ie `pjrtx.Buffer.bufferFromHostBuffer`-> in `buffer.Buffer.from` `pjrtx.Client.compile` -> in `module.compileModuleToPjrtExecutable` `pjrtx.Event.await` -> `zml.Platform.awaitEvent()` This also fix a bug in `pjrtx.Event.await` which was blocking for the event before suspending for the event. |
History
|
|
|---|---|---|
| .. | ||
| async.zig | ||
| BUILD.bazel | ||