Skip to content

Commit

Permalink
Use experimental flag with nopybench & npbench
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzEeKkAa committed May 3, 2024
1 parent 2838206 commit ee1357c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ jobs:
# we want to make sure that configuration files are geting populated
- name: Run npbench benchmark
run: |
dpbench -i numpy -b azimint_hist run --npbench --precision=${{matrix.precision}}
dpbench -i numpy -b azimint_hist run --experimental-npbench --precision=${{matrix.precision}}
- name: Run rodinia benchmark
run: |
dpbench run --rodinia --no-dpbench --no-validate -r 1 --precision=${{matrix.precision}}
dpbench run --experimental-rodinia --no-dpbench --no-validate -r 1 --precision=${{matrix.precision}}
upload_anaconda:
name: Upload dppy/label/dev ['${{ matrix.os }}', python='${{ matrix.python }}']
Expand Down
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ SPDX-License-Identifier: Apache-2.0
4. All available options are available using `dpbench --help` and `dpbench <command> --help`:

```
usage: dpbench [-h] [-b [BENCHMARKS]] [-i [IMPLEMENTATIONS]] [-a | --all-implementations | --no-all-implementations] [--version] [-r [RUN_ID]] [--last-run | --no-last-run]
[-d [RESULTS_DB]] [--log-level [{critical,fatal,error,warning,info,debug}]]
{run,report,config} ...
usage: dpbench [-h] [-b [BENCHMARKS]] [-i [IMPLEMENTATIONS]] [-a | --all-implementations | --no-all-implementations] [--version] [-r [RUN_ID]] [--last-run | --no-last-run] [-d [RESULTS_DB]]
[--log-level [{critical,fatal,error,warning,info,debug}]]
{run,report,config} ...

positional arguments:
{run,report,config}
Expand All @@ -131,50 +131,52 @@ SPDX-License-Identifier: Apache-2.0
-i [IMPLEMENTATIONS], --implementations [IMPLEMENTATIONS]
Comma separated list of implementations. Use --all-implementations to load all available implementations.
-a, --all-implementations, --no-all-implementations
If set, all available implementations will be loaded. (default: False)
If set, all available implementations will be loaded.
--version show program's version number and exit
-r [RUN_ID], --run-id [RUN_ID]
run_id to perform actions on. Use --last-run to use latest available run, or leave empty to create new one.
--last-run, --no-last-run
Sets run_id to the latest run_id from the database. (default: False)
Sets run_id to the latest run_id from the database.
-d [RESULTS_DB], --results-db [RESULTS_DB]
Path to a database to store results.
--log-level [{critical,fatal,error,warning,info,debug}]
Log level.
```
```
usage: dpbench run [-h] [-p [{S,M,L}]] [-s | --validate | --no-validate] [--dpbench | --no-dpbench] [--npbench | --no-npbench] [--polybench | --no-polybench] [-r [REPEAT]] [-t [TIMEOUT]]
[--precision [{single,double}]] [--print-results | --no-print-results] [--save | --no-save] [--sycl-device [SYCL_DEVICE]]
[--skip-expected-failures | --no-skip-expected-failures]
usage: dpbench run [-h] [-p [{S,M16Gb,M,L}]] [-s | --validate | --no-validate] [--dpbench | --no-dpbench] [--experimental-npbench | --no-experimental-npbench] [--experimental-polybench | --no-experimental-polybench]
[--experimental-rodinia | --no-experimental-rodinia] [-r [REPEAT]] [-t [TIMEOUT]] [--precision [{single,double}]] [--print-results | --no-print-results] [--save | --no-save] [--sycl-device [SYCL_DEVICE]]
[--skip-expected-failures | --no-skip-expected-failures]
Subcommand to run benchmark executions.
options:
-h, --help show this help message and exit
-p [{S,M,L}], --preset [{S,M,L}]
-p [{S,M16Gb,M,L}], --preset [{S,M16Gb,M,L}]
Preset to use for benchmark execution.
-s, --validate, --no-validate
Set if the validation will be run for each benchmark. (default: True)
Set if the validation will be run for each benchmark.
--dpbench, --no-dpbench
Set if run dpbench benchmarks. (default: True)
--npbench, --no-npbench
Set if run npbench benchmarks. (default: False)
--polybench, --no-polybench
Set if run polybench benchmarks. (default: False)
Set if run dpbench benchmarks.
--experimental-npbench, --no-experimental-npbench
Set if run npbench benchmarks.
--experimental-polybench, --no-experimental-polybench
Set if run polybench benchmarks.
--experimental-rodinia, --no-experimental-rodinia
Set if run rodinia benchmarks.
-r [REPEAT], --repeat [REPEAT]
Number of repeats for each benchmark.
-t [TIMEOUT], --timeout [TIMEOUT]
Timeout time in seconds for each benchmark execution.
--precision [{single,double}]
Data precision to use for array initialization.
--print-results, --no-print-results
Show the result summary or not (default: True)
--save, --no-save Either to save execution into database. (default: True)
Show the result summary or not
--save, --no-save Either to save execution into database.
--sycl-device [SYCL_DEVICE]
Sycl device to overwrite for framework configurations.
--skip-expected-failures, --no-skip-expected-failures
Either to save execution into database. (default: True)
Either to save execution into database.
```
```
Expand Down
9 changes: 6 additions & 3 deletions dpbench/console/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,22 @@ def add_run_arguments(parser: argparse.ArgumentParser):
help="Set if run dpbench benchmarks.",
)
parser.add_argument(
"--npbench",
"--experimental-npbench",
dest="npbench",
action=argparse.BooleanOptionalAction,
default=False,
help="Set if run npbench benchmarks.",
)
parser.add_argument(
"--polybench",
"--experimental-polybench",
dest="polybench",
action=argparse.BooleanOptionalAction,
default=False,
help="Set if run polybench benchmarks.",
)
parser.add_argument(
"--rodinia",
"--experimental-rodinia",
dest="rodinia",
action=argparse.BooleanOptionalAction,
default=False,
help="Set if run rodinia benchmarks.",
Expand Down

0 comments on commit ee1357c

Please sign in to comment.