Repository navigation
Conversation
ae8d352 to
66edc66
Compare
|
A lot of the functions introduced here are not specific to MIOpen. Please move those functions to another python script, that can be leveraged for all ROCm projects. |
3cc11fd to
f8fc406
Compare
f8fc406 to
d436a36
Compare
geomin12
left a comment
There was a problem hiding this comment.
i notice it is failing, but this is not sharded!
There was a problem hiding this comment.
i think this is for testing, but let's remember to remove this before merge in
There was a problem hiding this comment.
Yes for sure and yes, it is for testing.
Happy to know that there are more set of eyes on this!
| "8", | ||
| "--test-dir", | ||
| f"{THEROCK_BIN_DIR}/MIOpen", | ||
| "-V", # Always run in verbose mode |
There was a problem hiding this comment.
let's add this
TheRock/build_tools/github_actions/test_executable_scripts/test_rocprim.py
Lines 107 to 109 in d072e26
so it provides sharding
| category = "standard" | ||
|
|
||
| # Use AMDGPU_FAMILIES from environment variable, extract gfx<xxx> part | ||
| gpu_arch = "gfx1151" # default |
There was a problem hiding this comment.
prob would avoid a "default" arch, just an empty string is fine. we'll be guaranteed to have a gpu arch, and if none, there's a bigger problem at hand
There was a problem hiding this comment.
Makes sense, will change.
…ategory}-{gpu_arch}-exclude to {target_name}-{category}-{gpu_arch}-suite
…job and add `rocblas` to the component directory mapping in `test_filters.py`.
…ocblas` job and add `rocblas` to the component directory mapping in `test_filters.py`." This reverts commit 9efe697.
|
I'm closing this PR since it has got multiple commits pointing to local rocm-libraries branches for testing. |
## Summary
Adds YAML-driven CTest test categorization for the **miopen-provider**
plugin so TheRock CI can drive `ctest -L
{quick|standard|comprehensive|full}` from the installed
`bin/miopen_plugin/` tree via the generic `test_runner.py` (replacing
the legacy `test_miopenprovider.py` one-off).
More details available at
[test_filtering.md](https://github.com/ROCm/TheRock/blob/main/docs/development/test_filtering.md).
Paired TheRock branch:
[`users/dravindr/tr_miopen_prov`](https://github.com/ROCm/TheRock/tree/users/dravindr/tr_miopen_prov)
(PR forthcoming) — switches the `miopenprovider` job's `test_script` to
`test_runner.py`, adds `miopenprovider -> miopen_plugin` to
`COMPONENT_DIR_MAPPING`, and broadens `artifact-miopenprovider.toml`'s
test include to `bin/miopen_plugin/**`.
Reference (canonical pattern):
[`#3513`](#3513)
+ [`ROCm/TheRock#3097`](ROCm/TheRock#3097)
(miopen).
## Changes
### `dnn-providers/miopen-provider/test_categories.yaml` (new)
Added the test_categories.yaml for test selection
### `dnn-providers/miopen-provider/CMakeLists.txt`
- Set `ROCM_LIBRARIES_ROOT` (guarded `if NOT DEFINED`) so
`shared/ctest/TestCategories.cmake` is discoverable from the monorepo
root.
- After `finalize_test_targets(...)`, call
`apply_test_category_labels()` once per test binary, writing both sets
of `_quick_suite` / `_standard_suite` / `_comprehensive_suite` /
`_full_suite` entries into a single install-time `CTestTestfile.cmake`
with relative paths (`../miopen_plugin_tests`,
`../miopen_plugin_integration_tests`).
- Install the YAML-generated `CTestTestfile.cmake` to
`bin/miopen_plugin/` when shared/ctest is available; otherwise fall back
to the project's existing `install_provider_ctest_files()` so standalone
/ sparse checkouts that lack `shared/ctest/` keep working with their
current unlabeled install file.
### `.github/actions/ci-env/action.yml` *(WIP — revert before merge)*
Bumps the `therock-ref` output from the pinned 2026-05-29 SHA
(`685f8c3b890063...`) to the paired TheRock branch
`users/dravindr/tr_miopen_prov`. This file is the single source of truth
for `therock-ci-linux.yml`, `therock-ci-windows.yml`, `therock-ci.yml`,
`therock-test-component.yml`, and `therock-test-packages.yml`, so this
one edit replaces what would otherwise be four parallel diffs.
**Must be reverted to a pinned `ROCm/TheRock` SHA before merge**, once
the paired TheRock PR lands and gives us a stable commit on `main`.
## Test plan
- [x] CI build (Linux) on `users/dravindr/tr_miopen_prov` produces a
`miopenprovider` artifact whose `bin/miopen_plugin/CTestTestfile.cmake`
lists all 8 `*_suite` entries with labels.
- [x] CI build (Windows) ditto.
- [x] `therock-test-component.yml` / `therock-test-packages.yml` runs of
the `miopenprovider` job invoke `test_runner.py` with
`TEST_COMPONENT=miopenprovider` and `TEST_TYPE=quick` and pass.
- [x] Revert `.github/actions/ci-env/action.yml` to a pinned
`ROCm/TheRock` SHA once the paired TheRock PR is merged.
Made with [Cursor](https://cursor.com)
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Motivation
This PR is to integrate the Test Filter Standardization POC done in MIOpen to TheRock
Technical Details
The POC in MIOpen is done here: ROCm/rocm-libraries#3513.
This PR modifies test_miopen.py to call the required test categories with CTest.