areusch opened a new issue #10374: URL: https://github.com/apache/tvm/issues/10374
[LegalizePackedCalls](https://github.com/apache/tvm/blob/main/src/tir/transforms/legalize_packed_calls.cc) pass doesn't construct well-formed DLTensors for intermediate tensors. This was a known issue before and many of these fields aren't referenced by generated kernels, so it's not so much of a problem. However, `device_id` is used when allocating workspace buffers. It is [not populated](https://github.com/apache/tvm/blob/main/tests/python/unittest/test_aot_legalize_packed_call.py#L59), so if any kernel uses `TVMBackendAllocWorkspace`, the `device_id` passed through to that call will be invalid and dependent on the prior content of the stack. I'm addressing this in #10283 . -- 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]
