summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2024-02-29 17:44:09 +0000
committerDavid Srbecky <dsrbecky@google.com>2024-03-01 02:06:31 +0000
commit7a490b995aa96270220862f486c40d1ff8bdd728 (patch)
tree9e0bdb64e5066c1cfc87b7cbad1c61e314d0aba3
parent902ee14fd6da336cd6b0899084d8f99035c4680f (diff)
downloadart-7a490b995aa96270220862f486c40d1ff8bdd728.tar.gz
Qemu: Use all CPU cores
Test: time art/test.py --target -r --ndebug --64 --optimizing Change-Id: Icbd7493bc5edaec9cc66dba785e92827494b0715
-rwxr-xr-xtest/testrunner/testrunner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testrunner/testrunner.py b/test/testrunner/testrunner.py
index 14fd0ca469..ab1098e1b0 100755
--- a/test/testrunner/testrunner.py
+++ b/test/testrunner/testrunner.py
@@ -316,7 +316,8 @@ def setup_test_env():
device_name = get_device_name()
if n_thread == 0:
# Use only part of the cores since fully loading the device tends to lead to timeouts.
- n_thread = max(1, int(get_target_cpu_count() * 0.75))
+ fraction = 1.0 if env.ART_TEST_ON_VM else 0.75
+ n_thread = max(1, int(get_target_cpu_count() * fraction))
if device_name == 'fugu':
n_thread = 1
else: