vfdff commented on issue #17698:
URL: https://github.com/apache/tvm/issues/17698#issuecomment-2693223556
* I try to use os.path.abspath to get the path of libtvm.so, but in fact
there is no such file for the return value
(/py311-tts) root@998ee80b761b:/home/zhongyunde/source/test/ansor# python
getpath.py
library path: /home/zhongyunde/source/test/ansor/libtvm.so
(/py311-tts) @998ee80b761b:/home/zhongyunde/source/test/ansor# ls
/home/zhongyunde/source/test/ansor/libtvm.so
ls: cannot access '/home/zhongyunde/source/test/ansor/libtvm.so': No such
file or directory
**file getpath.py**
```
import ctypes
import os
libc = ctypes.CDLL("libtvm.so") # Linux 示例
libc_path = os.path.abspath(libc._name)
print(f"library path: {libc_path}")
```
--
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]