echuraev commented on code in PR #13158:
URL: https://github.com/apache/tvm/pull/13158#discussion_r1001364224
##########
src/runtime/threading_backend.cc:
##########
@@ -167,7 +169,9 @@ class ThreadGroup::Impl {
CPU_SET(id, &cpuset);
}
#if defined(__ANDROID__)
- sched_setaffinity(thread, sizeof(cpu_set_t), &cpuset);
+ if (sched_setaffinity(pthread_gettid_np(thread), sizeof(cpu_set_t),
&cpuset) != 0) {
Review Comment:
Just thinking how we can avoid such compilation error. Can we
[check](https://developer.android.com/ndk/reference/group/apilevels) Android
API version and for API>= 21 we will use `pthread_gettid_np` and in the
opposite case - another implementation?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]