We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42338f1 commit 5a46969Copy full SHA for 5a46969
extension/android/jni/jni_layer_llama.cpp
@@ -100,12 +100,9 @@ class ExecuTorchLlamaJni
100
// Reserve 1 thread for the main thread.
101
uint32_t num_performant_cores =
102
torch::executorch::cpuinfo::get_num_performant_cores() - 1;
103
- if (num_performant_cores <= 0) {
104
- num_performant_cores = 1;
105
- }
106
- ET_LOG(
107
- Info, "Resetting threadpool with num threads = %d", num_performant_cores);
108
if (num_performant_cores > 0) {
+ ET_LOG(
+ Info, "Resetting threadpool to %d threads", num_performant_cores);
109
torch::executorch::threadpool::get_threadpool()->_unsafe_reset_threadpool(
110
num_performant_cores);
111
}
0 commit comments