echuraev opened a new pull request, #19924:
URL: https://github.com/apache/tvm/pull/19924

   A tvm_callback_metal_compile used purely for debugging/inspection may return 
the MSL source unchanged. Previously, merely registering the callback forced 
the module format to "metallib", so the runtime tried to load the text source 
as a binary metallib and failed with "Invalid library file" (issue #18798).
   
   The callback may now return a (payload, format) pair to declare the payload 
format. A bare str/bytes return keeps the legacy metallib behavior. All kernels 
of a module share a single declared format, so a callback that mixes formats 
across kernels (including a legacy metallib return alongside a (payload, 
"metal") return) is rejected at codegen time instead of producing a module that 
fails to load.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to