Skip to content

v0.2.0: Mojo 1.0 stable migration

Latest

Choose a tag to compare

@andomeder andomeder released this 14 Aug 21:44

Full Changelog: v0.1.0...v0.2.0

Mojo 1.0 stable migration

This release migrates mojo-intel-gpu from Mojo 1.0.0b1 to the stable 1.0.0 compiler and updates the public API accordingly.

Changes:

  • Bump Mojo requirement to >=1.0.0 and switch package output to mojo precompile / .mojoc
  • Migrate all FFI and pointer code to stable 1.0 APIs (Pointer, unsafe_alloc, unsafe_free)
  • Add ctx.library() accessor; Kernel and buffers now borrow the shared Level Zero library instead of each opening their own
  • Add set_arg_float32/int32/uint32 helpers to Kernel
  • Add SPIR-V magic-number validation before zeModuleCreate
  • Add failure-mode and stress test suites
  • Remove dead driver_get wrapper and duplicate imports
  • Fix build-log size read as UInt64

Tested hardware:

  • Intel Arc B580 (Battlemage Xe2)

Prereqs:

  • Level Zero runtime (libze_loader.so)
  • Intel GPU with Level Zero support

Migration notes:

  • mojo package -> mojo precompile
  • .mojopkg -> .mojoc