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 @@ -126,8 +126,7 @@ ThreadPool* get_threadpool() {
126
126
auto result = cpuinfo_get_processors_count ();
127
127
#else
128
128
// Set threads equal to the number of performance cores.
129
- auto result =
130
- ::executorch::extension::cpuinfo::get_num_performant_cores ();
129
+ auto result = ::executorch::extension::cpuinfo::get_num_performant_cores ();
131
130
#endif
132
131
133
132
/*
@@ -138,7 +137,7 @@ ThreadPool* get_threadpool() {
138
137
* tricky to detect if we are running under tsan, for now capping the
139
138
* default threadcount to the tsan limit unconditionally.
140
139
*/
141
- constexpr int tsan_thread_limit = 63 ;
140
+ constexpr unsigned int tsan_thread_limit = 63 ;
142
141
return std::min (result, tsan_thread_limit);
143
142
})();
144
143
You can’t perform that action at this time.
0 commit comments