Return the path to TVM's own ``include/`` directory.
()
| 78 | |
| 79 | |
| 80 | def find_include_path() -> str: |
| 81 | """Return the path to TVM's own ``include/`` directory.""" |
| 82 | if ret := tvm_ffi_libinfo._resolve_and_validate( |
| 83 | paths=[ |
| 84 | _rel_top_directory() / "include", |
| 85 | _dev_top_directory() / "include", |
| 86 | ], |
| 87 | cond=lambda p: (p / "tvm" / "runtime").is_dir(), |
| 88 | ): |
| 89 | return ret |
| 90 | raise RuntimeError("Cannot find TVM include path.") |
| 91 | |
| 92 | |
| 93 | # The version is written by setuptools_scm into _version.py at build time |
nothing calls this directly
no test coverage detected
searching dependent graphs…