You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "tqchen (via GitHub)" <gi...@apache.org> on 2026/04/29 15:10:01 UTC
[PR] [REFACTOR][RUNTIME] Phase out include/tvm/runtime/threading_backend.h [tvm]
tqchen opened a new pull request, #19469:
URL: https://github.com/apache/tvm/pull/19469
## Summary
`include/tvm/runtime/threading_backend.h` has been in the public include tree without
ever serving a public-API purpose. All consumers — five `.cc` files in `src/runtime/`
and one C++ unit test — are entirely runtime-internal. Moving the header to
`src/runtime/` continues the internal-headers cleanup pattern established by the
`module.h` and `profiling.h` phase-outs.
## Changes
- `git mv include/tvm/runtime/threading_backend.h → src/runtime/threading_backend.h`
- `src/runtime/threading_backend.cc`, `src/runtime/thread_pool.cc` → `#include "threading_backend.h"`
- `src/runtime/contrib/random/random.cc`, `mt_random_engine.cc` → `#include "../../threading_backend.h"`
- `tests/cpp/threading_backend_test.cc` → `#include "../../src/runtime/threading_backend.h"`
- `TVM_RUNTIME_DLL` annotations are preserved; symbol export and ABI are unchanged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [REFACTOR][RUNTIME] Phase out include/tvm/runtime/threading_backend.h [tvm]
Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on code in PR #19469:
URL: https://github.com/apache/tvm/pull/19469#discussion_r3162077279
##########
src/runtime/contrib/random/random.cc:
##########
@@ -24,10 +24,10 @@
#include <tvm/ffi/reflection/registry.h>
#include <tvm/runtime/data_type.h>
#include <tvm/runtime/logging.h>
-#include <tvm/runtime/threading_backend.h>
#include <algorithm>
+#include "../../threading_backend.h"
Review Comment:

The include `../../threading_backend.h` appears to be unused in this file. Given that this file also includes `mt_random_engine.cc` (where the header is also unused), this include can be safely removed to keep the dependencies clean.
##########
src/runtime/contrib/random/mt_random_engine.cc:
##########
@@ -25,13 +25,13 @@
#include <tvm/runtime/device_api.h>
#include <tvm/runtime/logging.h>
#include <tvm/runtime/tensor.h>
-#include <tvm/runtime/threading_backend.h>
#include <algorithm>
#include <ctime>
#include <random>
#include <thread>
+#include "../../threading_backend.h"
Review Comment:

The include `../../threading_backend.h` appears to be unused in this file. Since this PR focuses on refactoring and cleaning up the usage of this header, it should be removed if it is not required for the compilation of this unit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [REFACTOR][RUNTIME] Phase out include/tvm/runtime/threading_backend.h [tvm]
Posted by "spectrometerHBH (via GitHub)" <gi...@apache.org>.
spectrometerHBH merged PR #19469:
URL: https://github.com/apache/tvm/pull/19469
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org