File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ size_t ThreadPool::get_thread_count() const {
62
62
}
63
63
64
64
bool ThreadPool::_unsafe_reset_threadpool (uint32_t new_thread_count) {
65
+ ET_LOG (Info, " Resetting threadpool to %u threads." , new_thread_count);
66
+
65
67
// No need to do anything if the count is same or 0
66
68
if (new_thread_count == get_thread_count () || new_thread_count == 0 ) {
67
69
return true ;
@@ -126,8 +128,7 @@ ThreadPool* get_threadpool() {
126
128
auto result = cpuinfo_get_processors_count ();
127
129
#else
128
130
// Set threads equal to the number of performance cores.
129
- auto result =
130
- ::executorch::extension::cpuinfo::get_num_performant_cores ();
131
+ auto result = ::executorch::extension::cpuinfo::get_num_performant_cores ();
131
132
#endif
132
133
133
134
/*
@@ -138,7 +139,7 @@ ThreadPool* get_threadpool() {
138
139
* tricky to detect if we are running under tsan, for now capping the
139
140
* default threadcount to the tsan limit unconditionally.
140
141
*/
141
- constexpr int tsan_thread_limit = 63 ;
142
+ constexpr unsigned int tsan_thread_limit = 63 ;
142
143
return std::min (result, tsan_thread_limit);
143
144
})();
144
145
You can’t perform that action at this time.
0 commit comments