From 77a8a7ca070c68b18726e8e626149b3f7b0aef87 Mon Sep 17 00:00:00 2001 From: Abhilash Reddy Endurthi Date: Thu, 16 Jul 2026 22:38:59 -0700 Subject: [PATCH] build: wire TEST_SUBPROJECTS for math-libs and ml-libs components Add TEST_SUBPROJECTS entries to therock_cmake_subproject_declare blocks so downstream consumers are tracked for testing: - hipBLASLt: hipblasltprovider, MIOpen, rocBLAS - rocBLAS: hipblasltprovider, hipSPARSE, MIOpen, rocSOLVER, rocSPARSE, rocWMMA - rocSPARSE: rocPRIM, rocBLAS - hipBLAS: MIOpen, rocWMMA, hipSOLVER, hipSPARSE, rocSPARSE - rocPRIM: rocSOLVER - libhipcxx: rocThrust - composable_kernel: MIOpen - MIOpen: hipDNN_samples, hipdnn_integration_tests - miopenprovider: hipDNN_samples Co-Authored-By: Claude Sonnet 4 --- math-libs/BLAS/CMakeLists.txt | 14 ++++++++++++++ math-libs/CMakeLists.txt | 4 ++++ ml-libs/CMakeLists.txt | 3 +++ 3 files changed, 21 insertions(+) diff --git a/math-libs/BLAS/CMakeLists.txt b/math-libs/BLAS/CMakeLists.txt index 4671b01065d..9ab2a8230bd 100644 --- a/math-libs/BLAS/CMakeLists.txt +++ b/math-libs/BLAS/CMakeLists.txt @@ -160,7 +160,9 @@ therock_cmake_subproject_declare(hipBLASLt ${optional_profiler_deps} TEST_SUBPROJECTS hipSPARSELt + hipblasltprovider MIOpen + rocBLAS ) therock_cmake_subproject_glob_c_sources(hipBLASLt SUBDIRS @@ -238,7 +240,12 @@ therock_cmake_subproject_declare(rocBLAS ${optional_profiler_deps} TEST_SUBPROJECTS hipBLAS + hipblasltprovider + hipSPARSE + MIOpen rocSOLVER + rocSPARSE + rocWMMA ) therock_cmake_subproject_glob_c_sources(rocBLAS SUBDIRS @@ -283,6 +290,8 @@ if(THEROCK_ENABLE_SPARSE) hipSPARSE rocSOLVER hipSOLVER + rocPRIM + rocBLAS ) therock_cmake_subproject_glob_c_sources(rocSPARSE SUBDIRS @@ -515,6 +524,11 @@ therock_cmake_subproject_declare(hipBLAS rocBLAS ${hipBLAS_optional_deps} TEST_SUBPROJECTS + MIOpen + rocWMMA + hipSOLVER + hipSPARSE + rocSPARSE ) therock_cmake_subproject_glob_c_sources(hipBLAS SUBDIRS diff --git a/math-libs/CMakeLists.txt b/math-libs/CMakeLists.txt index 0b53cc2e4b5..3d79b263810 100644 --- a/math-libs/CMakeLists.txt +++ b/math-libs/CMakeLists.txt @@ -124,6 +124,7 @@ if(THEROCK_ENABLE_PRIM) hipCUB rocThrust rocSPARSE + rocSOLVER ) therock_cmake_subproject_glob_c_sources(rocPRIM SUBDIRS @@ -544,6 +545,7 @@ if(THEROCK_ENABLE_LIBHIPCXX) hip-clr hipcc TEST_SUBPROJECTS + rocThrust ) therock_cmake_subproject_glob_c_sources(libhipcxx SUBDIRS @@ -623,6 +625,8 @@ if(_ck_enabled) rocRAND ${THEROCK_BUNDLED_BZIP2} ${optional_profiler_deps} + TEST_SUBPROJECTS + MIOpen ) therock_cmake_subproject_provide_package(composable_kernel composable_kernel lib/cmake/composable_kernel) diff --git a/ml-libs/CMakeLists.txt b/ml-libs/CMakeLists.txt index f9998a542b5..84f7872dad8 100644 --- a/ml-libs/CMakeLists.txt +++ b/ml-libs/CMakeLists.txt @@ -67,6 +67,8 @@ if(THEROCK_ENABLE_MIOPEN) ${optional_profiler_deps} TEST_SUBPROJECTS miopenprovider + hipDNN_samples + hipdnn_integration_tests ) therock_cmake_subproject_provide_package(MIOpen miopen lib/cmake/miopen) therock_cmake_subproject_activate(MIOpen) @@ -231,6 +233,7 @@ if(THEROCK_ENABLE_MIOPENPROVIDER) hipdnn_integration_tests MIOpen TEST_SUBPROJECTS + hipDNN_samples ) therock_cmake_subproject_glob_c_sources(miopenprovider SUBDIRS