LudovicoYIN commented on issue #18612: URL: https://github.com/apache/tvm/issues/18612#issuecomment-3766602680
I can reproduce this. The root cause is that InjectPTXLDG32 rewrites BufferStore even when the function has no Allocate, which leaves the temporary buffers uninitialized and leads to a segfault. I have a fix that ensures temp buffers are created when the rewrite is triggered (and inserted even if there is no Allocate), plus a target guard. After the fix, the CUDA case no longer segfaults (it now raises a normal VerifyMemory error instead). -- 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]
