MIOpen icon indicating copy to clipboard operation
MIOpen copied to clipboard

Add custom cmake test wrapper which can get gtest_parallel and run a single-binary test with custom regexp

Open CAHEK7 opened this issue 1 year ago • 0 comments

In order to switch to a new test invocation scheme, described on the wiki, the current cmake test wrapper should be updated with the following functionality:

  1. generate custom regexp based on the input test configuration:
    • MIOPEN_TEST_ALL maps to Full tests if enabled and to Smoke otherwise
    • MIOPEN_TEST_FLOAT_ARG maps to a proper test datatype suffix
    • DBSYNC maps into a CPU testsuite together with the other host-based tests, actually should be removed and a new pure CPU CI stage must be added
    • CODECOV_TEST seems to be abandoned, but actually must be removed and incorporated into Full testsuite
    • Explicit MLIR and COMPOSABLEKERNELS must be included into the naming scheme on the wiki and properly handled.
    • MIOPEN_TEST_DEEPBENCH, MIOPEN_TEST_CONV, MIOPEN_TEST_WITH_MIOPENDRIVER and MIOPEN_DEBUG_TUNING_ITERATIONS_MAX should be removed, since nobody ever sets them
  2. add an ability to run the tests based on custom regexp and without passing any environmental values to the tests (implies MIOPEN_TEST_DISCRETE is off and using a single test binary)
  3. add an ability to download gtest_parallel and use it to run custom regexp tests in parallel

It blocks #3134

CAHEK7 avatar Jul 23 '24 15:07 CAHEK7