Skip to content

Commit

Permalink
Adding check for active components from papi_component_avail for papi…
Browse files Browse the repository at this point in the history
… framework tests.
  • Loading branch information
Treece Burgess committed Dec 1, 2024
1 parent 0fb5000 commit b7bc33d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/ci_papi_framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ esac
# test linking with or without --with-shlib-tools
if [ "$SHLIB" = "without" ]; then
./configure --with-debug=$DEBUG --enable-warnings --with-components="$COMPONENTS"
./configure --with-debug=$DEBUG --enable-warnings --with-components="$COMPONENTS" --with-shlib-tools
else
./configure --with-debug=$DEBUG --enable-warnings --with-components="$COMPONENTS" --with-shlib-tools
fi
Expand All @@ -60,6 +59,21 @@ make -j4
# run PAPI utilities
utils/papi_component_avail

# active component check
CURRENT_ACTIVE_COMPONENTS=$(utils/papi_component_avail | grep -A1000 'Active components' | grep "Name: " | awk '{printf "%s%s", sep, $2; sep=" "} END{print ""}')
if [ "$COMPONENTS" = "cuda nvml rocm rocm_smi powercap powercap_ppc rapl sensors_ppc infiniband net appio io lustre stealtime coretemp lmsensors mx sde" ]; then
echo Comp
[ "$CURRENT_ACTIVE_COMPONENTS" = "perf_event perf_event_uncore cuda nvml powercap net appio io stealtime coretemp lmsensors sde sysdetect" ]
elif [ "$COMPONENTS" = "rocm rocm_smi" ]; then
echo rocm
[ "$CURRENT_ACTIVE_COMPONENTS" = "perf_event perf_event_uncore rocm rocm_smi sysdetect" ]
elif [ "$COMPONENTS" = "infiniband" ]; then
echo infini
[ "$CURRENT_ACTIVE_COMPONENTS" = "perf_event perf_event_uncore infiniband sysdetect" ]
else
exit 1
fi

# without '--with-shlib-tools' in ./configure
if [ "$SHLIB" = "without" ]; then
echo "Running full test suite for active components"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/papi_framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Test
- name: comprehensive component tests
run: .github/workflows/ci_papi_framework.sh "${{matrix.components}}" ${{matrix.debug}} ${{matrix.shlib}}
# build PAPI only with the amd components, as they will not be active in the above comprehensive job
papi_components_amd:
Expand All @@ -41,7 +41,7 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Test
- name: rocm and rocm_smi component tests
run: .github/workflows/ci_papi_framework.sh "${{matrix.components}}" ${{matrix.debug}} ${{matrix.shlib}}
# build PAPI only with the infiniband component, as it will not be active in the above comprehensive job
papi_component_infiniband:
Expand All @@ -55,7 +55,7 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Test
- name: infiniband component tests
run: .github/workflows/ci_papi_framework.sh ${{matrix.components}} ${{matrix.debug}} ${{matrix.shlib}}
papi_spack:
runs-on: cpu
Expand Down

0 comments on commit b7bc33d

Please sign in to comment.