Change ipblocks flag to --blocks #224
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mi100 | |
on: | |
push: | |
branches: | |
- '2.x' | |
# Allows manual execution | |
workflow_dispatch: | |
permissions: | |
contents: read | |
checks: write | |
pull-requests: write | |
jobs: | |
profile: | |
strategy: | |
matrix: | |
version: [5.7.1, 6.0.2] | |
fail-fast: false | |
runs-on: [mi100, rhel9] | |
env: | |
PYTHONPATH: /home1/ciuser/omniperf_deps | |
name: ROCm v${{ matrix.version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Python Path | |
run: echo ${PYTHONPATH} | |
- name: Install Python collateral (build and test) | |
run: | | |
pip3 install -t ${PYTHONPATH} -r requirements.txt | |
pip3 install -t ${PYTHONPATH} -r requirements-test.txt | |
- name: Load ROCm ${{ matrix.version}} | |
run: | | |
module load cmake | |
module load rocm/${{ matrix.version }} | |
echo $PATH > $GITHUB_PATH | |
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> "$GITHUB_ENV" | |
echo "ROCM_PATH=$ROCM_PATH" >> "$GITHUB_ENV" | |
- name: Check Environment | |
run: | | |
echo "PATH=$PATH" | |
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" | |
echo "ROCM_PATH=$ROCM_PATH" | |
ulimit -u | |
- name: Configure | |
run: | | |
mkdir build | |
cd build | |
ml cmake | |
cmake -DENABLE_COVERAGE=ON -DPYTEST_NUMPROCS=8 .. | |
- name: Create HIP binary (vcopy) | |
run: hipcc -o tests/vcopy ./sample/vcopy.cpp | |
- name: Run [profile] mode | |
run: | | |
cd build | |
srun -N 1 -J omniperf -p ci -t 00:20:00 ctest -j 4 --resource-spec-file ../tests/4gpus.json --verbose -L profile | |
- name: Run [analyze workloads] mode | |
if: '!cancelled()' | |
run: | | |
cd build | |
srun -N 1 -J omniperf -p ci -t 00:10:00 ctest --verbose -R test_analyze_workloads | |
- name: Run [analyze commands] mode | |
if: '!cancelled()' | |
run: | | |
cd build | |
srun -N 1 -J omniperf -p ci -t 00:10:00 ctest --verbose -R test_analyze_commands | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action/linux@v2 | |
if: always() | |
with: | |
files: | | |
tests/**/test_*.xml | |
- name: Summarize code coverage | |
if: always() | |
run: coverage report | |
- name: Upload code coverage | |
uses: zgosalvez/github-actions-report-lcov@v3 | |
if: always() | |
with: | |
coverage-files: tests/coverage.info | |
minimum-coverage: 35 | |
artifact-name: code-coverage-report | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
update-comment: true |