From 388edb1b57e6c9ad38efb13a24bdbfc74c3eecdf Mon Sep 17 00:00:00 2001 From: Geo Min Date: Wed, 8 Oct 2025 14:38:38 -0700 Subject: [PATCH] [TheRock CI] Adding profiler builds (#1301) * Adding profiler for TheRock CI * adding temp test for rocproiler * Removing subtrees * PR comment --- .github/scripts/therock_configure_ci.py | 1 - .github/scripts/therock_matrix.py | 21 +++++++++++++++------ .github/workflows/therock-ci-linux.yml | 2 -- .github/workflows/therock-ci-windows.yml | 2 -- .github/workflows/therock-ci.yml | 2 -- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/scripts/therock_configure_ci.py b/.github/scripts/therock_configure_ci.py index 851c91a54c..a24ba9cbb7 100644 --- a/.github/scripts/therock_configure_ci.py +++ b/.github/scripts/therock_configure_ci.py @@ -9,7 +9,6 @@ import fnmatch import json import logging import subprocess -import sys from therock_matrix import subtree_to_project_map, project_map import time from typing import Mapping, Optional, Iterable diff --git a/.github/scripts/therock_matrix.py b/.github/scripts/therock_matrix.py index c2a731764b..eb327786a0 100644 --- a/.github/scripts/therock_matrix.py +++ b/.github/scripts/therock_matrix.py @@ -2,17 +2,26 @@ This dictionary is used to map specific file directory changes to the corresponding build flag and tests """ subtree_to_project_map = { - "projects/clr": "core", - "projects/hip": "core", - "projects/hip-tests": "core", - "projects/rocminfo": "core", - "projects/rocr-runtime": "core", + 'projects/aqlprofile': 'profiler', + 'projects/clr': 'core', + 'projects/hip': 'core', + 'projects/hip-tests': 'core', + 'projects/rocminfo': 'core', + 'projects/rocprofiler': 'profiler', + 'projects/rocprofiler-compute': 'profiler', + 'projects/rocprofiler-sdk': 'profiler', + 'projects/rocprofiler-systems': 'profiler', + 'projects/rocr-runtime': 'core', + 'projects/roctracer': 'profiler' } project_map = { "core": { "cmake_options": "-DTHEROCK_ENABLE_CORE=ON -DTHEROCK_ENABLE_HIP_RUNTIME=ON -DTHEROCK_ENABLE_ALL=OFF", "project_to_test": "hip-tests", - "subtree_checkout": "projects/clr\nprojects/hip\nprojects/hip-tests\nprojects/rocminfo\nprojects/rocr-runtime", + }, + "profiler": { + "cmake_options": "-DTHEROCK_ENABLE_PROFILER=ON -DTHEROCK_ENABLE_ALL=OFF", + "project_to_test": "rocprofiler-tests", }, } diff --git a/.github/workflows/therock-ci-linux.yml b/.github/workflows/therock-ci-linux.yml index c27c444f6c..b747ce3aff 100644 --- a/.github/workflows/therock-ci-linux.yml +++ b/.github/workflows/therock-ci-linux.yml @@ -7,8 +7,6 @@ on: type: string project_to_test: type: string - subtree_checkout: - type: string permissions: diff --git a/.github/workflows/therock-ci-windows.yml b/.github/workflows/therock-ci-windows.yml index 7f14101167..a440a6bd73 100644 --- a/.github/workflows/therock-ci-windows.yml +++ b/.github/workflows/therock-ci-windows.yml @@ -7,8 +7,6 @@ on: type: string project_to_test: type: string - subtree_checkout: - type: string permissions: contents: read diff --git a/.github/workflows/therock-ci.yml b/.github/workflows/therock-ci.yml index 515f1f3b78..8c56bc6cd7 100644 --- a/.github/workflows/therock-ci.yml +++ b/.github/workflows/therock-ci.yml @@ -90,7 +90,6 @@ jobs: with: cmake_options: ${{ matrix.projects.cmake_options }} project_to_test: ${{ matrix.projects.project_to_test }} - subtree_checkout: ${{ matrix.projects.subtree_checkout }} therock-ci-windows: name: Windows (${{ matrix.projects.project_to_test }}) @@ -108,7 +107,6 @@ jobs: with: cmake_options: ${{ matrix.projects.cmake_options }} project_to_test: ${{ matrix.projects.project_to_test }} - subtree_checkout: ${{ matrix.projects.subtree_checkout }} therock_ci_summary: name: TheRock CI Summary