Return the path to the ``libtvm_runtime`` shared library. Returns ------- path : str The resolved path to the TVM runtime shared library. Raises ------ RuntimeError If the runtime library cannot be found.
()
| 57 | |
| 58 | |
| 59 | def find_libtvm_runtime() -> str: |
| 60 | """Return the path to the ``libtvm_runtime`` shared library. |
| 61 | |
| 62 | Returns |
| 63 | ------- |
| 64 | path : str |
| 65 | The resolved path to the TVM runtime shared library. |
| 66 | |
| 67 | Raises |
| 68 | ------ |
| 69 | RuntimeError |
| 70 | If the runtime library cannot be found. |
| 71 | """ |
| 72 | candidate = tvm_ffi_libinfo._find_library_by_basename( |
| 73 | "tvm", "tvm_runtime", extra_lib_paths=package_lib_paths() |
| 74 | ) |
| 75 | if ret := tvm_ffi_libinfo._resolve_and_validate([candidate], cond=lambda _: True): |
| 76 | return ret |
| 77 | raise RuntimeError("Cannot find libtvm_runtime") |
| 78 | |
| 79 | |
| 80 | def find_include_path() -> str: |
nothing calls this directly
no test coverage detected
searching dependent graphs…