mikeseven opened a new issue, #12326:
URL: https://github.com/apache/tvm/issues/12326

   ### Expected behavior
   
   order of import should not matter
   
   ### Actual behavior
   
   ```python
   import tvm
   import torch
   ```
   
   At the end, the application quits with
   ```python
   free(): invalid pointer
   Aborted (core dumped)
   ```
   
   However, importing tvm **after** all other imports works
   ```python
   import torch
   import tvm
   ```
   To reproduce, there is no need to even do anything with tvm in the code!
   
   ### Environment
   
   TVM main branch, same error with latest tags too
   - same error built with or without cuda
   - same error built with `llvm-config --link-static` or without
   
   Ubuntu 20.04, x86 
   tested with clean conda environment with pytorch 1.11 and 1.12 + cudatoolkit
   


-- 
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]

Reply via email to