Skip to content

Commit 2cb5f70

Browse files
committed
[GR-67907] Migrate polybench gates to tiers.
PullRequest: graal/21675
2 parents 80d7490 + 134d397 commit 2cb5f70

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

vm/ci/ci_common/common-bench.jsonnet

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
5252
ENABLE_POLYBENCH_HPC: 'yes',
5353
POLYBENCH_HPC_EXTRA_HEADERS: '/cm/shared/apps/papi/papi-5.5.1/include',
5454
POLYBENCH_HPC_PAPI_LIB_DIR: '/cm/shared/apps/papi/papi-5.5.1/lib',
55-
} + if !std.objectHasAll(self, 'machine_name') then {} else if self.machine_name == 'e3' || self.machine_name == 'e4_36_256' then {LIBPFM_FORCE_PMU: 'amd64'} else if self.machine_name == 'x52' then {} else {},
55+
} + if !std.objectHasAll(self, 'machine_name') then {} else if std.count(['e3', 'e4_36_256', 'e4_8_64'], self.machine_name) > 0 then {LIBPFM_FORCE_PMU: 'amd64'} else if self.machine_name == 'x52' then {} else {},
5656
},
5757

5858
vm_bench_polybenchmarks_base(env): {
5959
base_cmd:: ['mx', '--env', env, '--dy', 'polybenchmarks'],
6060
},
6161

62-
vm_bench_polybenchmarks_linux_build: common.deps.svm + common.deps.truffleruby + common.deps.graalpy + vm.custom_vm + vm.vm_java_Latest + self.polybench_hpc_linux_common(shape='e4_36_256') + self.vm_bench_polybenchmarks_base(env='polybench-${VM_ENV}') + {
62+
vm_bench_polybenchmarks_linux_build: common.deps.svm + common.deps.truffleruby + common.deps.graalpy + vm.custom_vm + vm.vm_java_Latest + self.polybench_hpc_linux_common(shape='e4_8_64') + self.vm_bench_polybenchmarks_base(env='polybench-${VM_ENV}') + {
6363
setup+: [
6464
self.base_cmd + ['sforceimports'],
6565
],
@@ -80,7 +80,7 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
8080
},
8181

8282
# TODO (GR-60584): re-enable espresso polybench jobs once polybench is unchained
83-
vm_bench_polybenchmarks_linux_common(vm_config='jvm', is_gate=false, suite='default:~r[.*jar]', shape=null): common.deps.svm + common.deps.truffleruby + vm.custom_vm + vm.vm_java_Latest + self.polybench_hpc_linux_common(shape=shape) + self.vm_bench_polybenchmarks_base(env='polybench-${VM_ENV}') {
83+
vm_bench_polybenchmarks_linux_common(vm_config='jvm', is_gate=false, suite='default:~r[.*jar]', shape=null): common.deps.svm + common.deps.truffleruby + vm.custom_vm + vm.vm_java_Latest + self.polybench_hpc_linux_common(shape=shape) + self.vm_bench_polybenchmarks_base(env='polybench-${VM_ENV}') + (if is_gate then self.vm_bench_base(machine_name=null) else self.vm_bench_common) + {
8484
bench_cmd:: self.base_cmd + ['benchmark', '--results-file', self.result_file],
8585
setup+: [
8686
self.base_cmd + ['sforceimports'],
@@ -104,7 +104,7 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
104104
notify_emails+: if (is_gate) then [] else [ '[email protected]' ],
105105
teardown+: if (is_gate) then [] else [ $.vm_bench_common.upload ],
106106
timelimit: if (is_gate) then '1:00:00' else '1:30:00',
107-
} + (if is_gate then self.vm_bench_base(machine_name=null) else self.vm_bench_common),
107+
},
108108

109109
vm_bench_polybench_linux_common(env='polybench-${VM_ENV}', fail_fast=false, skip_machine=false): (if skip_machine then self.vm_bench_base(machine_name=null) else self.vm_bench_common) + common.deps.svm + common.deps.truffleruby + common.deps.graalpy + common.deps.wasm + vm.custom_vm {
110110
base_cmd:: ['mx', '--env', env],
@@ -125,7 +125,7 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
125125
notify_groups:: ['polybench'],
126126
},
127127

128-
vm_bench_polybench_hpc_linux_common(env, metric, benchmarks='*', polybench_vm_config='native-interpreter'): self.polybench_hpc_linux_common(shape='e4_36_256') + self.vm_bench_polybench_linux_common(env=env, fail_fast=false, skip_machine=true) + {
128+
vm_bench_polybench_hpc_linux_common(env, metric, benchmarks='*', polybench_vm_config='native-interpreter'): self.polybench_hpc_linux_common(shape='e4_8_64') + self.vm_bench_polybench_linux_common(env=env, fail_fast=false, skip_machine=true) + {
129129
machine_name_prefix:: "gate-",
130130
run+: [
131131
self.base_cmd + ['benchmark', 'polybench:'+benchmarks,
@@ -211,7 +211,7 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
211211
self.compiler_bench_cmd(vmConfig='native-standard') + ['--metric=partial-evaluation-time'],
212212
self.warmup_bench_cmd(vmConfig='native-standard') + ['--metric=one-shot'],
213213
],
214-
timelimit: '1:30:00',
214+
timelimit: '1:00:00',
215215
notify_groups: ['polybench'],
216216
},
217217

@@ -325,8 +325,8 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
325325
notify_groups:: ['javascript'],
326326
},
327327

328-
vm_common.vm_base('linux', 'amd64', 'gate') + self.vm_bench_polybenchmarks_linux_common(is_gate=true, shape='e4_36_256') + {name: 'gate-vm-' + vm.vm_setup.short_name + '-polybenchmarks-' + utils.jdk_and_hardware(self)},
329-
vm_common.vm_base('linux', 'amd64', 'gate') + self.vm_gate_polybench_linux + {name: 'gate-vm-' + vm.vm_setup.short_name + '-polybench-' + utils.jdk_and_hardware(self)},
328+
vm_common.vm_base('linux', 'amd64', 'tier3') + self.vm_bench_polybenchmarks_linux_common(is_gate=true, shape='e4_8_64') + {name: 'gate-vm-' + vm.vm_setup.short_name + '-polybenchmarks-' + utils.jdk_and_hardware(self)},
329+
vm_common.vm_base('linux', 'amd64', 'tier3') + self.vm_gate_polybench_linux + {name: 'gate-vm-' + vm.vm_setup.short_name + '-polybench-' + utils.jdk_and_hardware(self)},
330330
],
331331

332332
builds: utils.add_defined_in(builds, std.thisFile),

0 commit comments

Comments
 (0)