Skip to content

Commit 381ae5d

Browse files
authored
Fix x86_64 emulator stuck issue and enable tests
Differential Revision: D73221882 Pull Request resolved: #10218
1 parent ef99fff commit 381ae5d

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
@@ -22,8 +22,7 @@ adb uninstall org.pytorch.executorch.test || true
2222
adb install -t android-test-debug-androidTest.apk
2323

2424
adb logcat -c
25-
adb shell am instrument -w -r -e \
26-
class org.pytorch.executorch.ModuleInstrumentationTest,org.pytorch.executorch.ModuleE2ETest \
25+
adb shell am instrument -w -r \
2726
org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner >result.txt 2>&1
2827
adb logcat -d > logcat.txt
2928
cat logcat.txt

0 commit comments

Comments
 (0)