From 5ed1b316198d372dcc063a5849e40d91af7f32c8 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Mon, 26 Jan 2026 14:41:50 -0600 Subject: [PATCH 01/21] add changes to integrate miopen test filter standardization in TheRock --- .../test_executable_scripts/test_miopen.py | 412 ++++++++---------- 1 file changed, 189 insertions(+), 223 deletions(-) diff --git a/build_tools/github_actions/test_executable_scripts/test_miopen.py b/build_tools/github_actions/test_executable_scripts/test_miopen.py index f3ea37a17fa..0f0f4dc5c5f 100644 --- a/build_tools/github_actions/test_executable_scripts/test_miopen.py +++ b/build_tools/github_actions/test_executable_scripts/test_miopen.py @@ -1,13 +1,29 @@ -import logging +#!/usr/bin/env python3 +""" +Run CTest with appropriate GPU exclusion labels based on hierarchical matching. + +Usage: + run_test.py + +Examples: + run_test.py quick gfx1151 + run_test.py standard gfx950 + run_test.py comprehensive generic +""" + +import sys +import subprocess +import re import os + +import logging import shlex -import subprocess from pathlib import Path THEROCK_BIN_DIR = os.getenv("THEROCK_BIN_DIR") SCRIPT_DIR = Path(__file__).resolve().parent THEROCK_DIR = SCRIPT_DIR.parent.parent.parent - +TEST_TYPE = os.getenv("TEST_TYPE", "quick") AMDGPU_FAMILIES = os.getenv("AMDGPU_FAMILIES") # GTest sharding @@ -24,225 +40,175 @@ environ_vars["ROCM_PATH"] = str(ROCM_PATH) logging.basicConfig(level=logging.INFO) - -########################################### - -positive_filter = [] -negative_filter = [] - -# Fusion # -positive_filter.append("*Fusion*") - -# Batch Normalization # -positive_filter.append("*/GPU_BNBWD*_*") -positive_filter.append("*/GPU_BNOCLBWD*_*") -positive_filter.append("*/GPU_BNFWD*_*") -positive_filter.append("*/GPU_BNOCLFWD*_*") -positive_filter.append("*/GPU_BNInfer*_*") -positive_filter.append("*/GPU_BNActivInfer_*") -positive_filter.append("*/GPU_BNOCLInfer*_*") -positive_filter.append("*/GPU_bn_infer*_*") - -# CPU tests -positive_filter.append("CPU_*") # tests without a suite -positive_filter.append("*/CPU_*") # tests with a suite - -# Different -positive_filter.append("*/GPU_Cat_*") -positive_filter.append("*/GPU_ConvBiasActiv*") - -# Convolutions -positive_filter.append("*/GPU_Conv*") -positive_filter.append("*/GPU_conv*") - -# Solvers -positive_filter.append("*/GPU_UnitTestConv*") - -# Misc - -positive_filter.append("*/GPU_GetitemBwd*") -positive_filter.append("*/GPU_GLU_*") - -positive_filter.append("*/GPU_GroupConv*") -positive_filter.append("*/GPU_GroupNorm_*") -positive_filter.append("*/GPU_GRUExtra_*") -positive_filter.append("*/GPU_TestActivation*") -positive_filter.append("*/GPU_HipBLASLtGEMMTest*") -positive_filter.append("*/GPU_KernelTuningNetTestConv*") -positive_filter.append("*/GPU_Kthvalue_*") -positive_filter.append("*/GPU_LayerNormTest*") -positive_filter.append("*/GPU_LayoutTransposeTest_*") -positive_filter.append("*/GPU_Lrn*") -positive_filter.append("*/GPU_lstm_extra*") - -positive_filter.append("*/GPU_MultiMarginLoss_*") -positive_filter.append("*/GPU_ConvNonpack*") -positive_filter.append("*/GPU_PerfConfig_HipImplicitGemm*") -positive_filter.append("*/GPU_AsymPooling2d_*") -positive_filter.append("*/GPU_WidePooling2d_*") -positive_filter.append("*/GPU_PReLU_*") -positive_filter.append("*/GPU_Reduce*") -positive_filter.append("*/GPU_reduce_custom_*") -positive_filter.append("*/GPU_regression_issue_*") -positive_filter.append("*/GPU_RNNExtra_*") -positive_filter.append("*/GPU_RoPE*") -positive_filter.append("*/GPU_SoftMarginLoss*") -positive_filter.append("*/GPU_T5LayerNormTest_*") -positive_filter.append("*/GPU_Op4dTensorGenericTest_*") -positive_filter.append("*/GPU_TernaryTensorOps_*") -positive_filter.append("*/GPU_unaryTensorOps_*") -positive_filter.append("*/GPU_Transformers*") -positive_filter.append("*/GPU_TunaNetTest_*") -positive_filter.append("*/GPU_UnitTestActivationDescriptor_*") -positive_filter.append("*/GPU_FinInterfaceTest*") -positive_filter.append("*/GPU_VecAddTest_*") - -positive_filter.append("*/GPU_KernelTuningNetTest*") - -positive_filter.append("*/GPU_Bwd_Mha_*") -positive_filter.append("*/GPU_Fwd_Mha_*") -positive_filter.append("*/GPU_Softmax*") -positive_filter.append("*/GPU_Dropout*") -positive_filter.append("*/GPU_MhaBackward_*") -positive_filter.append("*/GPU_MhaForward_*") -positive_filter.append("*GPU_TestMhaFind20*") - -############################################# - -negative_filter.append("*DeepBench*") -negative_filter.append("*MIOpenTestConv*") - -# For sake of time saving on pre-commit step -#################################################### -negative_filter.append("Full/GPU_Reduce_FP64*") # 4 min 19 sec -negative_filter.append("Full/GPU_BNOCLFWDTrainSerialRun3D_BFP16*") # 3 min 37 sec -negative_filter.append("Full/GPU_Lrn_FP32*") # 2 min 50 sec -negative_filter.append("Full/GPU_Lrn_FP16*") # 2 min 20 sec -negative_filter.append("Full/GPU_BNOCLInferSerialRun3D_BFP16*") # 2 min 19 sec -negative_filter.append("Smoke/GPU_BNOCLFWDTrainLarge2D_BFP16*") # 1 min 55 sec -negative_filter.append("Smoke/GPU_BNOCLInferLarge2D_BFP16*") # 1 min 48 sec -negative_filter.append("Full/GPU_BNOCLBWDSerialRun3D_BFP16*") # 1 min 28 sec -negative_filter.append("Smoke/GPU_BNOCLBWDLarge2D_BFP16*") # 1 min 19 sec - -negative_filter.append("Full/GPU_UnitTestActivationDescriptor_FP32*") # 1 min 23 sec -negative_filter.append("Full/GPU_UnitTestActivationDescriptor_FP16*") # 1 min 0 sec - -negative_filter.append( - "Smoke/GPU_BNOCLBWDLargeFusedActivation2D_BFP16*" -) # 0 min 52 sec -negative_filter.append("Smoke/GPU_BNOCLBWDLargeFusedActivation2D_FP16*") # 0 min 49 sec - -negative_filter.append("Full/GPU_ConvGrpBiasActivInfer_BFP16*") # 0 min 40 sec -negative_filter.append("Full/GPU_ConvGrpBiasActivInfer_FP32*") # 0 min 38 sec -negative_filter.append("Full/GPU_ConvGrpBiasActivInfer_FP16*") # 0 min 25 sec - -negative_filter.append("Full/GPU_ConvGrpActivInfer_BFP16*") # 0 min 42 sec -negative_filter.append("Full/GPU_ConvGrpActivInfer_FP32*") # 0 min 35 sec -negative_filter.append("Full/GPU_ConvGrpActivInfer_FP16*") # 0 min 25 sec - -negative_filter.append("Full/GPU_ConvGrpBiasActivInfer3D_BFP16*") # 0 min 27 sec -negative_filter.append("Full/GPU_ConvGrpBiasActivInfer3D_FP32*") # 0 min 25 sec -negative_filter.append("Full/GPU_ConvGrpBiasActivInfer3D_FP16*") # 0 min 19 sec - -negative_filter.append("Full/GPU_ConvGrpActivInfer3D_BFP16*") # 0 min 27 sec -negative_filter.append("Full/GPU_ConvGrpActivInfer3D_FP32*") # 0 min 22 sec -negative_filter.append("Full/GPU_ConvGrpActivInfer3D_FP16*") # 0 min 16 sec - -# Flaky tests -negative_filter.append( - "Smoke/GPU_UnitTestConvSolverHipImplicitGemmV4R1Fwd_BFP16.ConvHipImplicitGemmV4R1Fwd/0" -) # https://github.com/ROCm/TheRock/issues/1682 - -# Don't run while investigating to allow CI to pass -# Jira Ticket ALMIOPEN-990 -negative_filter.append("*/GPU_MIOpenDriver*") - -# TODO(rocm-libraries#2266): re-enable test for gfx950-dcgpu -if AMDGPU_FAMILIES == "gfx950-dcgpu": - negative_filter.append("*DBSync*") - -# Tests to be filtered for navi -# 1- Ignore gfx942 tests -# TODO: There is no FP32 wmma on Navi, remove all FP32 conv tests. These should already be skipped via applicability for -# CK solvers -if AMDGPU_FAMILIES in ["gfx110X-all", "gfx1150", "gfx1151", "gfx120X-all"]: - # These are ignored in miopen - negative_filter.append( - "Smoke/GPU_BNFWDTrainLargeFusedActivation2D_FP32.BnV2LargeFWD_TrainCKfp32Activation/NCHW_BNSpatial_testBNAPIV1_Dim_2_test_id_32" - ) # Temporarily disabled until gfx1151 CI nodes have fw 31 or higher installed - negative_filter.append( - "Smoke/GPU_BNFWDTrainLarge2D_FP32.BnV2LargeFWD_TrainCKfp32/NCHW_BNSpatial_testBNAPIV2_Dim_2_test_id_64" - ) # Temporarily disabled until gfx1151 CI nodes have fw 31 or higher installed - # this could address 2 - negative_filter.append( - "*SerialRun3D*" - ) # These FP32 SerialRun3D tests use so much memory that they have a risk of timing out the machine during tests - # this could address 1 - negative_filter.append("*gfx942*") - # List of currently failing tests - negative_filter.append("*GPU_UnitTestConvSolverFFTFwd_FP32*") - negative_filter.append("*GPU_UnitTestConvSolverFFTBwd_FP32*") - negative_filter.append("*GPU_TernaryTensorOps_FP64*") - negative_filter.append("*GPU_TernaryTensorOps_FP16*") - negative_filter.append("*GPU_TernaryTensorOps_FP32*") - negative_filter.append("*GPU_Op4dTensorGenericTest_FP32*") - negative_filter.append("*GPU_UnitTestActivationDescriptor_FP16*") - negative_filter.append("*GPU_UnitTestActivationDescriptor_FP32*") - negative_filter.append("*CPU_TuningPolicy_NONE*") - negative_filter.append("*GPU_Dropout_FP32*") - negative_filter.append("*GPU_Dropout_FP16*") - - # TODO: We need to work to re-enable these - negative_filter.append( - "*GPU_GroupConv3D_BackwardData_FP16.GroupConv3D_BackwardData_half_Test*" - ) - negative_filter.append( - "*GPU_GroupConv3D_BackwardData_BFP16.GroupConv3D_BackwardData_bfloat16_Test*" - ) - negative_filter.append( - "*GPU_UnitTestConvSolverImplicitGemmGroupWrwXdlops_BFP16.ConvHipImplicitGemmGroupWrwXdlops*" - ) - - negative_filter.append("Smoke/GPU_MultiMarginLoss*") - - negative_filter.append( - "*CPU_UnitTestConvSolverImplicitGemmGroupWrwXdlopsDevApplicability_FP16.ConvHipImplicitGemmGroupWrwXdlops*" - ) - -#################################################### - -# Creating a smoke test filter -smoke_filter = [ - # Batch norm FWD smoke tests - "Smoke/GPU_BNCKFWDTrainLarge2D_FP16*", - "Smoke/GPU_BNOCLFWDTrainLarge2D_FP16*", - "Smoke/GPU_BNOCLFWDTrainLarge3D_FP16*", - "Smoke/GPU_BNCKFWDTrainLarge2D_BFP16*", - "Smoke/GPU_BNOCLFWDTrainLarge2D_BFP16*", - "Smoke/GPU_BNOCLFWDTrainLarge3D_BFP16*", - # CK Grouped FWD Conv smoke tests - "Smoke/GPU_UnitTestConvSolverImplicitGemmFwdXdlops_FP16*", - "Smoke/GPU_UnitTestConvSolverImplicitGemmFwdXdlops_BFP16*", -] - -# TODO(rocm-libraries#2266): re-enable test for gfx950-dcgpu -if AMDGPU_FAMILIES != "gfx950-dcgpu": - smoke_filter.append("*DBSync*") - positive_filter.append("*DBSync*") - -#################################################### - -# If smoke tests are enabled, we run smoke tests only. -# Otherwise, we run the normal test suite -test_type = os.getenv("TEST_TYPE", "full") -if test_type == "smoke": - test_filter = "--gtest_filter=" + ":".join(smoke_filter) -else: - test_filter = ( - "--gtest_filter=" + ":".join(positive_filter) + "-" + ":".join(negative_filter) +############################################## + +def get_available_gpu_exclusion_tests(): + """ + Get all available GPU exclusion test architectures from ctest -N. + + Parses test names in the format: {target_name}-{category}-{gpu_arch}-exclude + Returns a set of gpu_arch strings (e.g., 'gfx1150', 'gfx11X', 'gfx950'). + """ + try: + result = subprocess.run( + ["ctest", "-N"], capture_output=True, text=True, check=True + ) + + gpu_archs = set() + # Parse output for test names + # Looking for pattern: Test #N: name-category-gpuarch-exclude + # Example: Test #123: miopen_gtest-quick-gfx1150-exclude + for line in result.stdout.split("\n"): + # Look for lines containing test names with "-exclude" suffix + if "-exclude" in line and "Test #" in line: + # Extract the test name + # Format: "Test #123: miopen_gtest-quick-gfx1150-exclude" + match = re.search(r"Test\s+#\d+:\s+(.+)", line) + if match: + test_name = match.group(1).strip() + # Extract gpu_arch from pattern: *-{category}-{gpu_arch}-exclude + # Split from the right to get the parts + parts = test_name.split("-") + if len(parts) >= 3 and parts[-1] == "exclude": + # The gpu_arch is the second-to-last part + gpu_arch = parts[-2] + # Verify it looks like a GPU arch (starts with gfx) + if gpu_arch.startswith("gfx"): + gpu_archs.add(gpu_arch) + + return gpu_archs + except subprocess.CalledProcessError as e: + print(f"Error running ctest -N: {e}", file=sys.stderr) + sys.exit(1) + except FileNotFoundError: + print( + "Error: ctest not found. Make sure CMake/CTest is installed.", + file=sys.stderr, + ) + sys.exit(1) + + +def find_matching_gpu_arch(gpu_arch, available_gpu_archs): + """ + Find the most specific GPU architecture that matches the given GPU. + + Tries in order from most specific to least specific: + - Exact match (gfx1151) + - Wildcard matches (gfx115X, gfx11X, etc.) + + Returns the matching architecture string or None if no match found. + """ + # First, try exact match + if gpu_arch in available_gpu_archs: + return gpu_arch + + # Generate possible wildcard patterns from most specific to least specific + # For gfx1151: try gfx115X, gfx11X, gfx1X + possible_patterns = [] + arch_str = gpu_arch + + # Generate patterns by replacing characters with X from right to left + for i in range(len(arch_str) - 1, 0, -1): + pattern = arch_str[:i] + "X" + possible_patterns.append(pattern) + + # Try each pattern + for pattern in possible_patterns: + if pattern in available_gpu_archs: + return pattern + + return None + + +def build_ctest_command(category, gpu_arch, available_gpu_archs): + """ + Build the appropriate ctest command based on the category and GPU architecture. + + Returns a list of command arguments suitable for subprocess.run() + """ + cmd = ["ctest", "-L", category] + + # Add common ctest parameters + cmd.extend( + [ + "--output-on-failure", + "--parallel", + "8", + "--test-dir", + f"{THEROCK_BIN_DIR}/MIOpen", + "-V", # Always run in verbose mode + ] ) -############################################# -cmd = [f"{THEROCK_BIN_DIR}/miopen_gtest", test_filter] -logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}") -subprocess.run(cmd, cwd=THEROCK_DIR, check=True, env=environ_vars) + if gpu_arch.lower() in ["generic", "none", ""]: + # For generic/unspecified GPU, exclude all GPU-specific tests + cmd.extend(["-LE", "ex_gpu"]) + return cmd + + # Find the appropriate GPU exclusion architecture + matching_arch = find_matching_gpu_arch(gpu_arch, available_gpu_archs) + + if matching_arch: + # Run the specific GPU exclusion test using the ex_gpu label + gpu_label = f"ex_gpu_{matching_arch}" + cmd.extend(["-L", gpu_label]) + print(f"# Using GPU exclusion label: {gpu_label}") + else: + # No specific GPU exclusion found, run standard tests excluding all GPU-specific ones + cmd.extend(["-LE", "ex_gpu"]) + print(f"# No GPU exclusion found for {gpu_arch}, excluding all ex_gpu tests") + + return cmd + +def main(): + # Use TEST_TYPE from environment variable, convert "smoke" to "quick" + category = TEST_TYPE + if category.lower() == "smoke": + category = "quick" + + # Use AMDGPU_FAMILIES from environment variable, extract gfx part + gpu_arch = "gfx1151" # default + if AMDGPU_FAMILIES: + # Extract gfx pattern from AMDGPU_FAMILIES string + # Pattern matches: gfx followed by alphanumeric characters (e.g., gfx1151, gfx950, gfx11X) + match = re.search(r"gfx[0-9a-zA-Z]+", AMDGPU_FAMILIES) + if match: + gpu_arch = match.group(0) + else: + print( + f"# Warning: Could not extract GPU architecture from AMDGPU_FAMILIES='{AMDGPU_FAMILIES}', using default '{gpu_arch}'" + ) + + print(f"# TEST_TYPE: {TEST_TYPE} -> Category: {category}") + print(f"# AMDGPU_FAMILIES: {AMDGPU_FAMILIES} -> GPU Architecture: {gpu_arch}") + print() + + # Get available GPU exclusion tests from ctest + print("# Discovering available GPU exclusion tests...") + available_gpu_archs = get_available_gpu_exclusion_tests() + + if available_gpu_archs: + print(f"# Found {len(available_gpu_archs)} GPU exclusion test(s)") + print(f"# Available GPU architectures: {sorted(available_gpu_archs)}") + else: + print("# Warning: No GPU exclusion tests found") + print() + + # Build the ctest command + cmd = build_ctest_command(category, gpu_arch, available_gpu_archs) + + print(f"# Running: {' '.join(cmd)}") + print() + + # Execute the command + try: + logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}") + result = subprocess.run(cmd, check=False) + return result.returncode + except Exception as e: + print(f"Error running ctest: {e}", file=sys.stderr) + return 1 + + +if __name__ == "__main__": + sys.exit(main()) From d436a36ab44ed48d454e407426a01dd9f09b7a5e Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Mon, 26 Jan 2026 17:10:56 -0600 Subject: [PATCH 02/21] fix pre-commit errors --- .../github_actions/test_executable_scripts/test_miopen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_tools/github_actions/test_executable_scripts/test_miopen.py b/build_tools/github_actions/test_executable_scripts/test_miopen.py index 0f0f4dc5c5f..b971459159b 100644 --- a/build_tools/github_actions/test_executable_scripts/test_miopen.py +++ b/build_tools/github_actions/test_executable_scripts/test_miopen.py @@ -42,6 +42,7 @@ logging.basicConfig(level=logging.INFO) ############################################## + def get_available_gpu_exclusion_tests(): """ Get all available GPU exclusion test architectures from ctest -N. @@ -160,6 +161,7 @@ def build_ctest_command(category, gpu_arch, available_gpu_archs): return cmd + def main(): # Use TEST_TYPE from environment variable, convert "smoke" to "quick" category = TEST_TYPE From 8ad4312679160ff7e044c134530dbf6d1c18c30f Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Tue, 27 Jan 2026 15:50:57 -0600 Subject: [PATCH 03/21] Use the categories 'quick' and 'standard' for the TEST_TYPE 'smoke' and 'full' --- .../test_executable_scripts/test_miopen.py | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/build_tools/github_actions/test_executable_scripts/test_miopen.py b/build_tools/github_actions/test_executable_scripts/test_miopen.py index b971459159b..fb2f1450673 100644 --- a/build_tools/github_actions/test_executable_scripts/test_miopen.py +++ b/build_tools/github_actions/test_executable_scripts/test_miopen.py @@ -1,14 +1,15 @@ #!/usr/bin/env python3 """ -Run CTest with appropriate GPU exclusion labels based on hierarchical matching. +Run MIOpen CTest with appropriate GPU exclusion labels based on hierarchical matching. +This works on top of the PR - Test Filter Standardization Proof of Concept - MIOpen #3513 +in rocm-libraries (https://github.com/ROCm/rocm-libraries/pull/3513) -Usage: - run_test.py +The script reads TEST_TYPE and AMDGPU_FAMILIES environment variables: +- TEST_TYPE="smoke" -> runs tests with "quick" category +- TEST_TYPE= -> runs tests with "standard" category +- AMDGPU_FAMILIES is parsed to extract GPU architecture (e.g., "gfx1151") -Examples: - run_test.py quick gfx1151 - run_test.py standard gfx950 - run_test.py comprehensive generic +The script checks the available tests from ctest -N and filters the appropriate tests based on the GPU architecture. """ import sys @@ -163,10 +164,11 @@ def build_ctest_command(category, gpu_arch, available_gpu_archs): def main(): - # Use TEST_TYPE from environment variable, convert "smoke" to "quick" - category = TEST_TYPE - if category.lower() == "smoke": + # Use only two categories for now - quick and standard - depending on TEST_TYPE. + if TEST_TYPE and TEST_TYPE.lower() == "smoke": category = "quick" + else: + category = "standard" # Use AMDGPU_FAMILIES from environment variable, extract gfx part gpu_arch = "gfx1151" # default From 94b2e1b04b48a6f0efc42f4cdaa2114fd7d309fb Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Wed, 28 Jan 2026 08:38:39 -0600 Subject: [PATCH 04/21] temporary adding test_filter branch to confirm functionality --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index 1d2e4633985..5f6e636864c 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit 1d2e4633985eb8541a77459a2035e4feed90c6bb +Subproject commit 5f6e636864c325bf3293401ea33f09245d4c62eb From f3998b6af587f08c8879b500c878c95e47e6e1e8 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Thu, 29 Jan 2026 12:54:46 -0600 Subject: [PATCH 05/21] CTest should be called from the correct test directory --- .../github_actions/test_executable_scripts/test_miopen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_tools/github_actions/test_executable_scripts/test_miopen.py b/build_tools/github_actions/test_executable_scripts/test_miopen.py index fb2f1450673..570d1b07bbb 100644 --- a/build_tools/github_actions/test_executable_scripts/test_miopen.py +++ b/build_tools/github_actions/test_executable_scripts/test_miopen.py @@ -53,7 +53,10 @@ def get_available_gpu_exclusion_tests(): """ try: result = subprocess.run( - ["ctest", "-N"], capture_output=True, text=True, check=True + ["ctest", "-N", "--test-dir", f"{THEROCK_BIN_DIR}/MIOpen"], + capture_output=True, + text=True, + check=True, ) gpu_archs = set() From dada006ad1cf42c7244934dfba560739b07bc2b2 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Fri, 30 Jan 2026 09:45:32 -0600 Subject: [PATCH 06/21] Add sharding and remove default gpu setting. --- .../github_actions/test_executable_scripts/test_miopen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_tools/github_actions/test_executable_scripts/test_miopen.py b/build_tools/github_actions/test_executable_scripts/test_miopen.py index 570d1b07bbb..846c16c8ab5 100644 --- a/build_tools/github_actions/test_executable_scripts/test_miopen.py +++ b/build_tools/github_actions/test_executable_scripts/test_miopen.py @@ -142,6 +142,9 @@ def build_ctest_command(category, gpu_arch, available_gpu_archs): "--test-dir", f"{THEROCK_BIN_DIR}/MIOpen", "-V", # Always run in verbose mode + # Shards the tests by running a specific set of tests based on starting test (shard_index) and stride (total_shards) + "--tests-information", + f"{SHARD_INDEX},,{TOTAL_SHARDS}", ] ) @@ -174,7 +177,7 @@ def main(): category = "standard" # Use AMDGPU_FAMILIES from environment variable, extract gfx part - gpu_arch = "gfx1151" # default + gpu_arch = "" if AMDGPU_FAMILIES: # Extract gfx pattern from AMDGPU_FAMILIES string # Pattern matches: gfx followed by alphanumeric characters (e.g., gfx1151, gfx950, gfx11X) From 09e86535a9b8a67689de001426b967b9104375f1 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Sat, 31 Jan 2026 15:56:48 -0600 Subject: [PATCH 07/21] Revert "temporary adding test_filter branch to confirm functionality" This reverts commit 94b2e1b04b48a6f0efc42f4cdaa2114fd7d309fb. --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index 5f6e636864c..1d2e4633985 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit 5f6e636864c325bf3293401ea33f09245d4c62eb +Subproject commit 1d2e4633985eb8541a77459a2035e4feed90c6bb From 2d85924b860aa0f1540a8f7de02bdcb14aa3568f Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Sat, 31 Jan 2026 15:59:38 -0600 Subject: [PATCH 08/21] temporarily pointing to latest version of rocm-libs ctest_miopen branch for testing --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index 1d2e4633985..b499853a090 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit 1d2e4633985eb8541a77459a2035e4feed90c6bb +Subproject commit b499853a090873db26917426863c6f60c449c9fa From 0b3fef76edc220d7453557b5cc058063fdad7c8b Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Sat, 31 Jan 2026 16:10:23 -0600 Subject: [PATCH 09/21] Revert "temporarily pointing to latest version of rocm-libs ctest_miopen branch for testing" This reverts commit 2d85924b860aa0f1540a8f7de02bdcb14aa3568f. --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index b499853a090..1d2e4633985 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit b499853a090873db26917426863c6f60c449c9fa +Subproject commit 1d2e4633985eb8541a77459a2035e4feed90c6bb From 73f8fb66ea412ba111ef9f30fe5dd254d47adf4b Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Sat, 31 Jan 2026 16:13:28 -0600 Subject: [PATCH 10/21] point to rocm-libs ctest_miopen branch for testing --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index 1d2e4633985..b499853a090 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit 1d2e4633985eb8541a77459a2035e4feed90c6bb +Subproject commit b499853a090873db26917426863c6f60c449c9fa From 090f44b053bd7aac3f846bc4a699646c1f775d99 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Mon, 2 Feb 2026 15:09:06 -0600 Subject: [PATCH 11/21] Revert "point to rocm-libs ctest_miopen branch for testing" This reverts commit 73f8fb66ea412ba111ef9f30fe5dd254d47adf4b. --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index b499853a090..1d2e4633985 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit b499853a090873db26917426863c6f60c449c9fa +Subproject commit 1d2e4633985eb8541a77459a2035e4feed90c6bb From 263f70cb1460dac472f334e3a2e2d767585f1898 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Mon, 2 Feb 2026 15:11:55 -0600 Subject: [PATCH 12/21] Use latest ctest_miopen from rocm-libs --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index 1d2e4633985..4b0d4c9a444 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit 1d2e4633985eb8541a77459a2035e4feed90c6bb +Subproject commit 4b0d4c9a444b5d1343bc731cde337b0fb537daee From 5bac5ab4ddc24511fa0e31a2026679f7390a9033 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Tue, 3 Feb 2026 13:50:25 -0600 Subject: [PATCH 13/21] Move the changes to a generic test file which can be used by all components --- .github/workflows/test_component.yml | 1 + .../fetch_test_configurations.py | 2 +- .../test_executable_scripts/test_filters.py | 260 ++++++++++++++++++ 3 files changed, 262 insertions(+), 1 deletion(-) create mode 100644 build_tools/github_actions/test_executable_scripts/test_filters.py diff --git a/.github/workflows/test_component.yml b/.github/workflows/test_component.yml index d9b5690eb56..e94ad1e2c14 100644 --- a/.github/workflows/test_component.yml +++ b/.github/workflows/test_component.yml @@ -113,6 +113,7 @@ jobs: SHARD_INDEX: ${{ matrix.shard }} TOTAL_SHARDS: ${{ fromJSON(inputs.component).total_shards }} TEST_TYPE: ${{ fromJSON(inputs.component).test_type }} + TEST_COMPONENT: ${{ fromJSON(inputs.component).job_name }} run: | ${{ fromJSON(inputs.component).test_script }} diff --git a/build_tools/github_actions/fetch_test_configurations.py b/build_tools/github_actions/fetch_test_configurations.py index 9c535ec2099..99ba2b789c3 100644 --- a/build_tools/github_actions/fetch_test_configurations.py +++ b/build_tools/github_actions/fetch_test_configurations.py @@ -197,7 +197,7 @@ def _get_script_path(script_name: str) -> str: "job_name": "miopen", "fetch_artifact_args": "--blas --miopen --tests", "timeout_minutes": 60, - "test_script": f"python {_get_script_path('test_miopen.py')}", + "test_script": f"python {_get_script_path('test_filters.py')}", "platform": ["linux", "windows"], "total_shards": 4, }, diff --git a/build_tools/github_actions/test_executable_scripts/test_filters.py b/build_tools/github_actions/test_executable_scripts/test_filters.py new file mode 100644 index 00000000000..e9b04dfe466 --- /dev/null +++ b/build_tools/github_actions/test_executable_scripts/test_filters.py @@ -0,0 +1,260 @@ +#!/usr/bin/env python3 +""" +This is a generic test runner that can test multiple components using GPU-based filtering. +This works on top of the PR - Test Filter Standardization Proof of Concept - MIOpen #3513 +in rocm-libraries (https://github.com/ROCm/rocm-libraries/pull/3513) + +Environment variables used: +- TEST_COMPONENT: Job name of the component to test (e.g., "miopen", "rocrand", "hiprand") + This is automatically set by the GitHub Actions workflow from the job_name field. + The script maps these job names to actual test directory names (e.g., "miopen" -> "MIOpen") + Defaults to "miopen" if not set. +- TEST_TYPE: "smoke" runs tests with "quick" category, otherwise runs "standard" category +- AMDGPU_FAMILIES: Parsed to extract GPU architecture (e.g., "gfx1151") + +The script checks the available tests from ctest -N and filters the appropriate tests based on the GPU architecture. +""" + +import sys +import subprocess +import re +import os + +import logging +import shlex +from pathlib import Path + +THEROCK_BIN_DIR = os.getenv("THEROCK_BIN_DIR") +SCRIPT_DIR = Path(__file__).resolve().parent +THEROCK_DIR = SCRIPT_DIR.parent.parent.parent +TEST_TYPE = os.getenv("TEST_TYPE", "quick") +AMDGPU_FAMILIES = os.getenv("AMDGPU_FAMILIES") + +# Map job names to actual test directory names +# The job names come from TEST_COMPONENT env var (set by GitHub Actions workflow) +# and need to be mapped to the actual directory names in THEROCK_BIN_DIR +COMPONENT_DIR_MAPPING = { + "miopen": "MIOpen", + "rocrand": "rocRAND", + "hiprand": "hipRAND", + "rocthrust": "rocthrust", + "rocprim": "rocprim", + "rocwmma": "rocwmma", + "hipcub": "hipcub", + "hipdnn": "hipdnn", + "hipdnn-samples": "hipdnn_samples", + "miopen_plugin": "miopen_legacy_plugin", + # Add more mappings as needed +} + +# Get the test component from environment (required - no default) +test_component_job_name = os.getenv("TEST_COMPONENT") +if not test_component_job_name: + print( + "ERROR: TEST_COMPONENT environment variable is required but not set.", + file=sys.stderr, + ) + sys.exit(1) + +TEST_COMPONENT = COMPONENT_DIR_MAPPING.get( + test_component_job_name, test_component_job_name +) + +# GTest sharding +SHARD_INDEX = os.getenv("SHARD_INDEX", 1) +TOTAL_SHARDS = os.getenv("TOTAL_SHARDS", 1) +environ_vars = os.environ.copy() +# For display purposes in the GitHub Action UI, the shard array is 1th indexed. However for shard indexes, we convert it to 0th index. +environ_vars["GTEST_SHARD_INDEX"] = str(int(SHARD_INDEX) - 1) +environ_vars["GTEST_TOTAL_SHARDS"] = str(TOTAL_SHARDS) + +# Some of our runtime kernel compilations have been relying on either ROCM_PATH being set, or ROCm being installed at +# /opt/rocm. Neither of these is true in TheRock so we need to supply ROCM_PATH to our tests. +ROCM_PATH = Path(THEROCK_BIN_DIR).resolve().parent +environ_vars["ROCM_PATH"] = str(ROCM_PATH) + +logging.basicConfig(level=logging.INFO) +############################################## + + +def get_available_gpu_exclusion_tests(): + """ + Get all available GPU exclusion test architectures from ctest -N. + + Parses test names in the format: {target_name}-{category}-{gpu_arch}-exclude + Returns a set of gpu_arch strings (e.g., 'gfx1150', 'gfx11X', 'gfx950'). + """ + try: + result = subprocess.run( + ["ctest", "-N", "--test-dir", f"{THEROCK_BIN_DIR}/{TEST_COMPONENT}"], + capture_output=True, + text=True, + check=True, + ) + + gpu_archs = set() + # Parse output for test names + # Looking for pattern: Test #N: name-category-gpuarch-exclude + # Example: Test #123: miopen_gtest-quick-gfx1150-exclude + for line in result.stdout.split("\n"): + # Look for lines containing test names with "-exclude" suffix + if "-exclude" in line and "Test #" in line: + # Extract the test name + # Format: "Test #123: miopen_gtest-quick-gfx1150-exclude" + match = re.search(r"Test\s+#\d+:\s+(.+)", line) + if match: + test_name = match.group(1).strip() + # Extract gpu_arch from pattern: *-{category}-{gpu_arch}-exclude + # Split from the right to get the parts + parts = test_name.split("-") + if len(parts) >= 3 and parts[-1] == "exclude": + # The gpu_arch is the second-to-last part + gpu_arch = parts[-2] + # Verify it looks like a GPU arch (starts with gfx) + if gpu_arch.startswith("gfx"): + gpu_archs.add(gpu_arch) + + return gpu_archs + except subprocess.CalledProcessError as e: + print(f"Error running ctest -N: {e}", file=sys.stderr) + sys.exit(1) + except FileNotFoundError: + print( + "Error: ctest not found. Make sure CMake/CTest is installed.", + file=sys.stderr, + ) + sys.exit(1) + + +def find_matching_gpu_arch(gpu_arch, available_gpu_archs): + """ + Find the most specific GPU architecture that matches the given GPU. + + Tries in order from most specific to least specific: + - Exact match (gfx1151) + - Wildcard matches (gfx115X, gfx11X, etc.) + + Returns the matching architecture string or None if no match found. + """ + # First, try exact match + if gpu_arch in available_gpu_archs: + return gpu_arch + + # Generate possible wildcard patterns from most specific to least specific + # For gfx1151: try gfx115X, gfx11X, gfx1X + possible_patterns = [] + arch_str = gpu_arch + + # Generate patterns by replacing characters with X from right to left + for i in range(len(arch_str) - 1, 0, -1): + pattern = arch_str[:i] + "X" + possible_patterns.append(pattern) + + # Try each pattern + for pattern in possible_patterns: + if pattern in available_gpu_archs: + return pattern + + return None + + +def build_ctest_command(category, gpu_arch, available_gpu_archs): + """ + Build the appropriate ctest command based on the category and GPU architecture. + + Returns a list of command arguments suitable for subprocess.run() + """ + cmd = ["ctest", "-L", category] + + # Add common ctest parameters + cmd.extend( + [ + "--output-on-failure", + "--parallel", + "8", + "--test-dir", + f"{THEROCK_BIN_DIR}/{TEST_COMPONENT}", + "-V", # Always run in verbose mode + # Shards the tests by running a specific set of tests based on starting test (shard_index) and stride (total_shards) + "--tests-information", + f"{SHARD_INDEX},,{TOTAL_SHARDS}", + ] + ) + + if gpu_arch.lower() in ["generic", "none", ""]: + # For generic/unspecified GPU, exclude all GPU-specific tests + cmd.extend(["-LE", "ex_gpu"]) + return cmd + + # Find the appropriate GPU exclusion architecture + matching_arch = find_matching_gpu_arch(gpu_arch, available_gpu_archs) + + if matching_arch: + # Run the specific GPU exclusion test using the ex_gpu label + gpu_label = f"ex_gpu_{matching_arch}" + cmd.extend(["-L", gpu_label]) + print(f"# Using GPU exclusion label: {gpu_label}") + else: + # No specific GPU exclusion found, run standard tests excluding all GPU-specific ones + cmd.extend(["-LE", "ex_gpu"]) + print(f"# No GPU exclusion found for {gpu_arch}, excluding all ex_gpu tests") + + return cmd + + +def main(): + # Use only two categories for now - quick and standard - depending on TEST_TYPE. + if TEST_TYPE and TEST_TYPE.lower() == "smoke": + category = "quick" + else: + category = "standard" + + # Use AMDGPU_FAMILIES from environment variable, extract gfx part + gpu_arch = "" + if AMDGPU_FAMILIES: + # Extract gfx pattern from AMDGPU_FAMILIES string + # Pattern matches: gfx followed by alphanumeric characters (e.g., gfx1151, gfx950, gfx11X) + match = re.search(r"gfx[0-9a-zA-Z]+", AMDGPU_FAMILIES) + if match: + gpu_arch = match.group(0) + else: + print( + f"# Warning: Could not extract GPU architecture from AMDGPU_FAMILIES='{AMDGPU_FAMILIES}', using default '{gpu_arch}'" + ) + + print( + f"# TEST_COMPONENT: {test_component_job_name} -> Test Directory: {TEST_COMPONENT}" + ) + print(f"# TEST_TYPE: {TEST_TYPE} -> Category: {category}") + print(f"# AMDGPU_FAMILIES: {AMDGPU_FAMILIES} -> GPU Architecture: {gpu_arch}") + print() + + # Get available GPU exclusion tests from ctest + print("# Discovering available GPU exclusion tests...") + available_gpu_archs = get_available_gpu_exclusion_tests() + + if available_gpu_archs: + print(f"# Found {len(available_gpu_archs)} GPU exclusion test(s)") + print(f"# Available GPU architectures: {sorted(available_gpu_archs)}") + else: + print("# Warning: No GPU exclusion tests found") + print() + + # Build the ctest command + cmd = build_ctest_command(category, gpu_arch, available_gpu_archs) + + print(f"# Running: {' '.join(cmd)}") + print() + + # Execute the command + try: + logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}") + result = subprocess.run(cmd, check=False) + return result.returncode + except Exception as e: + print(f"Error running ctest: {e}", file=sys.stderr) + return 1 + + +if __name__ == "__main__": + sys.exit(main()) From b6eb987b545690ec5aa5af0e9d60fd532d6735be Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Wed, 4 Feb 2026 09:28:55 -0600 Subject: [PATCH 14/21] Revert "Use latest ctest_miopen from rocm-libs" This reverts commit 263f70cb1460dac472f334e3a2e2d767585f1898. --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index 4b0d4c9a444..1d2e4633985 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit 4b0d4c9a444b5d1343bc731cde337b0fb537daee +Subproject commit 1d2e4633985eb8541a77459a2035e4feed90c6bb From 8b01c019066e9507999385a0cc8b47481fcfc1a7 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Wed, 4 Feb 2026 09:41:53 -0600 Subject: [PATCH 15/21] Use latest ctest_miopen from rocm-libs with increased test timeouts --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index 1d2e4633985..a828d4bd6fa 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit 1d2e4633985eb8541a77459a2035e4feed90c6bb +Subproject commit a828d4bd6fae1ec5deea56d7c821c4e5c1ad47b5 From 468a1bad848312c022bd04d6813c0a97c99092f5 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Thu, 5 Feb 2026 10:04:28 -0600 Subject: [PATCH 16/21] point to rocm-libs ctest_miopen branch with changes - 02/05 --- rocm-libraries | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm-libraries b/rocm-libraries index a828d4bd6fa..61aa044a83a 160000 --- a/rocm-libraries +++ b/rocm-libraries @@ -1 +1 @@ -Subproject commit a828d4bd6fae1ec5deea56d7c821c4e5c1ad47b5 +Subproject commit 61aa044a83ab4feefaf4b9fda1583cd44fb59ec1 From 494c848e143f6668bc72de60f236f8c179a91cd5 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Fri, 6 Feb 2026 13:38:16 -0600 Subject: [PATCH 17/21] Pass env vars to CTest --- .../github_actions/test_executable_scripts/test_filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tools/github_actions/test_executable_scripts/test_filters.py b/build_tools/github_actions/test_executable_scripts/test_filters.py index e9b04dfe466..fc8db81bfaa 100644 --- a/build_tools/github_actions/test_executable_scripts/test_filters.py +++ b/build_tools/github_actions/test_executable_scripts/test_filters.py @@ -249,7 +249,7 @@ def main(): # Execute the command try: logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}") - result = subprocess.run(cmd, check=False) + result = subprocess.run(cmd, cwd=THEROCK_DIR, env=environ_vars, check=False) return result.returncode except Exception as e: print(f"Error running ctest: {e}", file=sys.stderr) From a8251fc4c6774a843b800d541681c3b4445d74df Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Mon, 9 Feb 2026 12:42:48 -0600 Subject: [PATCH 18/21] Changes to include renaming of tests from the format {target_name}-{category}-{gpu_arch}-exclude to {target_name}-{category}-{gpu_arch}-suite --- .../test_executable_scripts/test_filters.py | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/build_tools/github_actions/test_executable_scripts/test_filters.py b/build_tools/github_actions/test_executable_scripts/test_filters.py index fc8db81bfaa..40b5f59123a 100644 --- a/build_tools/github_actions/test_executable_scripts/test_filters.py +++ b/build_tools/github_actions/test_executable_scripts/test_filters.py @@ -77,11 +77,11 @@ ############################################## -def get_available_gpu_exclusion_tests(): +def get_available_gpu_suite_tests(): """ - Get all available GPU exclusion test architectures from ctest -N. + Get all available specific GPU tests from ctest -N. - Parses test names in the format: {target_name}-{category}-{gpu_arch}-exclude + Parses test names in the format: {target_name}-{category}-{gpu_arch}-suite Returns a set of gpu_arch strings (e.g., 'gfx1150', 'gfx11X', 'gfx950'). """ try: @@ -94,20 +94,19 @@ def get_available_gpu_exclusion_tests(): gpu_archs = set() # Parse output for test names - # Looking for pattern: Test #N: name-category-gpuarch-exclude - # Example: Test #123: miopen_gtest-quick-gfx1150-exclude + # Looking for pattern: Test #N: name-category-gpuarch-suite + # Example: Test #123: miopen_gtest-quick-gfx1150-suite for line in result.stdout.split("\n"): - # Look for lines containing test names with "-exclude" suffix - if "-exclude" in line and "Test #" in line: + # Look for lines containing test names with "-suite" suffix + if "-suite" in line and "Test #" in line: # Extract the test name - # Format: "Test #123: miopen_gtest-quick-gfx1150-exclude" match = re.search(r"Test\s+#\d+:\s+(.+)", line) if match: test_name = match.group(1).strip() - # Extract gpu_arch from pattern: *-{category}-{gpu_arch}-exclude + # Extract gpu_arch from pattern: *-{category}-{gpu_arch}-suite # Split from the right to get the parts parts = test_name.split("-") - if len(parts) >= 3 and parts[-1] == "exclude": + if len(parts) >= 3 and parts[-1] == "suite": # The gpu_arch is the second-to-last part gpu_arch = parts[-2] # Verify it looks like a GPU arch (starts with gfx) @@ -182,22 +181,22 @@ def build_ctest_command(category, gpu_arch, available_gpu_archs): ) if gpu_arch.lower() in ["generic", "none", ""]: - # For generic/unspecified GPU, exclude all GPU-specific tests + # For generic/unspecified GPU, exclude all GPU-specific suite tests cmd.extend(["-LE", "ex_gpu"]) return cmd - # Find the appropriate GPU exclusion architecture + # Find the appropriate GPU suite matching_arch = find_matching_gpu_arch(gpu_arch, available_gpu_archs) if matching_arch: - # Run the specific GPU exclusion test using the ex_gpu label + # Run the specific GPU suite using the ex_gpu label gpu_label = f"ex_gpu_{matching_arch}" cmd.extend(["-L", gpu_label]) - print(f"# Using GPU exclusion label: {gpu_label}") + print(f"# Using GPU suite label: {gpu_label}") else: - # No specific GPU exclusion found, run standard tests excluding all GPU-specific ones + # No specific GPU suite found, run standard tests excluding all GPU-specific ones cmd.extend(["-LE", "ex_gpu"]) - print(f"# No GPU exclusion found for {gpu_arch}, excluding all ex_gpu tests") + print(f"# No GPU suite found for {gpu_arch}, excluding all ex_gpu tests") return cmd @@ -229,15 +228,15 @@ def main(): print(f"# AMDGPU_FAMILIES: {AMDGPU_FAMILIES} -> GPU Architecture: {gpu_arch}") print() - # Get available GPU exclusion tests from ctest - print("# Discovering available GPU exclusion tests...") - available_gpu_archs = get_available_gpu_exclusion_tests() + # Get available GPU suite tests from ctest + print("# Discovering available GPU suite tests...") + available_gpu_archs = get_available_gpu_suite_tests() if available_gpu_archs: - print(f"# Found {len(available_gpu_archs)} GPU exclusion test(s)") + print(f"# Found {len(available_gpu_archs)} GPU suite test(s)") print(f"# Available GPU architectures: {sorted(available_gpu_archs)}") else: - print("# Warning: No GPU exclusion tests found") + print("# Warning: No GPU specific test suites available") print() # Build the ctest command From 9dcfbab71935ecf78382d489836679a1404beb07 Mon Sep 17 00:00:00 2001 From: Dileep Ravindranathan Date: Mon, 9 Feb 2026 12:46:04 -0600 Subject: [PATCH 19/21] Restore test_miopen.py from main since tests are triggered with test_filters.py now --- .../test_executable_scripts/test_miopen.py | 433 ++++++++++-------- 1 file changed, 234 insertions(+), 199 deletions(-) diff --git a/build_tools/github_actions/test_executable_scripts/test_miopen.py b/build_tools/github_actions/test_executable_scripts/test_miopen.py index 846c16c8ab5..f605621e360 100644 --- a/build_tools/github_actions/test_executable_scripts/test_miopen.py +++ b/build_tools/github_actions/test_executable_scripts/test_miopen.py @@ -1,31 +1,16 @@ -#!/usr/bin/env python3 -""" -Run MIOpen CTest with appropriate GPU exclusion labels based on hierarchical matching. -This works on top of the PR - Test Filter Standardization Proof of Concept - MIOpen #3513 -in rocm-libraries (https://github.com/ROCm/rocm-libraries/pull/3513) - -The script reads TEST_TYPE and AMDGPU_FAMILIES environment variables: -- TEST_TYPE="smoke" -> runs tests with "quick" category -- TEST_TYPE= -> runs tests with "standard" category -- AMDGPU_FAMILIES is parsed to extract GPU architecture (e.g., "gfx1151") - -The script checks the available tests from ctest -N and filters the appropriate tests based on the GPU architecture. -""" - -import sys -import subprocess -import re -import os - import logging +import os import shlex +import subprocess from pathlib import Path +import platform THEROCK_BIN_DIR = os.getenv("THEROCK_BIN_DIR") SCRIPT_DIR = Path(__file__).resolve().parent THEROCK_DIR = SCRIPT_DIR.parent.parent.parent -TEST_TYPE = os.getenv("TEST_TYPE", "quick") + AMDGPU_FAMILIES = os.getenv("AMDGPU_FAMILIES") +os_type = platform.system().lower() # GTest sharding SHARD_INDEX = os.getenv("SHARD_INDEX", 1) @@ -41,184 +26,234 @@ environ_vars["ROCM_PATH"] = str(ROCM_PATH) logging.basicConfig(level=logging.INFO) -############################################## - - -def get_available_gpu_exclusion_tests(): - """ - Get all available GPU exclusion test architectures from ctest -N. - - Parses test names in the format: {target_name}-{category}-{gpu_arch}-exclude - Returns a set of gpu_arch strings (e.g., 'gfx1150', 'gfx11X', 'gfx950'). - """ - try: - result = subprocess.run( - ["ctest", "-N", "--test-dir", f"{THEROCK_BIN_DIR}/MIOpen"], - capture_output=True, - text=True, - check=True, - ) - - gpu_archs = set() - # Parse output for test names - # Looking for pattern: Test #N: name-category-gpuarch-exclude - # Example: Test #123: miopen_gtest-quick-gfx1150-exclude - for line in result.stdout.split("\n"): - # Look for lines containing test names with "-exclude" suffix - if "-exclude" in line and "Test #" in line: - # Extract the test name - # Format: "Test #123: miopen_gtest-quick-gfx1150-exclude" - match = re.search(r"Test\s+#\d+:\s+(.+)", line) - if match: - test_name = match.group(1).strip() - # Extract gpu_arch from pattern: *-{category}-{gpu_arch}-exclude - # Split from the right to get the parts - parts = test_name.split("-") - if len(parts) >= 3 and parts[-1] == "exclude": - # The gpu_arch is the second-to-last part - gpu_arch = parts[-2] - # Verify it looks like a GPU arch (starts with gfx) - if gpu_arch.startswith("gfx"): - gpu_archs.add(gpu_arch) - - return gpu_archs - except subprocess.CalledProcessError as e: - print(f"Error running ctest -N: {e}", file=sys.stderr) - sys.exit(1) - except FileNotFoundError: - print( - "Error: ctest not found. Make sure CMake/CTest is installed.", - file=sys.stderr, - ) - sys.exit(1) - - -def find_matching_gpu_arch(gpu_arch, available_gpu_archs): - """ - Find the most specific GPU architecture that matches the given GPU. - - Tries in order from most specific to least specific: - - Exact match (gfx1151) - - Wildcard matches (gfx115X, gfx11X, etc.) - - Returns the matching architecture string or None if no match found. - """ - # First, try exact match - if gpu_arch in available_gpu_archs: - return gpu_arch - - # Generate possible wildcard patterns from most specific to least specific - # For gfx1151: try gfx115X, gfx11X, gfx1X - possible_patterns = [] - arch_str = gpu_arch - - # Generate patterns by replacing characters with X from right to left - for i in range(len(arch_str) - 1, 0, -1): - pattern = arch_str[:i] + "X" - possible_patterns.append(pattern) - - # Try each pattern - for pattern in possible_patterns: - if pattern in available_gpu_archs: - return pattern - - return None - - -def build_ctest_command(category, gpu_arch, available_gpu_archs): - """ - Build the appropriate ctest command based on the category and GPU architecture. - - Returns a list of command arguments suitable for subprocess.run() - """ - cmd = ["ctest", "-L", category] - - # Add common ctest parameters - cmd.extend( - [ - "--output-on-failure", - "--parallel", - "8", - "--test-dir", - f"{THEROCK_BIN_DIR}/MIOpen", - "-V", # Always run in verbose mode - # Shards the tests by running a specific set of tests based on starting test (shard_index) and stride (total_shards) - "--tests-information", - f"{SHARD_INDEX},,{TOTAL_SHARDS}", - ] + +########################################### + +positive_filter = [] +negative_filter = [] + +# Fusion # +positive_filter.append("*Fusion*") + +# Batch Normalization # +positive_filter.append("*/GPU_BNBWD*_*") +positive_filter.append("*/GPU_BNOCLBWD*_*") +positive_filter.append("*/GPU_BNFWD*_*") +positive_filter.append("*/GPU_BNOCLFWD*_*") +positive_filter.append("*/GPU_BNInfer*_*") +positive_filter.append("*/GPU_BNActivInfer_*") +positive_filter.append("*/GPU_BNOCLInfer*_*") +positive_filter.append("*/GPU_bn_infer*_*") + +# CPU tests +positive_filter.append("CPU_*") # tests without a suite +positive_filter.append("*/CPU_*") # tests with a suite + +# Different +positive_filter.append("*/GPU_Cat_*") +positive_filter.append("*/GPU_ConvBiasActiv*") + +# Convolutions +positive_filter.append("*/GPU_Conv*") +positive_filter.append("*/GPU_conv*") + +# Solvers +positive_filter.append("*/GPU_UnitTestConv*") + +# Misc + +positive_filter.append("*/GPU_GetitemBwd*") +positive_filter.append("*/GPU_GLU_*") + +positive_filter.append("*/GPU_GroupConv*") +positive_filter.append("*/GPU_GroupNorm_*") +positive_filter.append("*/GPU_GRUExtra_*") +positive_filter.append("*/GPU_TestActivation*") +positive_filter.append("*/GPU_HipBLASLtGEMMTest*") +positive_filter.append("*/GPU_KernelTuningNetTestConv*") +positive_filter.append("*/GPU_Kthvalue_*") +positive_filter.append("*/GPU_LayerNormTest*") +positive_filter.append("*/GPU_LayoutTransposeTest_*") +positive_filter.append("*/GPU_Lrn*") +positive_filter.append("*/GPU_lstm_extra*") + +positive_filter.append("*/GPU_MultiMarginLoss_*") +positive_filter.append("*/GPU_ConvNonpack*") +positive_filter.append("*/GPU_PerfConfig_HipImplicitGemm*") +positive_filter.append("*/GPU_AsymPooling2d_*") +positive_filter.append("*/GPU_WidePooling2d_*") +positive_filter.append("*/GPU_PReLU_*") +positive_filter.append("*/GPU_Reduce*") +positive_filter.append("*/GPU_reduce_custom_*") +positive_filter.append("*/GPU_regression_issue_*") +positive_filter.append("*/GPU_RNNExtra_*") +positive_filter.append("*/GPU_RoPE*") +positive_filter.append("*/GPU_SoftMarginLoss*") +positive_filter.append("*/GPU_T5LayerNormTest_*") +positive_filter.append("*/GPU_Op4dTensorGenericTest_*") +positive_filter.append("*/GPU_TernaryTensorOps_*") +positive_filter.append("*/GPU_unaryTensorOps_*") +positive_filter.append("*/GPU_Transformers*") +positive_filter.append("*/GPU_TunaNetTest_*") +positive_filter.append("*/GPU_UnitTestActivationDescriptor_*") +positive_filter.append("*/GPU_FinInterfaceTest*") +positive_filter.append("*/GPU_VecAddTest_*") + +positive_filter.append("*/GPU_KernelTuningNetTest*") + +positive_filter.append("*/GPU_Bwd_Mha_*") +positive_filter.append("*/GPU_Fwd_Mha_*") +positive_filter.append("*/GPU_Softmax*") +positive_filter.append("*/GPU_Dropout*") +positive_filter.append("*/GPU_MhaBackward_*") +positive_filter.append("*/GPU_MhaForward_*") +positive_filter.append("*GPU_TestMhaFind20*") + +############################################# + +negative_filter.append("*DeepBench*") +negative_filter.append("*MIOpenTestConv*") + +# For sake of time saving on pre-commit step +#################################################### +negative_filter.append("Full/GPU_Reduce_FP64*") # 4 min 19 sec +negative_filter.append("Full/GPU_BNOCLFWDTrainSerialRun3D_BFP16*") # 3 min 37 sec +negative_filter.append("Full/GPU_Lrn_FP32*") # 2 min 50 sec +negative_filter.append("Full/GPU_Lrn_FP16*") # 2 min 20 sec +negative_filter.append("Full/GPU_BNOCLInferSerialRun3D_BFP16*") # 2 min 19 sec +negative_filter.append("Smoke/GPU_BNOCLFWDTrainLarge2D_BFP16*") # 1 min 55 sec +negative_filter.append("Smoke/GPU_BNOCLInferLarge2D_BFP16*") # 1 min 48 sec +negative_filter.append("Full/GPU_BNOCLBWDSerialRun3D_BFP16*") # 1 min 28 sec +negative_filter.append("Smoke/GPU_BNOCLBWDLarge2D_BFP16*") # 1 min 19 sec + +negative_filter.append("Full/GPU_UnitTestActivationDescriptor_FP32*") # 1 min 23 sec +negative_filter.append("Full/GPU_UnitTestActivationDescriptor_FP16*") # 1 min 0 sec + +negative_filter.append( + "Smoke/GPU_BNOCLBWDLargeFusedActivation2D_BFP16*" +) # 0 min 52 sec +negative_filter.append("Smoke/GPU_BNOCLBWDLargeFusedActivation2D_FP16*") # 0 min 49 sec + +negative_filter.append("Full/GPU_ConvGrpBiasActivInfer_BFP16*") # 0 min 40 sec +negative_filter.append("Full/GPU_ConvGrpBiasActivInfer_FP32*") # 0 min 38 sec +negative_filter.append("Full/GPU_ConvGrpBiasActivInfer_FP16*") # 0 min 25 sec + +negative_filter.append("Full/GPU_ConvGrpActivInfer_BFP16*") # 0 min 42 sec +negative_filter.append("Full/GPU_ConvGrpActivInfer_FP32*") # 0 min 35 sec +negative_filter.append("Full/GPU_ConvGrpActivInfer_FP16*") # 0 min 25 sec + +negative_filter.append("Full/GPU_ConvGrpBiasActivInfer3D_BFP16*") # 0 min 27 sec +negative_filter.append("Full/GPU_ConvGrpBiasActivInfer3D_FP32*") # 0 min 25 sec +negative_filter.append("Full/GPU_ConvGrpBiasActivInfer3D_FP16*") # 0 min 19 sec + +negative_filter.append("Full/GPU_ConvGrpActivInfer3D_BFP16*") # 0 min 27 sec +negative_filter.append("Full/GPU_ConvGrpActivInfer3D_FP32*") # 0 min 22 sec +negative_filter.append("Full/GPU_ConvGrpActivInfer3D_FP16*") # 0 min 16 sec + +# Flaky tests +TEST_TO_IGNORE = { + "gfx1151": { + # TODO(#3202): Re-enable tests once issues are resolved + "windows": ["Full/GPU_UnitTestConvSolverGemmBwdRestBwd_FP16.GemmBwdRest/0"] + } +} + +if AMDGPU_FAMILIES in TEST_TO_IGNORE and os_type in TEST_TO_IGNORE[AMDGPU_FAMILIES]: + ignored_tests = TEST_TO_IGNORE[AMDGPU_FAMILIES][os_type] + for ignored_test in ignored_tests: + negative_filter.append(ignored_test) + + +# Don't run while investigating to allow CI to pass +# Jira Ticket ALMIOPEN-990 +negative_filter.append("*/GPU_MIOpenDriver*") + +# TODO(rocm-libraries#2266): re-enable test for gfx950-dcgpu +if AMDGPU_FAMILIES == "gfx950-dcgpu": + negative_filter.append("*DBSync*") + +# Tests to be filtered for navi +# 1- Ignore gfx942 tests +# TODO: There is no FP32 wmma on Navi, remove all FP32 conv tests. These should already be skipped via applicability for +# CK solvers +if AMDGPU_FAMILIES in ["gfx110X-all", "gfx1150", "gfx1151", "gfx120X-all"]: + # These are ignored in miopen + negative_filter.append( + "Smoke/GPU_BNFWDTrainLargeFusedActivation2D_FP32.BnV2LargeFWD_TrainCKfp32Activation/NCHW_BNSpatial_testBNAPIV1_Dim_2_test_id_32" + ) # Temporarily disabled until gfx1151 CI nodes have fw 31 or higher installed + negative_filter.append( + "Smoke/GPU_BNFWDTrainLarge2D_FP32.BnV2LargeFWD_TrainCKfp32/NCHW_BNSpatial_testBNAPIV2_Dim_2_test_id_64" + ) # Temporarily disabled until gfx1151 CI nodes have fw 31 or higher installed + # this could address 2 + negative_filter.append( + "*SerialRun3D*" + ) # These FP32 SerialRun3D tests use so much memory that they have a risk of timing out the machine during tests + # this could address 1 + negative_filter.append("*gfx942*") + # List of currently failing tests + negative_filter.append("*GPU_UnitTestConvSolverFFTFwd_FP32*") + negative_filter.append("*GPU_UnitTestConvSolverFFTBwd_FP32*") + negative_filter.append("*GPU_TernaryTensorOps_FP64*") + negative_filter.append("*GPU_TernaryTensorOps_FP16*") + negative_filter.append("*GPU_TernaryTensorOps_FP32*") + negative_filter.append("*GPU_Op4dTensorGenericTest_FP32*") + negative_filter.append("*GPU_UnitTestActivationDescriptor_FP16*") + negative_filter.append("*GPU_UnitTestActivationDescriptor_FP32*") + negative_filter.append("*CPU_TuningPolicy_NONE*") + negative_filter.append("*GPU_Dropout_FP32*") + negative_filter.append("*GPU_Dropout_FP16*") + + # TODO: We need to work to re-enable these + negative_filter.append( + "*GPU_GroupConv3D_BackwardData_FP16.GroupConv3D_BackwardData_half_Test*" + ) + negative_filter.append( + "*GPU_GroupConv3D_BackwardData_BFP16.GroupConv3D_BackwardData_bfloat16_Test*" + ) + negative_filter.append( + "*GPU_UnitTestConvSolverImplicitGemmGroupWrwXdlops_BFP16.ConvHipImplicitGemmGroupWrwXdlops*" + ) + + negative_filter.append("Smoke/GPU_MultiMarginLoss*") + + negative_filter.append( + "*CPU_UnitTestConvSolverImplicitGemmGroupWrwXdlopsDevApplicability_FP16.ConvHipImplicitGemmGroupWrwXdlops*" + ) + +#################################################### + +# Creating a smoke test filter +smoke_filter = [ + # Batch norm FWD smoke tests + "Smoke/GPU_BNCKFWDTrainLarge2D_FP16*", + "Smoke/GPU_BNOCLFWDTrainLarge2D_FP16*", + "Smoke/GPU_BNOCLFWDTrainLarge3D_FP16*", + "Smoke/GPU_BNCKFWDTrainLarge2D_BFP16*", + "Smoke/GPU_BNOCLFWDTrainLarge2D_BFP16*", + "Smoke/GPU_BNOCLFWDTrainLarge3D_BFP16*", + # CK Grouped FWD Conv smoke tests + "Smoke/GPU_UnitTestConvSolverImplicitGemmFwdXdlops_FP16*", + "Smoke/GPU_UnitTestConvSolverImplicitGemmFwdXdlops_BFP16*", +] + +# TODO(rocm-libraries#2266): re-enable test for gfx950-dcgpu +if AMDGPU_FAMILIES != "gfx950-dcgpu": + smoke_filter.append("*DBSync*") + positive_filter.append("*DBSync*") + +#################################################### + +# If smoke tests are enabled, we run smoke tests only. +# Otherwise, we run the normal test suite +test_type = os.getenv("TEST_TYPE", "full") +if test_type == "smoke": + test_filter = "--gtest_filter=" + ":".join(smoke_filter) +else: + test_filter = ( + "--gtest_filter=" + ":".join(positive_filter) + "-" + ":".join(negative_filter) ) +############################################# - if gpu_arch.lower() in ["generic", "none", ""]: - # For generic/unspecified GPU, exclude all GPU-specific tests - cmd.extend(["-LE", "ex_gpu"]) - return cmd - - # Find the appropriate GPU exclusion architecture - matching_arch = find_matching_gpu_arch(gpu_arch, available_gpu_archs) - - if matching_arch: - # Run the specific GPU exclusion test using the ex_gpu label - gpu_label = f"ex_gpu_{matching_arch}" - cmd.extend(["-L", gpu_label]) - print(f"# Using GPU exclusion label: {gpu_label}") - else: - # No specific GPU exclusion found, run standard tests excluding all GPU-specific ones - cmd.extend(["-LE", "ex_gpu"]) - print(f"# No GPU exclusion found for {gpu_arch}, excluding all ex_gpu tests") - - return cmd - - -def main(): - # Use only two categories for now - quick and standard - depending on TEST_TYPE. - if TEST_TYPE and TEST_TYPE.lower() == "smoke": - category = "quick" - else: - category = "standard" - - # Use AMDGPU_FAMILIES from environment variable, extract gfx part - gpu_arch = "" - if AMDGPU_FAMILIES: - # Extract gfx pattern from AMDGPU_FAMILIES string - # Pattern matches: gfx followed by alphanumeric characters (e.g., gfx1151, gfx950, gfx11X) - match = re.search(r"gfx[0-9a-zA-Z]+", AMDGPU_FAMILIES) - if match: - gpu_arch = match.group(0) - else: - print( - f"# Warning: Could not extract GPU architecture from AMDGPU_FAMILIES='{AMDGPU_FAMILIES}', using default '{gpu_arch}'" - ) - - print(f"# TEST_TYPE: {TEST_TYPE} -> Category: {category}") - print(f"# AMDGPU_FAMILIES: {AMDGPU_FAMILIES} -> GPU Architecture: {gpu_arch}") - print() - - # Get available GPU exclusion tests from ctest - print("# Discovering available GPU exclusion tests...") - available_gpu_archs = get_available_gpu_exclusion_tests() - - if available_gpu_archs: - print(f"# Found {len(available_gpu_archs)} GPU exclusion test(s)") - print(f"# Available GPU architectures: {sorted(available_gpu_archs)}") - else: - print("# Warning: No GPU exclusion tests found") - print() - - # Build the ctest command - cmd = build_ctest_command(category, gpu_arch, available_gpu_archs) - - print(f"# Running: {' '.join(cmd)}") - print() - - # Execute the command - try: - logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}") - result = subprocess.run(cmd, check=False) - return result.returncode - except Exception as e: - print(f"Error running ctest: {e}", file=sys.stderr) - return 1 - - -if __name__ == "__main__": - sys.exit(main()) +cmd = [f"{THEROCK_BIN_DIR}/miopen_gtest", test_filter] +logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}") +subprocess.run(cmd, cwd=THEROCK_DIR, check=True, env=environ_vars) From 9efe6970c11483032c08094405f296ba393a9b04 Mon Sep 17 00:00:00 2001 From: Tony Davis Date: Mon, 23 Feb 2026 22:27:36 +0000 Subject: [PATCH 20/21] Update test configuration to use `test_filters.py` for the `rocblas` job and add `rocblas` to the component directory mapping in `test_filters.py`. --- build_tools/github_actions/fetch_test_configurations.py | 2 +- .../github_actions/test_executable_scripts/test_filters.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build_tools/github_actions/fetch_test_configurations.py b/build_tools/github_actions/fetch_test_configurations.py index 16ddc0fcff7..1dbbcb68acc 100644 --- a/build_tools/github_actions/fetch_test_configurations.py +++ b/build_tools/github_actions/fetch_test_configurations.py @@ -44,7 +44,7 @@ def _get_script_path(script_name: str) -> str: "job_name": "rocblas", "fetch_artifact_args": "--blas --tests", "timeout_minutes": 15, - "test_script": f"python {_get_script_path('test_rocblas.py')}", + "test_script": f"python {_get_script_path('test_filters.py')}", "platform": ["linux", "windows"], "total_shards": 1, }, diff --git a/build_tools/github_actions/test_executable_scripts/test_filters.py b/build_tools/github_actions/test_executable_scripts/test_filters.py index 40b5f59123a..23667c5d748 100644 --- a/build_tools/github_actions/test_executable_scripts/test_filters.py +++ b/build_tools/github_actions/test_executable_scripts/test_filters.py @@ -35,6 +35,7 @@ # and need to be mapped to the actual directory names in THEROCK_BIN_DIR COMPONENT_DIR_MAPPING = { "miopen": "MIOpen", + "rocblas": "rocblas", "rocrand": "rocRAND", "hiprand": "hipRAND", "rocthrust": "rocthrust", From 1ed302c2ae3827907bb41728793b336d915a0a39 Mon Sep 17 00:00:00 2001 From: Tony Davis Date: Mon, 23 Feb 2026 23:17:40 +0000 Subject: [PATCH 21/21] Revert "Update test configuration to use `test_filters.py` for the `rocblas` job and add `rocblas` to the component directory mapping in `test_filters.py`." This reverts commit 9efe6970c11483032c08094405f296ba393a9b04. --- build_tools/github_actions/fetch_test_configurations.py | 2 +- .../github_actions/test_executable_scripts/test_filters.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/build_tools/github_actions/fetch_test_configurations.py b/build_tools/github_actions/fetch_test_configurations.py index 1dbbcb68acc..16ddc0fcff7 100644 --- a/build_tools/github_actions/fetch_test_configurations.py +++ b/build_tools/github_actions/fetch_test_configurations.py @@ -44,7 +44,7 @@ def _get_script_path(script_name: str) -> str: "job_name": "rocblas", "fetch_artifact_args": "--blas --tests", "timeout_minutes": 15, - "test_script": f"python {_get_script_path('test_filters.py')}", + "test_script": f"python {_get_script_path('test_rocblas.py')}", "platform": ["linux", "windows"], "total_shards": 1, }, diff --git a/build_tools/github_actions/test_executable_scripts/test_filters.py b/build_tools/github_actions/test_executable_scripts/test_filters.py index 23667c5d748..40b5f59123a 100644 --- a/build_tools/github_actions/test_executable_scripts/test_filters.py +++ b/build_tools/github_actions/test_executable_scripts/test_filters.py @@ -35,7 +35,6 @@ # and need to be mapped to the actual directory names in THEROCK_BIN_DIR COMPONENT_DIR_MAPPING = { "miopen": "MIOpen", - "rocblas": "rocblas", "rocrand": "rocRAND", "hiprand": "hipRAND", "rocthrust": "rocthrust",