kparzysz-quic commented on a change in pull request #5492:
URL: https://github.com/apache/incubator-tvm/pull/5492#discussion_r421616268
##########
File path: src/runtime/threading_backend.cc
##########
@@ -255,6 +255,17 @@ int MaxConcurrency() {
max_concurrency = std::thread::hardware_concurrency();
#if defined(_M_X64) || defined(__x86_64__)
max_concurrency /= 2; // ignore hyper-threading
+#elif defined(__hexagon__)
+ // With unsigned PDs, getting the number of available hardware threads
+ // is not supported in earlier versions of QuRT. In such cases assume 4.
+ // If running on simulator, set max_concurrency to 1.
+ if (max_concurrency == 0) {
+ if (dlsym(RTLD_DEFAULT, "running_in_sim_dev_17bc90206f6cf5a7")) {
+ max_concurrency = 1;
+ } else {
+ max_concurrency = 4;
Review comment:
It's already set above. We only enter here if we get 0 (which happens
with unsigned PDs). It doesn't affect signed PDs.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]