Skip to content

Commit

Permalink
Adding active component check for individual component tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Treece Burgess committed Dec 1, 2024
1 parent b7bc33d commit 70929f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci_papi_framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,14 @@ 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
# if the component from the .yml is not accounted for in the above
# elif's
exit 1
fi

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci_per_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ make -j4
# run PAPI utilities
utils/papi_component_avail

# active component check
EXPECTED_ACTIVE_COMPONENTS=$(echo "perf_event perf_event_uncore sysdetect" | sed "s/perf_event_uncore/& $COMPONENT/")
CURRENT_ACTIVE_COMPONENTS=$(utils/papi_component_avail | grep -A1000 'Active components' | grep "Name: " | awk '{printf "%s%s", sep, $2; sep=" "} END{print ""}')
[ "$EXPECTED_ACTIVE_COMPONENTS" = "$CURRENT_ACTIVE_COMPONENTS" ]

# without '--with-shlib-tools' in ./configure
if [ "$SHLIB" = "without" ]; then
echo "Running full test suite for active components"
Expand Down

0 comments on commit 70929f7

Please sign in to comment.