Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

111 lines
4.1 KiB
Python

# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""
Benchmark test matrix definitions.
This module contains the benchmark_matrix dictionary which defines all benchmark tests.
Benchmark tests run only on nightly CI builds and are merged into test_matrix by configure_ci.py.
"""
from pathlib import Path
# Note: these paths are relative to the repository root.
SCRIPT_DIR = Path("tests") / "extended_tests" / "benchmark" / "scripts"
def _get_benchmark_script_path(script_name: str) -> str:
platform_path = SCRIPT_DIR / script_name
# Convert to posix (using `/` instead of `\\`) so test workflows can use
# 'bash' as the shell on Linux and Windows.
posix_path = platform_path.as_posix()
return str(posix_path)
benchmark_matrix = {
# BLAS benchmark tests
"rocblas_bench": {
"job_name": "rocblas_bench",
"fetch_artifact_args": "--blas --tests",
"timeout_minutes": 90,
"test_script": f"python {_get_benchmark_script_path('test_rocblas_benchmark.py')}",
# TODO(lajagapp): Add windows support (https://github.com/ROCm/TheRock/issues/2478)
"platform": ["linux"],
"total_shards_dict": {
"linux": 1,
"windows": 1,
},
# TODO: Remove xfail once dedicated performance servers are added in "benchmark-runs-on"
"expect_failure": True,
},
"hipblaslt_bench": {
"job_name": "hipblaslt_bench",
"fetch_artifact_args": "--blas --tests",
"timeout_minutes": 60,
"test_script": f"python {_get_benchmark_script_path('test_hipblaslt_benchmark.py')}",
"platform": ["linux", "windows"],
"total_shards_dict": {
"linux": 1,
"windows": 1,
},
# TODO: Remove xfail once dedicated performance servers are added in "benchmark-runs-on"
"expect_failure": True,
},
# SOLVER benchmark tests
"rocsolver_bench": {
"job_name": "rocsolver_bench",
"fetch_artifact_args": "--blas --tests",
"timeout_minutes": 60,
"test_script": f"python {_get_benchmark_script_path('test_rocsolver_benchmark.py')}",
"platform": ["linux", "windows"],
"total_shards_dict": {
"linux": 1,
"windows": 1,
},
# TODO: Remove xfail once dedicated performance servers are added in "benchmark-runs-on"
"expect_failure": True,
},
# RAND benchmark tests
"rocrand_bench": {
"job_name": "rocrand_bench",
"fetch_artifact_args": "--rand --tests",
"timeout_minutes": 90,
"test_script": f"python {_get_benchmark_script_path('test_rocrand_benchmark.py')}",
"platform": ["linux", "windows"],
"total_shards_dict": {
"linux": 1,
"windows": 1,
},
# TODO: Remove xfail once dedicated performance servers are added in "benchmark-runs-on"
"expect_failure": True,
},
# FFT benchmark tests
"rocfft_bench": {
"job_name": "rocfft_bench",
"fetch_artifact_args": "--fft --rand --tests",
"timeout_minutes": 60,
"test_script": f"python {_get_benchmark_script_path('test_rocfft_benchmark.py')}",
"platform": ["linux", "windows"],
"total_shards_dict": {
"linux": 1,
"windows": 1,
},
# TODO: Remove xfail once dedicated performance servers are added in "benchmark-runs-on"
"expect_failure": True,
},
# Communication benchmark tests
# DISABLED: RCCL Performance Benchmark - Waiting for OpenMPI integration
# TODO: Enable after OpenMPI is added to TheRock (Issue #2887, blocked by #1284)
# "rccl_bench": {
# "job_name": "rccl_bench",
# "fetch_artifact_args": "--rccl --tests",
# "timeout_minutes": 90,
# "test_script": f"python {_get_benchmark_script_path('test_rccl_benchmark.py')}",
# # TODO(lajagapp): Add windows support (https://github.com/ROCm/TheRock/issues/2478)
# "platform": ["linux"],
# "total_shards": 1,
# # TODO: Remove xfail once dedicated performance servers are added in "benchmark-runs-on"
# "expect_failure": True,
# },
}