Skip to content

Commit 7e5943a

Browse files
committed
[GR-70009] Use predefined guest-vm for polybench benchmarks.
PullRequest: graal/22217
2 parents ab2fbe4 + db92b11 commit 7e5943a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Jsonnet files should not include this file directly but use ci/common.jsonnet instead."
55
],
66

7-
"mx_version": "7.62.0",
7+
"mx_version": "7.62.1",
88

99
"COMMENT.jdks": "When adding or removing JDKs keep in sync with JDKs in ci/common.jsonnet",
1010
"jdks": {

truffle/mx.truffle/mx_polybench/model.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,15 @@ def _infer_host_vm_config(self, bm_suite_args, dims):
494494

495495
def _infer_guest_vm_info(self, benchmarks, bm_suite_args) -> Tuple[str, str]:
496496
resolved_benchmark = self._resolve_current_benchmark(benchmarks)
497-
guest_vm = "-".join(sorted(resolved_benchmark.suite.languages))
497+
# Eventually this must check for exact match for each language and map it to the corresponding guest-vm
498+
# Here, we just infer it based on the presence of some language in a list. This must be made more robust
499+
# and more generic to handle the case when multiple languages are used.
500+
if "js" in resolved_benchmark.suite.languages:
501+
guest_vm = "graal-js"
502+
elif "python" in resolved_benchmark.suite.languages:
503+
guest_vm = "graalpython"
504+
else:
505+
guest_vm = "none"
498506
if "--engine.Compilation=false" in self.runArgs(
499507
bm_suite_args
500508
) or "-Dpolyglot.engine.Compilation=false" in self.vmArgs(bm_suite_args):

0 commit comments

Comments
 (0)