CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
119 lines
5.3 KiB
Python
119 lines
5.3 KiB
Python
"""
|
|
This dictionary is used to map specific file directory changes to the corresponding build flag and tests
|
|
"""
|
|
|
|
subtree_to_project_map = {
|
|
"emulation/rocjitsu": "emulation",
|
|
"emulation/mirage": "emulation",
|
|
"projects/amdsmi": "core",
|
|
"projects/aqlprofile": "profiler",
|
|
"projects/clr": "runtimes",
|
|
"projects/cuid": "rdc",
|
|
"projects/hipfile": "storage_libs",
|
|
"projects/hip": "runtimes",
|
|
"projects/hip-tests": "runtimes",
|
|
"projects/hipother": "runtimes",
|
|
"projects/rdc": "dc_tools",
|
|
"projects/rocdbgapi": "debug_tools-dbgapi",
|
|
# "projects/rocdecode": "media-libs",
|
|
# "projects/rocjpeg": "media-libs",
|
|
"projects/rocm-core": "core",
|
|
"projects/rocminfo": "core",
|
|
"projects/rocm-smi-lib": "core",
|
|
"projects/rocprofiler": "profiler",
|
|
"projects/rocprofiler-compute": "profiler",
|
|
"projects/rocprofiler-register": "profiler",
|
|
"projects/rocprofiler-sdk": "profiler",
|
|
"projects/rocprofiler-systems": "profiler",
|
|
"projects/rocr-debug-agent": "debug_tools-debug-agent",
|
|
"projects/rocr-runtime": "runtimes",
|
|
"projects/rocshmem": "rocshmem",
|
|
"projects/roctracer": "profiler",
|
|
"shared/amdgpu-windows-interop": "runtimes",
|
|
}
|
|
|
|
project_map = {
|
|
"core": {
|
|
"cmake_options": ["-DTHEROCK_ENABLE_CORE=ON", "-DTHEROCK_ENABLE_ALL=OFF", "-DTHEROCK_ENABLE_PROFILER=ON"],
|
|
"projects_to_test": "aqlprofile, rocprofiler-compute, rocprofiler-sdk, rocprofiler-systems", # will run sanity test to cover rocminfo and amdsmi
|
|
},
|
|
"emulation": {
|
|
"cmake_options": ["-DTHEROCK_ENABLE_ALL=OFF", "-DTHEROCK_ENABLE_EMULATION=ON"],
|
|
"projects_to_test": "",
|
|
},
|
|
"dc_tools": {
|
|
"cmake_options": ["-DTHEROCK_ENABLE_ALL=OFF", "-DTHEROCK_ENABLE_DC_TOOLS=ON"],
|
|
"projects_to_test": "", # rdc-tests is not built by TheRock build system - TBD
|
|
},
|
|
# dbgapi changes need to exercise both ROCgdb and debug agent.
|
|
"debug_tools-dbgapi": {
|
|
"cmake_options": [
|
|
"-DTHEROCK_ENABLE_ALL=OFF",
|
|
"-DTHEROCK_ENABLE_DEBUG_TOOLS=ON",
|
|
],
|
|
"projects_to_test": "rocr-debug-agent, rocgdb-cpu, rocgdb-gpu",
|
|
},
|
|
# debug agent changes don't have to exercise ROCgdb.
|
|
"debug_tools-debug-agent": {
|
|
"cmake_options": [
|
|
"-DTHEROCK_ENABLE_ALL=OFF",
|
|
"-DTHEROCK_ENABLE_DEBUG_TOOLS=ON",
|
|
],
|
|
"projects_to_test": "rocr-debug-agent",
|
|
},
|
|
# media libs to be enabled in following PR
|
|
# "media-libs": {
|
|
# "cmake_options": ["-DTHEROCK_ENABLE_ALL=OFF", "-DTHEROCK_ENABLE_PROFILER=ON", "-DTHEROCK_ENABLE_MEDIA_LIBS=ON"],
|
|
# "projects_to_test": "", # "rocdecode-tests, rocjpeg-tests",
|
|
# },
|
|
"profiler": {
|
|
"cmake_options": ["-DTHEROCK_ENABLE_ALL=ON"],
|
|
"projects_to_test": "aqlprofile, rocprofiler-compute, rocprofiler-sdk, rocprofiler-systems",
|
|
},
|
|
"rocshmem": {
|
|
"cmake_options": ["-DTHEROCK_ENABLE_ALL=OFF", "-DTHEROCK_ENABLE_ROCSHMEM=ON"],
|
|
"projects_to_test": "", # rocshmem testing to be enabled in a future PR
|
|
},
|
|
"storage_libs": {
|
|
"cmake_options": ["-DTHEROCK_ENABLE_ALL=OFF", "-DTHEROCK_ENABLE_STORAGE_LIBS=ON"],
|
|
"projects_to_test": "", # hipfile testing to be enabled in a future PR
|
|
},
|
|
# Also test rocr-debug-agent and rocgdb since those depend on runtimes.
|
|
"runtimes": {
|
|
"cmake_options": ["-DTHEROCK_ENABLE_ALL=ON"],
|
|
"projects_to_test": "hip-tests, rocrtst, rocprofiler-sdk, rocr-debug-agent, rocgdb-cpu, rocgdb-gpu",
|
|
},
|
|
"all": {
|
|
"cmake_options": ["-DTHEROCK_ENABLE_ALL=ON"],
|
|
"projects_to_test": "hip-tests, rocrtst, aqlprofile, rocprofiler-compute, rocprofiler-sdk, rocprofiler-systems, rocr-debug-agent, rocgdb-cpu, rocgdb-gpu",
|
|
},
|
|
# Same test coverage as TheRock submodule-bump PRs (rocm-systems scope).
|
|
# Nightly (schedule) uses this entry explicitly for alignment.
|
|
# additional mathlib to test for nightly: rocprim, rocthrust, rocrand, hiprand, hipblaslt, rocblas, hipblas, rocroller, miopen, miopenprovider, hipfft, rocfft, rocsparse, hipsparse, hipsparselt, rocsolver, hipsolver, rocwmma
|
|
# instead of above blanket addition of all tests, we can add logic to determine which mathlibs to test, based on file changes from last nightly run. Can be handled once the tests scripts move to component/monorepo src
|
|
"nightly": {
|
|
"cmake_options": "-DTHEROCK_ENABLE_ALL=ON",
|
|
"projects_to_test": "hip-tests, rocrtst, aqlprofile, rocprofiler-compute, rocprofiler-sdk, rocprofiler-systems, rocr-debug-agent, rocgdb-cpu, rocgdb-gpu, rocprim, rocthrust, rocrand, hiprand, hipblaslt, rocblas, hipblas, rocroller, miopen, miopenprovider, hipfft, rocfft, rocsparse, hipsparse, hipsparselt, rocsolver, hipsolver, rocwmma",
|
|
},
|
|
}
|
|
|
|
# Subtrees that should only trigger Windows CI, not Linux CI.
|
|
# Note: Linux-only subtrees (e.g. projects/rocshmem) have no explicit list —
|
|
# any subtree absent from trigger_windows_ci_for_subtrees_paths will
|
|
# automatically skip Windows CI.
|
|
windows_only_subtrees = {
|
|
"shared/amdgpu-windows-interop",
|
|
}
|
|
|
|
# Paths matching any of these patterns will trigger Windows CI.
|
|
# Subtrees not represented here are treated as Linux-only.
|
|
trigger_windows_ci_for_subtrees_paths = [
|
|
"projects/clr/*",
|
|
"projects/hip/*",
|
|
"projects/hip-tests/*",
|
|
"projects/rocdbgapi/*",
|
|
"projects/rocr-runtime/*",
|
|
"shared/amdgpu-windows-interop/**",
|
|
".github/*/therock*",
|
|
]
|