Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/aomp-shell.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
name: AOMP Lint

on:
push:
pull_request:

jobs:
aomp-lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 2

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323
with:
separator: ' '
skip_initial_fetch: true
base_sha: 'HEAD~1'
sha: 'HEAD'

- name: Echo changed files
run: |
echo "Changed files: ${{ steps.changed-files.outputs.all_changed_files }}"

- name: Run shellcheck
run: |
find . -name "*.sh" -exec shellcheck -S info {} +
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
if [[ $file == *.sh ]]; then
echo "Running shellcheck on $file"
shellcheck "$file"
fi
done
shell: bash {0}
18 changes: 9 additions & 9 deletions bin/run_composable-kernels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ elif [ "${ShouldUpdateCKRepo}" == 'yes' ]; then
git pull
# TODO: Write current SHA to somewhere such that it is known which SHA
# was tested in this nightly run.
popd
popd || exit 1
fi

CKBuildTool='make'
Expand Down Expand Up @@ -341,7 +341,7 @@ if [ "${ShouldRebuildCK}" == 'yes' ] || [ "${ShouldInstallCK}" == 'yes' ]; then
# Find build success in the build log
echo "CK-BUILD-SUCCESS"

popd
popd || exit 1
fi

# Perform CK installation
Expand All @@ -357,7 +357,7 @@ if [ "${ShouldInstallCK}" == 'yes' ]; then
# Find install success in the log
echo "CK-INSTALL-SUCCESS"

popd
popd || exit 1
fi

echo "Run suite: ${SelectedSuite}"
Expand All @@ -382,7 +382,7 @@ if [ "${SelectedSuite}" == 'smoke' ]; then
pushd ${CK_BUILD} || exit 1
${CKBuildTool} -j 16 smoke 2>&1 | tee "${CK_TESTS_LOG_LOCATION}/smoke_tests.log"
echo "Log at ${CK_TESTS_LOG_LOCATION}/smoke_tests.log"
popd
popd || exit 1
fi

if [ "${SelectedSuite}" == 'regression' ]; then
Expand All @@ -393,7 +393,7 @@ if [ "${SelectedSuite}" == 'regression' ]; then
pushd ${CK_BUILD} || exit 1
${CKBuildTool} -j 16 regression 2>&1 | tee "${CK_TESTS_LOG_LOCATION}/regression_tests.log"
echo "Log at ${CK_TESTS_LOG_LOCATION}/regression_tests.log"
popd
popd || exit 1
fi

# Handle CK benchmarks (also as default, if no suite has been explicitly selected)
Expand All @@ -409,7 +409,7 @@ if [ "${SelectedSuite}" == 'benchmarks' ]; then
git reset --hard origin/${CKBenchmarkRepoBranchName}
git pull
# TODO: Dump SHA somewhere
popd
popd || exit 1
fi

if [ ! -d ${CK_BENCHMARK_RESULT} ]; then
Expand Down Expand Up @@ -447,7 +447,7 @@ if [ "${SelectedSuite}" == 'benchmarks' ]; then
${CKBenchmarkProfilerExport}
${CKBenchmarkCmd}

popd
popd || exit 1

echo "Benchmark Output File: ${CKBenchmarkResultOutput}"
fi
Expand Down Expand Up @@ -559,7 +559,7 @@ if [ "${SelectedSuite}" == 'client-examples' ]; then
done
fi

popd
popd || exit 1
fi

# Handle CK's regular examples
Expand Down Expand Up @@ -629,5 +629,5 @@ if [ "${SelectedSuite}" == 'examples' ]; then
done
fi

popd
popd || exit 1
fi
4 changes: 2 additions & 2 deletions bin/run_miniQMC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
# ROCM_INSTALL_PATH top-level ROCm install directory (default: /opt/rocm-5.3.0)

# --- Start standard header to set AOMP environment variables ----
realpath=`realpath "$0"`
thisdir=`dirname "$realpath"`
realpath=$(realpath "$0")
thisdir=$(dirname "$realpath")
export AOMP_USE_CCACHE=0

. "$thisdir"/aomp_common_vars
Expand Down
Loading