@@ -3,8 +3,8 @@ name: tir-test
33description : Run TVM's in-tree TIRx tests and tirx-kernels import and correctness checks.
44---
55
6- Run the compiler suite in ` tirx/tests/python/tirx/ ` , using the ` tvm_tirx ` package
7- in ` tirx/python/ ` , together with the downstream correctness test in
6+ Run the compiler suite in ` 3rdparty/tvm- tirx/tests/python/tirx/` , using the ` tvm_tirx ` package
7+ in ` 3rdparty/tvm- tirx/python/` , together with the downstream correctness test in
88` tests/python/tirx/test_tirx_kernels_registry_correctness.py ` .
99
1010Both tirx-kernels import gates and its correctness coverage are enabled by
@@ -25,9 +25,9 @@ Run all commands below in the same Bash shell from the TVM repository root.
2525 export TIR_TEST_XDIST_WORKERS=" ${TIR_TEST_XDIST_WORKERS:- 16} "
2626 export TIR_TEST_WITH_KERNELS=" ${TIR_TEST_WITH_KERNELS:- 1} "
2727
28- [[ -d " $TIR_TEST_TVM_ROOT /tirx/python/tvm_tirx" &&
29- -d " $TIR_TEST_TVM_ROOT /tirx/tests/python/tirx" ]] || {
30- echo " run from the TVM repository root containing tirx/" >&2
28+ [[ -d " $TIR_TEST_TVM_ROOT /3rdparty/tvm- tirx/python/tvm_tirx" &&
29+ -d " $TIR_TEST_TVM_ROOT /3rdparty/tvm- tirx/tests/python/tirx" ]] || {
30+ echo " run from the TVM repository root containing 3rdparty/tvm- tirx/" >&2
3131 exit 2
3232 }
3333 [[ " $TIR_TEST_WITH_KERNELS " == 0 || " $TIR_TEST_WITH_KERNELS " == 1 ]] || {
@@ -89,7 +89,7 @@ Run all commands below in the same Bash shell from the TVM repository root.
8989 export CUDA_VISIBLE_DEVICES
9090 CUDA_VISIBLE_DEVICES=" $( IFS=,; printf ' %s' " ${TIR_TEST_SELECTED_GPUS[*]} " ) "
9191 # Preserve reference packages and other paths supplied by branch-shell.
92- export PYTHONPATH=" ${TIR_TEST_TVM_ROOT} /.local/python:${TIR_TEST_TVM_ROOT} /tirx/python:${TIR_TEST_TVM_ROOT} /python:${PYTHONPATH:- } "
92+ export PYTHONPATH=" ${TIR_TEST_TVM_ROOT} /.local/python:${TIR_TEST_TVM_ROOT} /3rdparty/tvm- tirx/python:${TIR_TEST_TVM_ROOT} /python:${PYTHONPATH:- } "
9393 export TVM_LIBRARY_PATH=" ${TIR_TEST_TVM_ROOT} /build/lib"
9494 export TVM_TIRX_LIBRARY_PATH=" ${TIR_TEST_TVM_ROOT} /build/lib"
9595
@@ -111,7 +111,7 @@ Run all commands below in the same Bash shell from the TVM repository root.
111111 from tvm_tirx.base import _LOADED_LIBS, _RUNTIME_ONLY
112112
113113 root = Path(os.environ["TIR_TEST_TVM_ROOT"])
114- assert Path(tvm_tirx.__file__).resolve().is_relative_to(root / "tirx/python"), (
114+ assert Path(tvm_tirx.__file__).resolve().is_relative_to(root / "3rdparty/tvm- tirx/python"), (
115115 f"imported another TIRx worktree: {tvm_tirx.__file__}"
116116 )
117117 assert not _RUNTIME_ONLY, "build the TIRx compiler before running its tests"
@@ -147,14 +147,14 @@ Run all commands below in the same Bash shell from the TVM repository root.
147147 `TIR_TEST_NUM_GPUS=4` to cap the count or `TIR_TEST_GPUS=3,4,5,6` to override
148148 selection with exact physical IDs.
149149
150- Use dependencies compatible with `tirx/pyproject.toml`. A non-editable FFI
150+ Use dependencies compatible with `3rdparty/tvm- tirx/pyproject.toml`. A non-editable FFI
151151 installation in `.local/python/` takes priority over the inherited environment.
152152 If native libraries are missing or stale, build this worktree with the same
153153 `PYTHONPATH` before testing.
154154
1551552. Run downstream import gates and select the full test coverage:
156156 ```bash
157- TIR_TEST_PATHS=(tirx/tests/python/tirx/)
157+ TIR_TEST_PATHS=(3rdparty/tvm- tirx/tests/python/tirx/)
158158 if [[ "$TIR_TEST_WITH_KERNELS" == 1 ]]; then
159159 TIR_TEST_KERNELS_ROOT="${TIR_TEST_KERNELS_ROOT:-$(dirname "$TIR_TEST_TVM_ROOT")/tirx-kernels}"
160160 [[ -d "$TIR_TEST_KERNELS_ROOT/tirx_kernels" ]] || {
@@ -178,7 +178,7 @@ Run all commands below in the same Bash shell from the TVM repository root.
178178 "$PYTHON_BIN" -m pytest "${TIR_TEST_PATHS[@]}" -n "$TIR_TEST_XDIST_WORKERS" 2>&1 | tee "$TIR_TEST_LOG"
179179 ```
180180
181- `tirx/tests/python/tirx/conftest.py` uses `tvm_tirx.testing._pytest` to assign
181+ `3rdparty/tvm- tirx/tests/python/tirx/conftest.py` uses `tvm_tirx.testing._pytest` to assign
182182 each xdist worker's PyTorch current device round-robin across the visible
183183 GPUs. Tests that explicitly use `tvm_tirx.cuda(0)` still run on the first
184184 selected physical GPU.
0 commit comments