Skip to content

Commit 88d6397

Browse files
committed
Now it should fix
1 parent 87dbb98 commit 88d6397

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

extension/android/jni/jni_layer_llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class ExecuTorchLlmJni : public facebook::jni::HybridClass<ExecuTorchLlmJni> {
149149
facebook::jni::alias_ref<jstring> data_path = nullptr) {
150150
#if defined(ET_USE_THREADPOOL)
151151
// Reserve 1 thread for the main thread.
152-
uint32_t num_performant_cores =
152+
int32_t num_performant_cores =
153153
::executorch::extension::cpuinfo::get_num_performant_cores() - 1;
154154
if (num_performant_cores > 0) {
155155
ET_LOG(Info, "Resetting threadpool to %d threads", num_performant_cores);

scripts/run_android_emulator.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ for i in {1..40}; do
2424
done &
2525

2626
adb logcat -c
27-
adb shell am instrument -w -r -e \
28-
class org.pytorch.executorch.LlmModuleInstrumentationTest,org.pytorch.executorch.ModuleE2ETest \
27+
adb shell am instrument -w -r \
2928
org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner >result.txt 2>&1
3029
adb logcat -d > logcat.txt
3130
adb shell dumpsys meminfo

0 commit comments

Comments
 (0)