Skip to content

Commit 300e464

Browse files
roxx30198ZzEeKkAa
authored andcommitted
Added Rodinia infra
1 parent 3b6fa76 commit 300e464

File tree

11 files changed

+38
-1
lines changed

11 files changed

+38
-1
lines changed

.github/workflows/build_and_run.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,8 @@ jobs:
176176
- name: Run benchmarks
177177
run: dpbench -i ${{env.WORKLOADS}} run -r2 --no-print-results || exit 1
178178

179+
- name: Run rodinia benchmarks
180+
run: dpbench -i ${{env.WORKLOADS}} --last-run run -r2 --no-print-results --rodinia --no-dpbench|| exit 1
181+
179182
- name: Generate report
180183
run: dpbench -i ${{env.WORKLOADS}} report || exit 1

.github/workflows/conda-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ jobs:
195195
run: |
196196
dpbench -i numpy -b azimint_hist run --npbench
197197
198+
- name: Run rodinia benchmark
199+
run: |
200+
dpbench run --rodinia --no-dpbench --no-validate -r 1
201+
198202
upload_anaconda:
199203
name: Upload dppy/label/dev ['${{ matrix.os }}', python='${{ matrix.python }}']
200204

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ repos:
5050
hooks:
5151
- id: pydocstyle
5252
# TODO: add packages one by one to enforce pydocstyle eventually
53-
files: (^dpbench/config/|^scripts/|^dpbench/console/|^dpbench/infrastructure/benchmark_runner.py|^dpbench/infrastructure/benchmark_validation.py)
53+
files: (^dpbench/config/|^scripts/|^dpbench/console/|^dpbench/infrastructure/benchmark_runner.py|^dpbench/infrastructure/benchmark_validation.py|^dpbench/benchmarks/rodinia)
5454
args: ["--convention=google"]
5555
# D417 does not work properly:
5656
# https://github.com/PyCQA/pydocstyle/issues/459

dpbench/benchmarks/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ add_subdirectory(kmeans)
1010
add_subdirectory(knn)
1111
add_subdirectory(gpairs)
1212
add_subdirectory(dbscan)
13+
add_subdirectory(rodinia)
1314

1415
# generate dpcpp version into config
1516
set(FILE ${CMAKE_SOURCE_DIR}/dpbench/configs/framework_info/dpcpp.toml)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
2+
#
3+
# SPDX-License-Identifier: Apache-2.0

dpbench/config/reader.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def read_configs( # noqa: C901: TODO: move modules into config
2828
no_dpbench: bool = False,
2929
with_npbench: bool = False,
3030
with_polybench: bool = False,
31+
with_rodinia: bool = False,
3132
load_implementations: bool = True,
3233
) -> Config:
3334
"""Read all configuration files and populate those settings into Config.
@@ -85,6 +86,18 @@ def read_configs( # noqa: C901: TODO: move modules into config
8586
)
8687
)
8788

89+
if with_rodinia:
90+
modules.append(
91+
Module(
92+
benchmark_configs_path=os.path.join(
93+
dirname, "../configs/bench_info/rodinia"
94+
),
95+
benchmark_configs_recursive=True,
96+
benchmarks_module="dpbench.benchmarks.rodinia",
97+
path=os.path.join(dirname, "../benchmarks/rodinia"),
98+
)
99+
)
100+
88101
for mod in modules:
89102
if mod.benchmark_configs_path != "":
90103
read_benchmarks(
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
2+
#
3+
# SPDX-License-Identifier: Apache-2.0

dpbench/console/_namespace.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Namespace(argparse.Namespace):
1919
dpbench: bool
2020
npbench: bool
2121
polybench: bool
22+
rodinia: bool
2223
print_results: bool
2324
validate: bool
2425
run_id: Union[int, None]

dpbench/console/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def execute_config(args: Namespace):
4343
implementations=args.implementations,
4444
with_npbench=True,
4545
with_polybench=True,
46+
with_rodinia=True,
4647
)
4748

4849
color_output = args.color

dpbench/console/run.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ def add_run_arguments(parser: argparse.ArgumentParser):
5858
default=False,
5959
help="Set if run polybench benchmarks.",
6060
)
61+
parser.add_argument(
62+
"--rodinia",
63+
action=argparse.BooleanOptionalAction,
64+
default=False,
65+
help="Set if run rodinia benchmarks.",
66+
)
6167
parser.add_argument(
6268
"-r",
6369
"--repeat",
@@ -135,6 +141,7 @@ def execute_run(args: Namespace, conn: sqlalchemy.Engine):
135141
no_dpbench=not args.dpbench,
136142
with_npbench=args.npbench,
137143
with_polybench=args.polybench,
144+
with_rodinia=args.rodinia,
138145
)
139146

140147
if args.all_implementations:

0 commit comments

Comments
 (0)