Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hexagon][testing] add test-skip logic; fixes #11737

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

cconvey
Copy link
Contributor

@cconvey cconvey commented Jun 15, 2022

  • Make the execution of benchmarks in benchmark_elemwise_add.py depend
    on two environment variables: ANDROID_SERIAL_NUMBER and
    TVM_FORCE_RUN_BENCHMARKS.

    By default, the benchmarks are skipped when the
    ANDROID_SERIAL_NUMBER environment variable has the value
    simulator. (Case is significant.)
    This can be overridden by setting the environment variable
    TVM_FORCE_RUN_BENCHMARKS to the value 1.

    Maintainer note: This is a (hopefully) temporary measure to prevent
    (time-consuming) benchmarking code from executing every time TVM's
    pre-commit CI hook runs.

  • Fix a bug where benchmark_elemwise_add.py was broken by an
    earlier change to the HexagonLauncherRPC class.

  • misc. small changes to
    tests/python/contrib/test_hexagon/benchmark_util.py.

cc @mehrdadh

@cconvey cconvey force-pushed the benchmark-tweak branch 2 times, most recently from a755f68 to da9ac8a Compare June 15, 2022 22:13
@github-actions github-actions bot requested a review from mehrdadh June 15, 2022 22:13
@cconvey
Copy link
Contributor Author

cconvey commented Jun 15, 2022

Updated commit message:

[hexagon][testing] add test-skip logic; fixes

  • Skip Hexagon benchmarks whenever the env. var ANDROID_SERIAL_NUMBER
    has the value simulator.

    This is a temporary hack to prevent the CI pre-commit hook from
    running benchmarks, due to the extra time required.

  • Fix a bug where the elementwise-add benchmark code was broken by
    an earlier change to the HexagonLauncherRPC class.

  • Rename benchmark_elemwise_add.py to test_benchmark_elemwise_add.py
    so that it's noticed by the CI test infrastructure.
    (CI tests are sometimes run in contexts other than the pre-commit
    hook.)

  • Miscellaneous small changes to
    tests/python/contrib/test_hexagon/benchmark_util.py.

@cconvey cconvey requested a review from mehrdadh June 16, 2022 15:29
Copy link
Member

@mehrdadh mehrdadh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cconvey Please fix the CI.

@cconvey cconvey force-pushed the benchmark-tweak branch 2 times, most recently from 52a43e5 to 52e26ef Compare June 16, 2022 20:48
- Skip Hexagon benchmarks whenever the env. var `ANDROID_SERIAL_NUMBER`
  has the value `simulator`.

  This is a temporary hack to prevent the CI pre-commit hook from
  running benchmarks, due to the extra time required.

- Fix a bug where the elementwise-add benchmark code was broken by
  an earlier change to the `HexagonLauncherRPC` class.

- Rename `benchmark_elemwise_add.py` to `test_benchmark_elemwise_add.py`
  so that it's noticed by the CI test infrastructure.
  (CI tests are sometimes run in contexts _other than_ the pre-commit
  hook.)

- Miscellaneous small changes to
  `tests/python/contrib/test_hexagon/benchmark_util.py`.
@mehrdadh mehrdadh merged commit 2ffd955 into apache:main Jun 17, 2022
blackkker pushed a commit to blackkker/tvm that referenced this pull request Jul 7, 2022
- Skip Hexagon benchmarks whenever the env. var `ANDROID_SERIAL_NUMBER`
  has the value `simulator`.

  This is a temporary hack to prevent the CI pre-commit hook from
  running benchmarks, due to the extra time required.

- Fix a bug where the elementwise-add benchmark code was broken by
  an earlier change to the `HexagonLauncherRPC` class.

- Rename `benchmark_elemwise_add.py` to `test_benchmark_elemwise_add.py`
  so that it's noticed by the CI test infrastructure.
  (CI tests are sometimes run in contexts _other than_ the pre-commit
  hook.)

- Miscellaneous small changes to
  `tests/python/contrib/test_hexagon/benchmark_util.py`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants