File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,7 @@ ThreadPool* get_threadpool() {
128128 auto result = cpuinfo_get_processors_count ();
129129#else
130130 // Set threads equal to the number of performance cores.
131- auto result =
132- ::executorch::extension::cpuinfo::get_num_performant_cores ();
131+ auto result = ::executorch::extension::cpuinfo::get_num_performant_cores ();
133132#endif
134133
135134 /*
@@ -140,7 +139,7 @@ ThreadPool* get_threadpool() {
140139 * tricky to detect if we are running under tsan, for now capping the
141140 * default threadcount to the tsan limit unconditionally.
142141 */
143- constexpr int tsan_thread_limit = 63 ;
142+ constexpr unsigned int tsan_thread_limit = 63 ;
144143 return std::min (result, tsan_thread_limit);
145144 })();
146145
You can’t perform that action at this time.
0 commit comments