The GitHub Actions job "CI" on tvm-ffi.git/orcjit-session-refactor has failed.
Run started by GitHub user cyx-6 (triggered by cyx-6).

Head commit for run:
7a2b8a53b59d122b858097fe85c319b7e5a245bc / Yaxing Cai <[email protected]>
[ORCJIT] Add shared session and high-level load_module

Add a process-wide shared execution session and a high-level load_module on
the tvm_ffi_orcjit addon, mirroring core tvm_ffi.load_module semantics. This
is the only public loading API: an object set is a unit — load all its objects
in one call, then look up functions on the returned tvm_ffi.Module.

- default_session(): leaked, process-wide shared ExecutionSession. The ORC
  runtime path is resolved once by the C++ singleton (GlobalDefault) calling
  the Python-registered tvm_ffi_orcjit.DefaultOrcRuntimePath hook.
- ExecutionSession.load_module(objects, name): loads one or more objects
  (path str/Path or in-memory bytes; single item or list) into one fresh
  JITDylib, injects context symbols eagerly, expands any embedded library
  binary into an import tree, and returns a plain tvm_ffi.Module. Dropping the
  module frees its JIT memory.
- Plain (non-recursive) session mutex serializes compound JITDylib operations;
  init/fini entries are drained under the lock and run after release, so a
  JIT'd constructor may re-enter the session. GetFunction is a pure lookup on
  the resolved (lock-free) path.
- Registered globals and the object key live under the tvm_ffi_orcjit
  namespace; the low-level create_library / add / set_link_order API is
  removed in favor of load_module.
- Harden the embedded library-binary parser: overflow-safe bounds, a reserve
  guard, CSR-structure validation, and null-module checks.
- cpp.build: copy a single object through instead of `ld -r`, which some
  system linkers use to stamp a nonzero sh_addr on zero-size sections
  (e.g. .note.GNU-stack), producing a JITLink block that overlaps in
  EHFrameEdgeFixer and breaks C++ (eh_frame) loads.

Also folds in earlier addon cleanups: hide static-linked archive symbols
and adopt numpydoc-style docstrings.

Report URL: https://github.com/apache/tvm-ffi/actions/runs/28892102242

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to