6 Commits

Author SHA1 Message Date
Tianqi Chen bcc48303c4 [REFACTOR][S-TIR] Move tvm/support/random_engine.h → tvm/s_tir/random_engine.h (#19475)
## Summary

`LinearCongruentialEngine` is used only by s_tir's meta-schedule and
schedule primitives — no other consumer exists in `src/`, `include/`, or
`apps/`. `tvm/support/` should stay reserved for genuinely cross-cutting
utilities; an s_tir-only RNG belongs under s_tir.

- Move `include/tvm/support/random_engine.h` →
`include/tvm/s_tir/random_engine.h`
- Rename namespace `tvm::support` → `tvm::s_tir` and update header guard
- Update 5 s_tir consumer `#include` + namespace references, plus the
cpptest

Class shape (members, behavior, `std::uniform_random_bit_generator`
interface) is unchanged. No ABI impact.
2026-04-29 17:29:54 -04:00
Tianqi Chen f533d0b3c1 [REFACTOR] Migrate CHECK macros to tvm-ffi ones (#18803) 2026-02-21 09:00:44 -05:00
Tianqi Chen a531d170b9 [REFACTOR] Phase out relay c++ components (#17660)
* cleanup relay c++

* [REFACTOR] Phase out relay c++ components

This PR phases out the relay C++ components and
simplifies the overall codegen runtime logic.

---------

Co-authored-by: Siyuan Feng <hzfengsy@sjtu.edu.cn>
2025-02-17 22:21:37 +08:00
Christopher Sidebottom b77a7d4fc6 Apply CPPLint to C++ Unit Tests (#8827)
This change enables `cpplint` for the tests in `tests/cpp` and corrects any current linting errors. I had to use `NOLINT` in some of the PackedFunc tests due to a bug (see: https://github.com/cpplint/cpplint/issues/131) in CPPLint where `int(int)` is picked up as a cast rather than a nameless argument.
2021-08-24 13:45:52 -07:00
Christopher Sidebottom 356879d4c3 Use CTest for C++ tests (#8809)
By using the `gtest_discover_tests` CMake macro the CPP and CRT tests can be configured to build binaries with a single test runner each. Once CTest has information about tests it can be used in IDE extensions such as [CMake Test Explorer](https://marketplace.visualstudio.com/items?itemName=fredericbonnet.cmake-test-adapter).

`ctest` can also run tests in parallel using the `-j` flag, which could be interesting in future.
2021-08-23 17:08:18 -07:00
Xiyou Zhou dc5da054da [Support] Linear Congruential Random Engine (#8642)
* Add linear congruential engine.

* Fix typo.

* Minor fix.

* Fix comments and intros.

* Change to unsigned.

* Minor comment fix.

* Fix unsigned rand state to signed.
2021-08-05 17:07:45 -07:00