MCPcopy Create free account
hub / github.com/apache/tvm / find_include_path

Function find_include_path

python/tvm/libinfo.py:80–90  ·  view source on GitHub ↗

Return the path to TVM's own ``include/`` directory.

()

Source from the content-addressed store, hash-verified

78
79
80def 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

Callers

nothing calls this directly

Calls 2

_rel_top_directoryFunction · 0.85
_dev_top_directoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…