diff --git a/.github/workflows/aqlprofile-rocm-ci-caller.yml b/.github/workflows/aqlprofile-rocm-ci-caller.yml index 1dea3328b1..3c179438f5 100644 --- a/.github/workflows/aqlprofile-rocm-ci-caller.yml +++ b/.github/workflows/aqlprofile-rocm-ci-caller.yml @@ -1,6 +1,6 @@ name: Aql ROCm CI Caller - -on: + +on: push: paths: - 'projects/aqlprofile/**' @@ -17,19 +17,19 @@ on: - 'projects/rocprofiler/**' - 'projects/roctracer/**' workflow_dispatch: - issue_comment: - types: [created] - -jobs: + issue_comment: + types: [created] + +jobs: call-workflow: if: ${{ github.event_name != 'issue_comment' || github.event.comment.body == '!verify' }} - uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@mainline - secrets: inherit - with: - input_sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} - input_pr_num: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || 0 }} - input_pr_url: ${{ github.event_name == 'pull_request' && github.event.pull_request.html_url || '' }} - input_pr_title: ${{ github.event_name == 'pull_request' && github.event.pull_request.title || '' }} - repository_name: ${{ github.repository }} - base_ref: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref }} - trigger_event_type: ${{ github.event_name }} + uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@mainline + secrets: inherit + with: + input_sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} + input_pr_num: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || 0 }} + input_pr_url: ${{ github.event_name == 'pull_request' && github.event.pull_request.html_url || '' }} + input_pr_title: ${{ github.event_name == 'pull_request' && github.event.pull_request.title || '' }} + repository_name: ${{ github.repository }} + base_ref: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref }} + trigger_event_type: ${{ github.event_name }} diff --git a/.github/workflows/rocprofiler-compute-docs.yml b/.github/workflows/rocprofiler-compute-docs.yml index e711ff3160..6880eb9031 100644 --- a/.github/workflows/rocprofiler-compute-docs.yml +++ b/.github/workflows/rocprofiler-compute-docs.yml @@ -1,4 +1,4 @@ -name: Documentation +name: rocprofiler-compute Documentation on: push: diff --git a/.github/workflows/rocprofiler-compute-formatting.yml b/.github/workflows/rocprofiler-compute-formatting.yml index 6165d64b86..a586977bb0 100644 --- a/.github/workflows/rocprofiler-compute-formatting.yml +++ b/.github/workflows/rocprofiler-compute-formatting.yml @@ -1,13 +1,13 @@ -name: RocProfiler-Compute Formatting +name: rocprofiler-compute Formatting on: push: - path: - - 'projects/rocprofiler-compute' + paths: + - 'projects/rocprofiler-compute/**' pull_request: - path: - - 'projects/rocprofiler-compute' + paths: + - 'projects/rocprofiler-compute/**' concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/rocprofiler-compute-mi-rhel9.yml b/.github/workflows/rocprofiler-compute-mi-rhel9.yml new file mode 100644 index 0000000000..910a2e098e --- /dev/null +++ b/.github/workflows/rocprofiler-compute-mi-rhel9.yml @@ -0,0 +1,128 @@ +name: rocprofiler-compute mi-rhel9 + +on: + push: + paths: + - 'projects/rocprofiler-compute/**' + + # Allows manual execution + workflow_dispatch: + +permissions: + contents: read + checks: write + pull-requests: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + profile: + strategy: + matrix: + version: [5.7.1, 6.0.2] + hardware: [mi100, mi200] + profiler: [default, rocprofv2] + exclude: + - profiler: rocprofv2 + hardware: mi100 + fail-fast: false + runs-on: [mi100, rhel9] + + env: + PYTHONPATH: /home1/ciuser/rocprofiler-compute_deps + CI_VISIBLE_DEVICES: 1 + name: ROCm v${{ matrix.version }} / ${{ matrix.hardware }} / ${{ matrix.profiler }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-compute + - name: Python Path + run: echo ${PYTHONPATH} + - name: Setup hardware-specific run details + working-directory: projects/rocprofiler-compute + run: | + if [ ${{ matrix.hardware }} == "mi100" ];then + echo "CI_QUEUE=ci" >> $GITHUB_ENV + echo "CI_ARCH=gfx908" >> $GITHUB_ENV + elif [ ${{ matrix.hardware }} == "mi200" ];then + echo "CI_QUEUE=mi2104x" >> $GITHUB_ENV + echo "CI_ARCH=gfx90a" >> $GITHUB_ENV + else + echo "Unsupported hardware" + exit 1 + fi + - name: Setup profiling mode + working-directory: projects/rocprofiler-compute + run: | + if [ ${{ matrix.profiler }} == "rocprofv2" ];then + echo "ROCPROF=rocprofv2" >> $GITHUB_ENV + fi + - name: Install Python collateral (build and test) + working-directory: projects/rocprofiler-compute + run: | + pip3 install -t ${PYTHONPATH} -r requirements.txt + pip3 install -t ${PYTHONPATH} -r requirements-test.txt + - name: Load ROCm ${{ matrix.version}} + working-directory: projects/rocprofiler-compute + 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 + working-directory: projects/rocprofiler-compute + run: | + echo "PATH=$PATH" + echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" + echo "ROCM_PATH=$ROCM_PATH" + echo "CI_QUEUE=$CI_QUEUE" + echo "CI_ARCH=$CI_ARCH" + echo "CI_VISIBLE_DEVICES=$CI_VISIBLE_DEVICES" + echo "ROCPROF=$ROCPROF" + - name: Configure + working-directory: projects/rocprofiler-compute + run: | + mkdir build + cd build + ml cmake + cmake -DENABLE_TESTS=ON -DCMAKE_HIP_ARCHITECTURES=$CI_ARCH -DENABLE_COVERAGE=ON -DPYTEST_NUMPROCS=8 .. + - name: Build tests and Run [profile] mode + working-directory: projects/rocprofiler-compute + run: | + cd build + make + srun -N 1 -J rocprof-compute -p $CI_QUEUE -t 00:20:00 ctest -j 4 --resource-spec-file ../tests/4gpus.json --verbose -L profile + - name: Run [analyze workloads] mode + working-directory: projects/rocprofiler-compute + if: '!cancelled()' + run: | + cd build + srun -N 1 -J rocprof-compute -p $CI_QUEUE -t 00:10:00 ctest --verbose -R test_analyze_workloads + - name: Run [analyze commands] mode + working-directory: projects/rocprofiler-compute + if: '!cancelled()' + run: | + cd build + srun -N 1 -J rocprof-compute -p $CI_QUEUE -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: | + projects/rocprofiler-compute/tests/**/test_*.xml + - name: Summarize code coverage + if: always() + run: coverage report + - name: Upload code coverage + uses: zgosalvez/github-actions-report-lcov@v4 + if: always() + with: + coverage-files: projects/rocprofiler-compute/tests/coverage.info + minimum-coverage: 35 + artifact-name: code-coverage-report-rocm${{ matrix.version }}-${{ matrix.hardware }}-${{ matrix.profiler }} + github-token: ${{ secrets.GITHUB_TOKEN }} + update-comment: true \ No newline at end of file diff --git a/.github/workflows/rocprofiler-compute-packaging.yml b/.github/workflows/rocprofiler-compute-packaging.yml new file mode 100644 index 0000000000..01f294983a --- /dev/null +++ b/.github/workflows/rocprofiler-compute-packaging.yml @@ -0,0 +1,74 @@ +name: rocprofiler-compute Packaging + +on: + push: + paths: + - 'projects/rocprofiler-compute/**' + tags: + - "v[1-9].[0-9]+.[0-9]+*" + - "rocm-[0-9]+.[0-9]+.[0-9]+*" + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + distbuild: + runs-on: ubuntu-latest + name: Create release distribution + env: + INSTALL_DIR: /tmp + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-compute + - name: Verify VERSION file consistent with tag + run: utils/ver_check.py --tag ${{github.ref_name}} + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: '3.8' + - name: Python dependency installs + working-directory: projects/rocprofiler-compute + run: python3 -m pip install -t${INSTALL_DIR}/python-libs -r requirements.txt + - name: Configure + working-directory: projects/rocprofiler-compute + run: | + mkdir build + cd build + cmake -DPYTHON_DEPS=${INSTALL_DIR}/python-libs .. + - name: Release tarball + working-directory: projects/rocprofiler-compute + run: | + cd build + make package_source + - name: Rename tarball + working-directory: projects/rocprofiler-compute + run: mv build/rocprofiler-compute-*.tar.gz build/rocprofiler-compute-${{github.ref_name}}.tar.gz + - name: Archive tarball + uses: actions/upload-artifact@v4 + with: + name: rocprofiler-compute-${{github.ref_name}}.tar.gz + path: projects/rocprofiler-compute/build/rocprofiler-compute-${{github.ref_name}}.tar.gz + - name: Set version + run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV + - name: Determine release name + working-directory: projects/rocprofiler-compute + run: | + if [[ ${{github.ref_name}} == rocm-* ]]; then + echo "RELEASE_NAME=rocprofiler-compute ${{ env.VERSION }} for ${{github.ref_name}}" + else + echo "RELEASE_NAME=rocprofiler-compute ${{ env.VERSION }}" + fi >> $GITHUB_ENV + - name: Upload tarball Release Asset + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + fail_on_unmatched: True + generate_release_notes: True + draft: False # toggle for debugging + files: | + projects/rocprofiler-computebuild/rocprofiler-compute-${{github.ref_name}}.tar.gz + name: ${{ env.RELEASE_NAME }} \ No newline at end of file diff --git a/.github/workflows/rocprofiler-compute-rhel-8.yml b/.github/workflows/rocprofiler-compute-rhel-8.yml new file mode 100644 index 0000000000..562281a15c --- /dev/null +++ b/.github/workflows/rocprofiler-compute-rhel-8.yml @@ -0,0 +1,77 @@ +# This is a basic workflow to help you get started with Actions + +name: rocprofiler-compute RHEL 8/9 + +# Controls when the workflow will run +on: + push: + paths: + - 'projects/rocprofiler-compute/**' + - '!projects/rocprofiler-compute/*.md' + - '!projects/rocprofiler-compute/.github/**/*.md' + - '!projects/rocprofiler-compute/docs/**' + - '!projects/rocprofiler-compute/docker/**' + pull_request: + paths: + - 'projects/rocprofiler-compute/**' + - '!projects/rocprofiler-compute/*.md' + - '!projects/rocprofiler-compute/.github/**/*.md' + - '!projects/rocprofiler-compute/docs/**' + - '!projects/rocprofiler-compute/docker/**' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + container: + image: dgaliffiamd/rocprofiler-systems:ci-base-rhel-${{ matrix.os-release }} + strategy: + fail-fast: false + matrix: + os-release: [ '8.10', '9.3'] + build-type: ['Release'] + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: Install baseline OS dependencies + run: | + yum clean all + yum makecache + yum -y install git + yum -y install python39 + yum -y install cmake3 + yum -y install which + yum -y install glibc-langpack-en + - name: Checkout + uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-compute + - name: Install Python prereqs + working-directory: projects/rocprofiler-compute + run: | + python3.9 -m pip install -r requirements.txt + python3.9 -m pip install -r requirements-test.txt + - name: Configure and install + working-directory: projects/rocprofiler-compute + run: | + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-compute -DPYTEST_NUMPROCS=4 .. + make install + - name: CTest- Analyze Commands + working-directory: projects/rocprofiler-compute + run: | + cd build + ctest --verbose -R test_analyze_commands + - name: CTest- Analyze Workloads + working-directory: projects/rocprofiler-compute + run: | + cd build + ctest --verbose -R test_analyze_workloads \ No newline at end of file diff --git a/.github/workflows/rocprofiler-compute-tarball.yml b/.github/workflows/rocprofiler-compute-tarball.yml new file mode 100644 index 0000000000..ac8873f247 --- /dev/null +++ b/.github/workflows/rocprofiler-compute-tarball.yml @@ -0,0 +1,118 @@ +name: rocprofiler-compute tarball + +on: + push: + paths: + - 'projects/rocprofiler-compute/**' + pull_request: + paths: + - 'projects/rocprofiler-compute/**' + - '!projects/rocprofiler-compute/*.md' + - '!projects/rocprofiler-compute/.github/**/*.md' + - '!projects/rocprofiler-compute/docs/**' + - '!projects/rocprofiler-compute/docker/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + distbuild: + runs-on: ubuntu-latest + name: Create distribution tarball + env: + INSTALL_DIR: /tmp/foo1 + steps: + - name: Set git sha mode + id: sha-mode + run: | + if [ "$EVENT" == 'pull_request' ]; then + echo "sha=${{github.event.pull_request.head.sha}}" >> $GITHUB_OUTPUT + else + echo "sha=$GITHUB_SHA" >> $GITHUB_OUTPUT + fi + - name: Checkout code + uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-compute + ref: ${{ steps.sha-mode.sha }} + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: '3.8' + - name: Python dependency installs + working-directory: projects/rocprofiler-compute + run: python3 -m pip install -t${INSTALL_DIR}/python-libs -r requirements.txt + - name: Configure + working-directory: projects/rocprofiler-compute + run: | + mkdir build + cd build + cmake -DPYTHON_DEPS=${INSTALL_DIR}/python-libs .. + - name: Release tarball + working-directory: projects/rocprofiler-compute + run: | + cd build + make package_source + - name: Archive tarball + uses: actions/upload-artifact@v4 + with: + name: tarball-testing + path: projects/rocprofiler-compute/build/rocprofiler-compute-*.tar.gz + retention-days: 3 + disttest: + runs-on: ubuntu-latest + needs: [distbuild] + name: Tarball tests + env: + INSTALL_DIR: /tmp/foo2 + steps: + - name: Access tarball + uses: actions/download-artifact@v4 + with: + name: tarball-testing + - name: Expand + run: tar xfz rocprofiler-compute-*.tar.gz; rm rocprofiler-compute-*.tar.gz + - name: Python dependency installs + run: | + cd rocprofiler-compute-* + python3 -m pip install -t${INSTALL_DIR}/python-libs -r requirements.txt + - name: Configure + run: | + cd rocprofiler-compute-* + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/rocprofiler-compute \ + -DPYTHON_DEPS=${INSTALL_DIR}/python-libs .. + - name: Install + run: | + cd rocprofiler-compute-* + cd build + make install + - name: Verify expected paths + run: | + # find $INSTALL_DIR + test -d $INSTALL_DIR/rocprofiler-compute + test -x $INSTALL_DIR/rocprofiler-compute/bin/rocprof-compute + test -s $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/VERSION + test -s $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/VERSION.sha + test -d $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/rocprof_compute_analyze + test -d $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/rocprof_compute_profile + test -d $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/rocprof_compute_soc + test -d $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/utils + test -s $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/sample/vcopy.cpp + test -d $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/modulefiles + test -s $INSTALL_DIR/rocprofiler-compute/share/doc/rocprofiler-compute/LICENSE + - name: Query version (setting PYTHONPATH by hand) + run: | + export PYTHONPATH=${INSTALL_DIR}/python-libs:$PYTHONPATH + $INSTALL_DIR/rocprofiler-compute/bin/rocprof-compute --version + - name: Install Lmod + run: sudo apt-get install -y lmod + - name: Access rocprofiler-compute using modulefile + run: | + . /etc/profile.d/lmod.sh + module use $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/modulefiles + module load rocprofiler-compute + module list + rocprof-compute --version diff --git a/.github/workflows/rocprofiler-compute-ubuntu-jammy.yml b/.github/workflows/rocprofiler-compute-ubuntu-jammy.yml new file mode 100644 index 0000000000..2d29831891 --- /dev/null +++ b/.github/workflows/rocprofiler-compute-ubuntu-jammy.yml @@ -0,0 +1,67 @@ +# This is a basic workflow to help you get started with Actions + +name: rocprofiler-compute Ubuntu 22.04 + +on: + push: + paths: + - 'projects/rocprofiler-compute/**' + - '!projects/rocprofiler-compute/*.md' + - '!projects/rocprofiler-compute/.github/**/*.md' + - '!projects/rocprofiler-compute/docs/**' + - '!projects/rocprofiler-compute/docker/**' + pull_request: + paths: + - 'projects/rocprofiler-compute/**' + - '!projects/rocprofiler-compute/*.md' + - '!projects/rocprofiler-compute/.github/**/*.md' + - '!projects/rocprofiler-compute/docs/**' + - '!projects/rocprofiler-compute/docker/**' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + container: + image: dgaliffiamd/rocprofiler-systems:ci-base-ubuntu-22.04 + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: Install baseline OS dependencies + run: | + apt-get update + apt-get install -y git + apt-get install -y python3-pip + apt-get install -y cmake + - name: Checkout + uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-compute + - name: Install Python prereqs + working-directory: projects/rocprofiler-compute + run: | + python3 -m pip install -r requirements.txt + python3 -m pip install -r requirements-test.txt + - name: Configure and install + working-directory: projects/rocprofiler-compute + run: | + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-compute -DPYTEST_NUMPROCS=4 .. + make install + - name: CTest- Analyze Commands + working-directory: projects/rocprofiler-compute + run: | + cd build + ctest --verbose -R test_analyze_commands + - name: CTest- Analyze Workloads + working-directory: projects/rocprofiler-compute + run: | + cd build + ctest --verbose -R test_analyze_workloads diff --git a/.github/workflows/rocprofiler-register-continuous-integration.yml b/.github/workflows/rocprofiler-register-continuous-integration.yml index 2f3b4ef8be..7620fe97f2 100644 --- a/.github/workflows/rocprofiler-register-continuous-integration.yml +++ b/.github/workflows/rocprofiler-register-continuous-integration.yml @@ -1,4 +1,4 @@ -name: RocProfiler-Register Continuous Integration +name: rocprofiler-register Continuous Integration on: push: @@ -133,7 +133,7 @@ jobs: CMAKE_PREFIX_PATH=/opt/rocm cmake -B build-tests-deb /opt/rocm/share/rocprofiler-register/tests cmake --build build-tests-deb --target all --parallel 16 ctest --test-dir build-tests-deb --output-on-failure - + - name: Test Install Modulefile timeout-minutes: 15 shell: bash diff --git a/.github/workflows/rocprofiler-sdk-code_coverage.yml b/.github/workflows/rocprofiler-sdk-code_coverage.yml index 6a02edcbfe..32815d43fe 100644 --- a/.github/workflows/rocprofiler-sdk-code_coverage.yml +++ b/.github/workflows/rocprofiler-sdk-code_coverage.yml @@ -1,4 +1,4 @@ -name: RocProfiler-SDK Code Coverage +name: rocprofiler-sdk Code Coverage permissions: contents: read diff --git a/.github/workflows/rocprofiler-sdk-codeql.yml b/.github/workflows/rocprofiler-sdk-codeql.yml index 57763ac9ca..98486f7e27 100644 --- a/.github/workflows/rocprofiler-sdk-codeql.yml +++ b/.github/workflows/rocprofiler-sdk-codeql.yml @@ -1,4 +1,4 @@ -name: "RocProfiler-SDK CodeQL Advanced Analysis" +name: rocprofiler-sdk Advanced Analysis on: workflow_dispatch: diff --git a/.github/workflows/rocprofiler-sdk-continuous_integration.yml b/.github/workflows/rocprofiler-sdk-continuous_integration.yml index 07640de05c..ce8fb71225 100644 --- a/.github/workflows/rocprofiler-sdk-continuous_integration.yml +++ b/.github/workflows/rocprofiler-sdk-continuous_integration.yml @@ -1,4 +1,4 @@ -name: RocProfiler-SDK Continuous Integration +name: rocprofiler-sdk Continuous Integration on: workflow_dispatch: diff --git a/.github/workflows/rocprofiler-sdk-docs.yml b/.github/workflows/rocprofiler-sdk-docs.yml index e4f3445548..effab47f15 100644 --- a/.github/workflows/rocprofiler-sdk-docs.yml +++ b/.github/workflows/rocprofiler-sdk-docs.yml @@ -1,4 +1,4 @@ -name: RocProfiler-SDK Documentation +name: rocprofiler-sdk Documentation on: workflow_dispatch: diff --git a/.github/workflows/rocprofiler-sdk-formatting.yml b/.github/workflows/rocprofiler-sdk-formatting.yml index 5dcd528fb7..55627950bc 100644 --- a/.github/workflows/rocprofiler-sdk-formatting.yml +++ b/.github/workflows/rocprofiler-sdk-formatting.yml @@ -1,5 +1,5 @@ -name: RocProfiler-SDK Formatting +name: rocprofiler-sdk Formatting on: workflow_dispatch: diff --git a/.github/workflows/rocprofiler-sdk-python.yml b/.github/workflows/rocprofiler-sdk-python.yml index 30eaef1623..fedbda21c0 100644 --- a/.github/workflows/rocprofiler-sdk-python.yml +++ b/.github/workflows/rocprofiler-sdk-python.yml @@ -1,4 +1,4 @@ -name: RocProfiler-SDK Python Linting +name: rocprofiler-sdk Python Linting on: workflow_dispatch: diff --git a/.github/workflows/rocprofiler-sdk-restrictions.yml b/.github/workflows/rocprofiler-sdk-restrictions.yml index ae6e02ec32..af1bbac816 100644 --- a/.github/workflows/rocprofiler-sdk-restrictions.yml +++ b/.github/workflows/rocprofiler-sdk-restrictions.yml @@ -1,5 +1,5 @@ -name: RocProfiler-SDK Code Restrictions +name: rocprofiler-sdk Code Restrictions permissions: contents: read diff --git a/.github/workflows/rocprofiler-sdk-rocm_ci_caller.yml b/.github/workflows/rocprofiler-sdk-rocm_ci_caller.yml index e89520a732..b7e7a29411 100644 --- a/.github/workflows/rocprofiler-sdk-rocm_ci_caller.yml +++ b/.github/workflows/rocprofiler-sdk-rocm_ci_caller.yml @@ -1,33 +1,33 @@ -name: RocProfiler-SDK ROCm CI Caller -on: +name: rocprofiler-sdk ROCm CI Caller +on: pull_request: - types: [opened, reopened, synchronize] + types: [opened, reopened, synchronize] paths: - 'projects/rocm-smi-lib/**' - 'projects/rocprofiler-register/**' - 'projects/rocprofiler-sdk/**' - 'projects/rocr-runtime/**' - push: + push: paths: - 'projects/rocm-smi-lib/**' - 'projects/rocprofiler-register/**' - 'projects/rocprofiler-sdk/**' - 'projects/rocr-runtime/**' - workflow_dispatch: - issue_comment: - types: [created] - -jobs: - call-workflow: + workflow_dispatch: + issue_comment: + types: [created] + +jobs: + call-workflow: if: github.event_name != 'issue_comment' ||(github.event_name == 'issue_comment' && github.event.issue.pull_request && (startsWith(github.event.comment.body, '!verify') || startsWith(github.event.comment.body, '!verify release') || startsWith(github.event.comment.body, '!verify retest'))) uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@mainline - secrets: inherit - with: - input_sha: ${{github.event_name == 'pull_request' && github.event.pull_request.head.sha || (github.event_name == 'push' && github.sha) || (github.event_name == 'issue_comment' && github.event.issue.pull_request.head.sha) || github.sha}} - input_pr_num: ${{github.event_name == 'pull_request' && github.event.pull_request.number || (github.event_name == 'issue_comment' && github.event.issue.number) || 0}} - input_pr_url: ${{github.event_name == 'pull_request' && github.event.pull_request.html_url || (github.event_name == 'issue_comment' && github.event.issue.pull_request.html_url) || ''}} - input_pr_title: ${{github.event_name == 'pull_request' && github.event.pull_request.title || (github.event_name == 'issue_comment' && github.event.issue.pull_request.title) || ''}} - repository_name: ${{ github.repository }} - base_ref: ${{github.event_name == 'pull_request' && github.event.pull_request.base.ref || (github.event_name == 'issue_comment' && github.event.issue.pull_request.base.ref) || github.ref}} - trigger_event_type: ${{ github.event_name }} - comment_text: ${{ github.event_name == 'issue_comment' && github.event.comment.body || '' }} + secrets: inherit + with: + input_sha: ${{github.event_name == 'pull_request' && github.event.pull_request.head.sha || (github.event_name == 'push' && github.sha) || (github.event_name == 'issue_comment' && github.event.issue.pull_request.head.sha) || github.sha}} + input_pr_num: ${{github.event_name == 'pull_request' && github.event.pull_request.number || (github.event_name == 'issue_comment' && github.event.issue.number) || 0}} + input_pr_url: ${{github.event_name == 'pull_request' && github.event.pull_request.html_url || (github.event_name == 'issue_comment' && github.event.issue.pull_request.html_url) || ''}} + input_pr_title: ${{github.event_name == 'pull_request' && github.event.pull_request.title || (github.event_name == 'issue_comment' && github.event.issue.pull_request.title) || ''}} + repository_name: ${{ github.repository }} + base_ref: ${{github.event_name == 'pull_request' && github.event.pull_request.base.ref || (github.event_name == 'issue_comment' && github.event.issue.pull_request.base.ref) || github.ref}} + trigger_event_type: ${{ github.event_name }} + comment_text: ${{ github.event_name == 'issue_comment' && github.event.comment.body || '' }} diff --git a/.github/workflows/rocprofiler-sdk-rocm_release_compatibility.yml b/.github/workflows/rocprofiler-sdk-rocm_release_compatibility.yml index 44624d57f3..d25f4bbd9e 100644 --- a/.github/workflows/rocprofiler-sdk-rocm_release_compatibility.yml +++ b/.github/workflows/rocprofiler-sdk-rocm_release_compatibility.yml @@ -1,4 +1,4 @@ -name: RocProfiler-SDK ROCm Release Compatibility +name: rocprofiler-sdk ROCm Release Compatibility permissions: contents: read diff --git a/.github/workflows/rocprofiler-systems-containers.yml b/.github/workflows/rocprofiler-systems-containers.yml index 1d9c5b3766..5decd782fe 100644 --- a/.github/workflows/rocprofiler-systems-containers.yml +++ b/.github/workflows/rocprofiler-systems-containers.yml @@ -1,4 +1,4 @@ -name: RocProfiler-Systems Continuous Integration Containers +name: rocprofiler-systems Continuous Integration Containers run-name: ci-containers # nightly build diff --git a/.github/workflows/rocprofiler-systems-cpack.yml b/.github/workflows/rocprofiler-systems-cpack.yml new file mode 100644 index 0000000000..3902976b6b --- /dev/null +++ b/.github/workflows/rocprofiler-systems-cpack.yml @@ -0,0 +1,195 @@ +name: rocprofiler-systems Installer Packaging (CPack) +run-name: cpack + +on: + workflow_dispatch: + push: + paths: + - 'projects/rocprofiler-systems/docker/**' + - '!projects/rocprofiler-systems/*.md' + - '!projects/rocprofiler-systems/docs/**' + - '!projects/rocprofiler-systems/source/docs/**' + tags: + - "v[1-9].[0-9]+.[0-9]+*" + - "rocm-[1-9].[0-9]+.[0-9]+*" + pull_request: + paths: + - '.github/workflows/rocprofiler-systems-cpack.yml' + - 'projects/rocprofiler-systems/docker/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + GIT_DISCOVERY_ACROSS_FILESYSTEM: 1 + +jobs: + installers: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + # ubuntu 20.04 + - os-distro: "ubuntu" + os-version: "20.04" + rocm-version: "0.0" + - os-distro: "ubuntu" + os-version: "20.04" + rocm-version: "6.3" + # ubuntu 22.04 + - os-distro: "ubuntu" + os-version: "22.04" + rocm-version: "0.0" + - os-distro: "ubuntu" + os-version: "22.04" + rocm-version: "6.3" + - os-distro: "ubuntu" + os-version: "22.04" + rocm-version: "6.4" + # ubuntu 24.04 + - os-distro: "ubuntu" + os-version: "24.04" + rocm-version: "0.0" + - os-distro: "ubuntu" + os-version: "24.04" + rocm-version: "6.3" + - os-distro: "ubuntu" + os-version: "24.04" + rocm-version: "6.4" + # opensuse 15.5 + - os-distro: "opensuse" + os-version: "15.5" + rocm-version: "0.0" + - os-distro: "opensuse" + os-version: "15.5" + rocm-version: "6.3" + # opensuse 15.6 + - os-distro: "opensuse" + os-version: "15.6" + rocm-version: "0.0" + - os-distro: "opensuse" + os-version: "15.6" + rocm-version: "6.3" + - os-distro: "opensuse" + os-version: "15.6" + rocm-version: "6.4" + # RHEL 8.10 + - os-distro: "rhel" + os-version: "8.10" + rocm-version: "0.0" + - os-distro: "rhel" + os-version: "8.10" + rocm-version: "6.3" + - os-distro: "rhel" + os-version: "8.10" + rocm-version: "6.4" + # RHEL 9.4 + - os-distro: "rhel" + os-version: "9.4" + rocm-version: "0.0" + - os-distro: "rhel" + os-version: "9.4" + rocm-version: "6.3" + - os-distro: "rhel" + os-version: "9.4" + rocm-version: "6.4" + # RHEL 9.5 + - os-distro: "rhel" + os-version: "9.5" + rocm-version: "0.0" + - os-distro: "rhel" + os-version: "9.5" + rocm-version: "6.3" + - os-distro: "rhel" + os-version: "9.5" + rocm-version: "6.4" + + steps: + - name: Free Disk Space + uses: jlumbroso/free-disk-space@v1.2.0 + with: + tool-cache: false + android: true + dotnet: true + haskell: true + large-packages: false + swap-storage: false + + - uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-systems + submodules: recursive + + - name: Configure ROCm Version + if: ${{ matrix.rocm-version == 0 }} + run: | + echo "CI_SCRIPT_ARGS=--core +python" >> $GITHUB_ENV + + - name: Configure ROCm Version + if: ${{ matrix.rocm-version > 0 }} + run: | + echo "CI_SCRIPT_ARGS=--rocm +python" >> $GITHUB_ENV + + - name: Configure Generators + run: | + echo "CI_GENERATOR_ARGS=--generators STGZ" >> $GITHUB_ENV + + - name: Build Base Container + timeout-minutes: 30 + working-directory: projects/rocprofiler-systems + run: | + pushd docker + ./build-docker.sh --distro ${{ matrix.os-distro }} --versions ${{ matrix.os-version }} --rocm-versions ${{ matrix.rocm-version }} + popd + + - name: Build Release + timeout-minutes: 150 + working-directory: projects/rocprofiler-systems + run: | + pushd docker + ./build-docker-release.sh --distro ${{ matrix.os-distro }} --versions ${{ matrix.os-version }} --rocm-versions ${{ matrix.rocm-version }} -- ${CI_SCRIPT_ARGS} ${CI_GENERATOR_ARGS} + popd + + - name: List Files + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems + run: | + find build-release -type f | egrep '\.(sh|deb|rpm)$' + + - name: STGZ Artifacts + timeout-minutes: 10 + uses: actions/upload-artifact@v4 + with: + name: rocprofiler-systems-stgz-${{ matrix.os-distro }}-${{ matrix.os-version }}-rocm-${{ matrix.rocm-version }}-installer + path: | + projects/rocprofiler-systems/build-release/stgz/*.sh + + # before testing remove any artifacts of the build + - name: Remove Build + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems + run: | + shopt -s nullglob + for i in $(find build-release -type f | egrep '/(stgz|deb|rpm)/.*\.(sh|deb|rpm)$'); do mv ${i} ./; done + sudo rm -rf build-release + sudo rm -rf /opt/rocprofiler-systems + + - name: Test STGZ Install + timeout-minutes: 20 + working-directory: projects/rocprofiler-systems + run: | + set -v + for i in rocprofiler-systems-*.sh + do + ./docker/test-docker-release.sh --distro ${{ matrix.os-distro }} --versions ${{ matrix.os-version }} --rocm-versions ${{ matrix.rocm-version }} -- --stgz ${i} + done + + - name: Upload STGZ Release Assets + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + fail_on_unmatched_files: True + files: | + projects/rocprofiler-systems/rocprofiler-systems-*.sh diff --git a/.github/workflows/rocprofiler-systems-formatting.yml b/.github/workflows/rocprofiler-systems-formatting.yml index 562773e8ee..c42f72a736 100644 --- a/.github/workflows/rocprofiler-systems-formatting.yml +++ b/.github/workflows/rocprofiler-systems-formatting.yml @@ -1,5 +1,5 @@ -name: RocProfiler-Systems Formatting +name: rocprofiler-systems Formatting run-name: formatting on: diff --git a/.github/workflows/rocprofiler-systems-opensuse.yml b/.github/workflows/rocprofiler-systems-opensuse.yml new file mode 100644 index 0000000000..dc41be34e1 --- /dev/null +++ b/.github/workflows/rocprofiler-systems-opensuse.yml @@ -0,0 +1,182 @@ +name: rocprofiler-systems OpenSUSE 15 (GCC, Python) +run-name: opensuse-15 + +on: + push: + paths: + - 'projects/rocprofiler-systems/**' + - '!projects/rocprofiler-systems/*.md' + - '!projects/rocprofiler-systems/docs/**' + - '!projects/rocprofiler-systems/source/docs/**' + - '!projects/rocprofiler-systems/source/python/gui/**' + - '!projects/rocprofiler-systems/.github/workflows/rocprofiler-systems-cpack.yml' + - '!projects/rocprofiler-systems/.github/workflows/rocprofiler-systems-containers.yml' + - '!projects/rocprofiler-systems/.github/workflows/rocprofiler-systems-formatting.yml' + - '!projects/rocprofiler-systems/.github/workflows/rocprofiler-systems-weekly-mainline-sync.yml' + - '!projects/rocprofiler-systems/docker/**' + - '!projects/rocprofiler-systems/.wordlist.txt' + - '!projects/rocprofiler-systems/CMakePresets.json' + pull_request: + paths: + - 'projects/rocprofiler-systems/**' + - '!projects/rocprofiler-systems/*.md' + - '!projects/rocprofiler-systems/docs/**' + - '!projects/rocprofiler-systems/source/docs/**' + - '!projects/rocprofiler-systems/source/python/gui/**' + - '!projects/rocprofiler-systems/.github/workflows/rocprofiler-systems-cpack.yml' + - '!projects/rocprofiler-systems/.github/workflows/rocprofiler-systems-containers.yml' + - '!projects/rocprofiler-systems/.github/workflows/rocprofiler-systems-formatting.yml' + - '!projects/rocprofiler-systems/.github/workflows/rocprofiler-systems-weekly-mainline-sync.yml' + - '!projects/rocprofiler-systems/docker/**' + - '!projects/rocprofiler-systems/.wordlist.txt' + - '!projects/rocprofiler-systems/CMakePresets.json' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + ROCPROFSYS_CI: ON + ROCPROFSYS_TMPDIR: "%env{PWD}%/testing-tmp" + +jobs: + opensuse: + runs-on: ubuntu-latest + container: + image: dgaliffiamd/rocprofiler-systems:ci-base-opensuse-${{ matrix.os-release }} + strategy: + fail-fast: false + matrix: + compiler: ['g++'] + os-release: [ '15.5', '15.6' ] + build-type: ['Release'] + + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-systems/ + + - name: Install Packages + timeout-minutes: 25 + uses: nick-fields/retry@v3 + with: + retry_wait_seconds: 30 + timeout_minutes: 25 + max_attempts: 5 + command: | + if [ "${{ matrix.os-release }}" == "15.5" ]; then + wget https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v47.0/linux-amd64/trace_processor_shell -P /opt/trace_processor/bin && + chmod +x /opt/trace_processor/bin/trace_processor_shell + fi + python3 -m pip install --upgrade pip && + python3 -m pip install --upgrade numpy perfetto dataclasses && + python3 -m pip install 'cmake==3.21' && + for i in 6 7 8 9 10 11; do /opt/conda/envs/py3.${i}/bin/python -m pip install --upgrade numpy perfetto dataclasses; done + + - name: Configure Env + working-directory: projects/rocprofiler-systems/ + run: + echo "CC=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')" >> $GITHUB_ENV && + echo "CXX=${{ matrix.compiler }}" >> $GITHUB_ENV && + echo "/opt/rocprofiler-systems/bin:${HOME}/.local/bin" >> $GITHUB_PATH && + echo "LD_LIBRARY_PATH=/opt/rocprofiler-systems/lib:${LD_LIBRARY_PATH}" >> $GITHUB_ENV + + - name: Configure, Build, and Test + timeout-minutes: 115 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: + git config --global --add safe.directory ${PWD} && + cmake --version && + python3 ./scripts/run-ci.py -B build + --name ${{ github.repository_owner }}-${{ github.ref_name }}-opensuse-${{ matrix.os-release }}-${{ matrix.compiler }}-nompi-python + --build-jobs 2 + --site GitHub + -- + -DCMAKE_C_COMPILER=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g') + -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} + -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-systems + -DROCPROFSYS_BUILD_TESTING=ON + -DROCPROFSYS_USE_MPI=OFF + -DROCPROFSYS_USE_ROCM=OFF + -DROCPROFSYS_USE_OMPT=OFF + -DROCPROFSYS_USE_PYTHON=ON + -DROCPROFSYS_BUILD_DYNINST=ON + -DROCPROFSYS_BUILD_BOOST=ON + -DROCPROFSYS_BUILD_TBB=ON + -DROCPROFSYS_BUILD_ELFUTILS=ON + -DROCPROFSYS_BUILD_LIBIBERTY=ON + -DROCPROFSYS_INSTALL_PERFETTO_TOOLS=OFF + -DROCPROFSYS_USE_MPI_HEADERS=ON + -DROCPROFSYS_PYTHON_PREFIX=/opt/conda/envs + -DROCPROFSYS_PYTHON_ENVS="py3.6;py3.7;py3.8;py3.9;py3.10;py3.11" + -DROCPROFSYS_CI_MPI_RUN_AS_ROOT=ON + -DROCPROFSYS_MAX_THREADS=64 + -DROCPROFSYS_DISABLE_EXAMPLES="transpose;rccl;openmp-target;videodecode;jpegdecode" + -DROCPROFSYS_BUILD_NUMBER=${{ github.run_attempt }} + -- + -LE "transpose|rccl|videodecode|jpegdecode|network|mpi" + + - name: Install + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: + cmake --build build --target install --parallel 2 + + - name: Test Install + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: | + set -v + export ROCPROFSYS_DEBUG=ON + which rocprof-sys-avail + ldd $(which rocprof-sys-avail) + rocprof-sys-avail --help + rocprof-sys-avail -a + which rocprof-sys-instrument + ldd $(which rocprof-sys-instrument) + rocprof-sys-instrument --help + rocprof-sys-instrument -e -v 1 -o ls.inst --simulate -- ls + for i in $(find rocprofsys-ls.inst-output -type f); do echo -e "\n\n --> ${i} \n\n"; cat ${i}; done + rocprof-sys-instrument -e -v 1 -o ls.inst -- ls + rocprof-sys-run -- ./ls.inst + rocprof-sys-instrument -e -v 1 --simulate -- ls + for i in $(find rocprofsys-ls-output -type f); do echo -e "\n\n --> ${i} \n\n"; cat ${i}; done + rocprof-sys-instrument -e -v 1 -- ls + + - name: Test User API + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: | + set -v + ./scripts/test-find-package.sh --install-dir /opt/rocprofiler-systems + + - name: CTest Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: ctest-${{ github.job }}-${{ strategy.job-index }}-log + path: | + projects/rocprofiler-systems/build/*.log + + - name: Data Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: data-${{ github.job }}-${{ strategy.job-index }}-files + path: | + projects/rocprofiler-systems/build/rocprofsys-tests-config/*.cfg + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*.txt + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*-instr*.json + + - name: Kill Perfetto + if: success() || failure() + continue-on-error: True + working-directory: projects/rocprofiler-systems/ + run: | + set +e + RUNNING_PROCS=$(pgrep trace_processor_shell) + if [ -n "${RUNNING_PROCS}" ]; then kill -s 9 ${RUNNING_PROCS}; fi diff --git a/.github/workflows/rocprofiler-systems-python.yml b/.github/workflows/rocprofiler-systems-python.yml index 678561ad12..f0361b4e21 100644 --- a/.github/workflows/rocprofiler-systems-python.yml +++ b/.github/workflows/rocprofiler-systems-python.yml @@ -1,4 +1,4 @@ -name: RocProfiler-Systems Python Linting +name: rocprofiler-systems Python Linting run-name: Python on: diff --git a/.github/workflows/rocprofiler-systems-redhat.yml b/.github/workflows/rocprofiler-systems-redhat.yml new file mode 100644 index 0000000000..0a5d7dc003 --- /dev/null +++ b/.github/workflows/rocprofiler-systems-redhat.yml @@ -0,0 +1,190 @@ +name: rocprofiler-systems RedHat Linux (GCC, Python, ROCm) +run-name: redhat + +on: + push: + paths: + - 'projects/rocprofiler-systems/**' + - '!projects/rocprofiler-systems/*.md' + - '!projects/rocprofiler-systems/docs/**' + - '!projects/rocprofiler-systems/source/docs/**' + - '!projects/rocprofiler-systems/source/python/gui/**' + - '!projects/rocprofiler-systems/.github/workflows/docs.yml' + - '!projects/rocprofiler-systems/.github/workflows/cpack.yml' + - '!projects/rocprofiler-systems/.github/workflows/containers.yml' + - '!projects/rocprofiler-systems/.github/workflows/formatting.yml' + - '!projects/rocprofiler-systems/.github/workflows/weekly-mainline-sync.yml' + - '!projects/rocprofiler-systems/docker/**' + - '!projects/rocprofiler-systems/.wordlist.txt' + - '!projects/rocprofiler-systems/CMakePresets.json' + pull_request: + paths: + - 'projects/rocprofiler-systems/**' + - '!projects/rocprofiler-systems/*.md' + - '!projects/rocprofiler-systems/docs/**' + - '!projects/rocprofiler-systems/source/docs/**' + - '!projects/rocprofiler-systems/source/python/gui/**' + - '!projects/rocprofiler-systems/.github/workflows/docs.yml' + - '!projects/rocprofiler-systems/.github/workflows/cpack.yml' + - '!projects/rocprofiler-systems/.github/workflows/containers.yml' + - '!projects/rocprofiler-systems/.github/workflows/formatting.yml' + - '!projects/rocprofiler-systems/.github/workflows/weekly-mainline-sync.yml' + - '!projects/rocprofiler-systems/docker/**' + - '!projects/rocprofiler-systems/.wordlist.txt' + - '!projects/rocprofiler-systems/CMakePresets.json' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + ROCPROFSYS_CI: ON + ROCPROFSYS_TMPDIR: "%env{PWD}%/testing-tmp" + +jobs: + rhel: + runs-on: ubuntu-latest + container: + image: dgaliffiamd/rocprofiler-systems:ci-base-rhel-${{ matrix.os-release }} + strategy: + fail-fast: false + matrix: + compiler: ['g++'] + os-release: [ '8.10', '9.3', '9.4' ] + rocm-version: [ '0.0', '6.3', '6.4' ] + build-type: ['Release'] + + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-systems/ + + - name: Configure Env + shell: bash + working-directory: projects/rocprofiler-systems/ + run: + echo "CC=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')" >> $GITHUB_ENV && + echo "CXX=${{ matrix.compiler }}" >> $GITHUB_ENV && + echo "OS_VERSION_MAJOR=$(cat /etc/os-release | grep 'VERSION_ID' | sed 's/=/ /1' | awk '{print $NF}' | sed 's/"//g' | sed 's/\./ /g' | awk '{print $1}')" >> $GITHUB_ENV && + env + + - name: Install Packages + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + if [ $OS_VERSION_MAJOR -eq 8 ]; then + wget https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v47.0/linux-amd64/trace_processor_shell -P /opt/trace_processor/bin && + chmod +x /opt/trace_processor/bin/trace_processor_shell + fi + python3 -m pip install --upgrade pip && + python3 -m pip install --upgrade numpy perfetto dataclasses && + python3 -m pip install 'cmake==3.21' && + for i in 6 7 8 9 10 11; do /opt/conda/envs/py3.${i}/bin/python -m pip install --upgrade numpy perfetto dataclasses; done + + - name: Install ROCm Packages + if: ${{ matrix.rocm-version > 0 }} + timeout-minutes: 30 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + RPM_TAG=".el${OS_VERSION_MAJOR}" + ROCM_VERSION=${{ matrix.rocm-version }} + ROCM_MAJOR=$(echo ${ROCM_VERSION} | sed 's/\./ /g' | awk '{print $1}') + ROCM_MINOR=$(echo ${ROCM_VERSION} | sed 's/\./ /g' | awk '{print $2}') + ROCM_VERSN=$(( (${ROCM_MAJOR}*10000)+(${ROCM_MINOR}*100) )) + if [ "${OS_VERSION_MAJOR}" -eq 8 ]; then PERL_REPO=powertools; else PERL_REPO=crb; fi + dnf -y --enablerepo=${PERL_REPO} install perl-File-BaseDir + yum install -y https://repo.radeon.com/amdgpu-install/${{ matrix.rocm-version }}/rhel/${{ matrix.os-release }}/amdgpu-install-${ROCM_MAJOR}.${ROCM_MINOR}.${ROCM_VERSN}-1${RPM_TAG}.noarch.rpm + yum install -y rocm-dev rocdecode-devel + if [ "${OS_VERSION_MAJOR}" -gt 8 ]; then dnf install -y libavcodec-free-devel libavformat-free-devel; fi + + - name: Configure, Build, and Test + timeout-minutes: 115 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: + git config --global --add safe.directory ${PWD} && + cmake --version && + TAG="${{ github.repository_owner }}-${{ github.ref_name }}-rhel-${{ matrix.os-release }}-${{ matrix.compiler }}-python-mpip" && + USE_HIP=OFF && + if [ ${{ matrix.rocm-version }} != "0.0" ]; then USE_HIP=ON; TAG="${TAG}-rocm-${{ matrix.rocm-version }}"; fi && + python3 ./scripts/run-ci.py -B build + --name ${TAG} + --build-jobs 2 + --site GitHub + -- + -DCMAKE_C_COMPILER=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g') + -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} + -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-systems + -DROCPROFSYS_BUILD_TESTING=ON + -DROCPROFSYS_USE_MPI=OFF + -DROCPROFSYS_USE_ROCM=${USE_HIP} + -DROCPROFSYS_USE_OMPT=OFF + -DROCPROFSYS_USE_PYTHON=ON + -DROCPROFSYS_BUILD_DYNINST=ON + -DROCPROFSYS_BUILD_BOOST=ON + -DROCPROFSYS_BUILD_TBB=ON + -DROCPROFSYS_BUILD_ELFUTILS=ON + -DROCPROFSYS_BUILD_LIBIBERTY=ON + -DROCPROFSYS_USE_MPI_HEADERS=ON + -DROCPROFSYS_CI_MPI_RUN_AS_ROOT=ON + -DROCPROFSYS_MAX_THREADS=64 + -DROCPROFSYS_INSTALL_PERFETTO_TOOLS=OFF + -DROCPROFSYS_PYTHON_PREFIX=/opt/conda/envs + -DROCPROFSYS_PYTHON_ENVS="py3.6;py3.7;py3.8;py3.9;py3.10;py3.11" + -DROCPROFSYS_DISABLE_EXAMPLES="transpose;rccl;openmp-target" + -DROCPROFSYS_BUILD_NUMBER=${{ github.run_attempt }} + -- + -LE "transpose|rccl|videodecode|jpegdecode|network" + + - name: Install + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: + cmake --build build --target install --parallel 2 + + - name: Test Install + timeout-minutes: 10 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + set -v + source /opt/rocprofiler-systems/share/rocprofiler-systems/setup-env.sh + ./scripts/test-install.sh --test-rocprof-sys-{instrument,avail,sample,rewrite,runtime,python}=1 + + - name: Test User API + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: | + set -v + ./scripts/test-find-package.sh --install-dir /opt/rocprofiler-systems + + - name: CTest Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: ctest-${{ github.job }}-${{ strategy.job-index }}-log + path: | + projects/rocprofiler-systems/build/*.log + + - name: Data Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: data-${{ github.job }}-${{ strategy.job-index }}-files + path: | + projects/rocprofiler-systems/build/rocprofsys-tests-config/*.cfg + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*.txt + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*-instr*.json + + - name: Kill Perfetto + if: success() || failure() + continue-on-error: True + working-directory: projects/rocprofiler-systems/ + run: | + set +e + RUNNING_PROCS=$(pgrep trace_processor_shell) + if [ -n "${RUNNING_PROCS}" ]; then kill -s 9 ${RUNNING_PROCS}; fi diff --git a/.github/workflows/rocprofiler-systems-release.yml b/.github/workflows/rocprofiler-systems-release.yml new file mode 100644 index 0000000000..46ebf4ceb2 --- /dev/null +++ b/.github/workflows/rocprofiler-systems-release.yml @@ -0,0 +1,44 @@ +name: rocprofiler-systems Release + +on: + workflow_dispatch: + push: + paths: + - "projects/rocprofiler-systems/**" + tags: + - "v[1-9].[0-9]+.[0-9]+*" + - "rocm-[1-9].[0-9]+.[0-9]+*" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + GIT_DISCOVERY_ACROSS_FILESYSTEM: 1 + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + packages: write + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-systems/ + - name: Generate generic installer script + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + sudo apt-get update + sudo apt-get install -y cmake + cmake -D OUTPUT_DIR=${PWD} -P scripts/write-rocprof-sys-install.cmake + - name: Generate Release + uses: softprops/action-gh-release@v1 + with: + draft: False + generate_release_notes: True + fail_on_unmatched_files: True + files: | + projects/rocprofiler-systems/rocprofiler-systems-install.py diff --git a/.github/workflows/rocprofiler-systems-ubuntu-focal.yml b/.github/workflows/rocprofiler-systems-ubuntu-focal.yml new file mode 100644 index 0000000000..ec4b431b8c --- /dev/null +++ b/.github/workflows/rocprofiler-systems-ubuntu-focal.yml @@ -0,0 +1,513 @@ +name: Ubuntu 20.04 (GCC, Python, ROCm, MPICH, OpenMPI) +run-name: ubuntu-focal + +on: + push: + paths: + - 'projects/rocprofiler-systems/**' + - '!projects/rocprofiler-systems/*.md' + - '!projects/rocprofiler-systems/docs/**' + - '!projects/rocprofiler-systems/source/docs/**' + - '!projects/rocprofiler-systems/source/python/gui/**' + - '!projects/rocprofiler-systems/.github/workflows/docs.yml' + - '!projects/rocprofiler-systems/.github/workflows/cpack.yml' + - '!projects/rocprofiler-systems/.github/workflows/containers.yml' + - '!projects/rocprofiler-systems/.github/workflows/formatting.yml' + - '!projects/rocprofiler-systems/.github/workflows/weekly-mainline-sync.yml' + - '!projects/rocprofiler-systems/docker/**' + - '!projects/rocprofiler-systems/.wordlist.txt' + - '!projects/rocprofiler-systems/CMakePresets.json' + pull_request: + paths: + - 'projects/rocprofiler-systems/**' + - '!projects/rocprofiler-systems/*.md' + - '!projects/rocprofiler-systems/docs/**' + - '!projects/rocprofiler-systems/source/docs/**' + - '!projects/rocprofiler-systems/source/python/gui/**' + - '!projects/rocprofiler-systems/.github/workflows/docs.yml' + - '!projects/rocprofiler-systems/.github/workflows/cpack.yml' + - '!projects/rocprofiler-systems/.github/workflows/containers.yml' + - '!projects/rocprofiler-systems/.github/workflows/formatting.yml' + - '!projects/rocprofiler-systems/.github/workflows/weekly-mainline-sync.yml' + - '!projects/rocprofiler-systems/docker/**' + - '!projects/rocprofiler-systems/.wordlist.txt' + - '!projects/rocprofiler-systems/CMakePresets.json' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + ROCPROFSYS_CI: ON + ROCPROFSYS_TMPDIR: "%env{PWD}%/testing-tmp" + +jobs: + ubuntu-focal-external: + runs-on: ubuntu-latest + container: + image: dgaliffiamd/rocprofiler-systems:ci-base-ubuntu-20.04 + strategy: + fail-fast: false + matrix: + compiler: ['g++-7', 'g++-8'] + lto: ['OFF'] + strip: ['OFF'] + python: ['OFF'] + build-type: ['Release'] + mpi-headers: ['OFF'] + static-libgcc: ['OFF'] + static-libstdcxx: ['OFF'] + include: + - compiler: 'g++-9' + lto: 'OFF' + strip: 'ON' + python: 'OFF' + build-type: 'Release' + mpi-headers: 'ON' + static-libgcc: 'ON' + static-libstdcxx: 'ON' + - compiler: 'g++-10' + lto: 'OFF' + strip: 'ON' + python: 'ON' + build-type: 'Release' + mpi-headers: 'ON' + static-libgcc: 'ON' + static-libstdcxx: 'OFF' + - compiler: 'g++-11' + lto: 'ON' + strip: 'ON' + python: 'OFF' + build-type: 'Release' + mpi-headers: 'ON' + static-libgcc: 'ON' + static-libstdcxx: 'OFF' + + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-systems/ + + - name: Install Packages + timeout-minutes: 25 + uses: nick-fields/retry@v3 + with: + retry_wait_seconds: 30 + timeout_minutes: 25 + max_attempts: 5 + command: | + cd projects/rocprofiler-systems/ + apt-get update && + apt-get install -y software-properties-common && + add-apt-repository -y ppa:ubuntu-toolchain-r/test && + apt-get update && + apt-get upgrade -y && + apt-get install -y autoconf bison build-essential clang environment-modules gettext libiberty-dev libmpich-dev libtool m4 mpich python3-pip texinfo ${{ matrix.compiler }} && + wget https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v47.0/linux-amd64/trace_processor_shell -P /opt/trace_processor/bin && + chmod +x /opt/trace_processor/bin/trace_processor_shell && + python3 -m pip install --upgrade pip && + python3 -m pip install --upgrade numpy perfetto dataclasses && + python3 -m pip install 'cmake==3.21' && + for i in 6 7 8 9 10 11; do /opt/conda/envs/py3.${i}/bin/python -m pip install --upgrade numpy perfetto dataclasses; done && + apt-get -y --purge autoremove && + apt-get -y clean && + /opt/conda/bin/conda clean -y -a + + + - name: Test Environment Modules + timeout-minutes: 15 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + set -v + source /usr/share/modules/init/$(basename ${SHELL}) + module avail + + - name: Configure Env + working-directory: projects/rocprofiler-systems/ + run: + echo "CC=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')" >> $GITHUB_ENV && + echo "CXX=${{ matrix.compiler }}" >> $GITHUB_ENV + + - name: Configure, Build, and Test + timeout-minutes: 115 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: + git config --global --add safe.directory ${PWD} && + TAG="" && + append-tagname() { if [ "${1}" == "ON" ]; then TAG="${TAG}-${2}"; fi; } && + append-tagname ${{ matrix.lto }} lto && + append-tagname ${{ matrix.strip }} strip && + append-tagname ${{ matrix.python }} python && + append-tagname ${{ matrix.mpi-headers }} mpip && + append-tagname ${{ matrix.static-libgcc }} libgcc && + append-tagname ${{ matrix.static-libstdcxx }} libstdcxx && + cmake --version && + python3 ./scripts/run-ci.py -B build + --name ${{ github.repository_owner }}-${{ github.ref_name }}-ubuntu-focal-${{ matrix.compiler }}${TAG} + --build-jobs 2 + --site GitHub + -- + -DCMAKE_C_COMPILER=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g') + -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} + -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-systems + -DROCPROFSYS_BUILD_TESTING=ON + -DROCPROFSYS_USE_MPI=OFF + -DROCPROFSYS_USE_ROCM=OFF + -DROCPROFSYS_USE_OMPT=OFF + -DROCPROFSYS_USE_PAPI=OFF + -DROCPROFSYS_BUILD_DYNINST=ON + -DROCPROFSYS_BUILD_BOOST=ON + -DROCPROFSYS_BUILD_TBB=ON + -DROCPROFSYS_BUILD_ELFUTILS=ON + -DROCPROFSYS_BUILD_LIBIBERTY=ON + -DROCPROFSYS_USE_PYTHON=${{ matrix.python }} + -DROCPROFSYS_USE_MPI_HEADERS=${{ matrix.mpi-headers }} + -DROCPROFSYS_STRIP_LIBRARIES=${{ matrix.strip }} + -DROCPROFSYS_BUILD_LTO=${{ matrix.lto }} + -DROCPROFSYS_BUILD_STATIC_LIBGCC=${{ matrix.static-libgcc }} + -DROCPROFSYS_BUILD_STATIC_LIBSTDCXX=${{ matrix.static-libstdcxx }} + -DROCPROFSYS_PYTHON_PREFIX=/opt/conda/envs + -DROCPROFSYS_PYTHON_ENVS="py3.6;py3.7;py3.8;py3.9;py3.10;py3.11" + -DROCPROFSYS_MAX_THREADS=64 + -DROCPROFSYS_DISABLE_EXAMPLES="transpose;rccl;videodecode;jpegdecode;openmp-target" + -DROCPROFSYS_BUILD_NUMBER=${{ github.run_attempt }} + -DMPI_HEADERS_ALLOW_MPICH=OFF + -- + -LE "transpose|rccl|videodecode|jpegdecode|network" + + - name: Test Build-Tree Module + timeout-minutes: 45 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + cd build + source /usr/share/modules/init/$(basename ${SHELL}) + module use ./share/modulefiles + module avail + module load rocprofiler-systems + echo $(which rocprof-sys-instrument) + ldd $(which rocprof-sys-instrument) + rocprof-sys-instrument --help + rocprof-sys-avail --help + rocprof-sys-sample --help + + - name: Test Build-Tree Source Script + timeout-minutes: 45 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + cd build + source ./share/rocprofiler-systems/setup-env.sh + echo $(which rocprof-sys-instrument) + ldd $(which rocprof-sys-instrument) + rocprof-sys-instrument --help + rocprof-sys-avail --help + rocprof-sys-sample --help + + - name: Install + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: + cmake --build build --target install --parallel 2 + + - name: Test Install + timeout-minutes: 15 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + source /usr/share/modules/init/$(basename ${SHELL}) + module use /opt/rocprofiler-systems/share/modulefiles + module avail + module load rocprofiler-systems + ./scripts/test-install.sh --test-rocprof-sys-{instrument,avail,sample,rewrite,runtime}=1 --test-rocprof-sys-python=${{ matrix.python }} + + - name: Test User API + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: | + set -v + ./scripts/test-find-package.sh --install-dir /opt/rocprofiler-systems + + - name: CTest Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: ctest-${{ github.job }}-${{ strategy.job-index }}-log + path: | + projects/rocprofiler-systems/build/*.log + + - name: Data Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: data-${{ github.job }}-${{ strategy.job-index }}-files + path: | + projects/rocprofiler-systems/build/rocprofsys-tests-config/*.cfg + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*.txt + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*-instr*.json + + - name: Kill Perfetto + if: success() || failure() + continue-on-error: True + working-directory: projects/rocprofiler-systems/ + run: | + set +e + RUNNING_PROCS=$(pgrep trace_processor_shell) + if [ -n "${RUNNING_PROCS}" ]; then kill -s 9 ${RUNNING_PROCS}; fi + + ubuntu-focal-external-rocm: + runs-on: ubuntu-latest + container: + image: dgaliffiamd/rocprofiler-systems:ci-base-ubuntu-20.04 + strategy: + fail-fast: false + matrix: + compiler: ['g++'] + rocm-version: ['6.3'] + mpi-headers: ['OFF'] + build-jobs: ['3'] + ctest-exclude: ['-LE "transpose|videodecode|jpegdecode|network"'] + + env: + BUILD_TYPE: MinSizeRel + OMPI_ALLOW_RUN_AS_ROOT: 1 + OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 + + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-systems/ + + - name: Install Packages + timeout-minutes: 25 + uses: nick-fields/retry@v3 + with: + retry_wait_seconds: 30 + timeout_minutes: 25 + max_attempts: 5 + command: | + cd projects/rocprofiler-systems/ + apt-get update && + apt-get install -y software-properties-common wget gnupg2 && + ROCM_VERSION=${{ matrix.rocm-version }} && + ROCM_MAJOR=$(echo ${ROCM_VERSION} | sed 's/\./ /g' | awk '{print $1}') && + ROCM_MINOR=$(echo ${ROCM_VERSION} | sed 's/\./ /g' | awk '{print $2}') && + ROCM_VERSN=$(( (${ROCM_MAJOR}*10000)+(${ROCM_MINOR}*100) )) && + echo "ROCM_MAJOR=${ROCM_MAJOR} ROCM_MINOR=${ROCM_MINOR} ROCM_VERSN=${ROCM_VERSN}" && + wget -q https://repo.radeon.com/amdgpu-install/${{ matrix.rocm-version }}/ubuntu/focal/amdgpu-install_${ROCM_MAJOR}.${ROCM_MINOR}.${ROCM_VERSN}-1_all.deb && + apt-get install -y ./amdgpu-install_${ROCM_MAJOR}.${ROCM_MINOR}.${ROCM_VERSN}-1_all.deb && + apt-get update && + apt-get install -y autoconf bison build-essential clang curl gettext libfabric-dev libnuma1 libomp-dev libopenmpi-dev libpapi-dev libtool libudev1 m4 openmpi-bin python3-pip rocm-dev texinfo && + apt-get install -y rocdecode-dev libavformat-dev libavcodec-dev && + wget https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v47.0/linux-amd64/trace_processor_shell -P /opt/trace_processor/bin && + chmod +x /opt/trace_processor/bin/trace_processor_shell && + python3 -m pip install --upgrade pip && + python3 -m pip install --upgrade numpy perfetto dataclasses && + python3 -m pip install 'cmake==3.21' && + for i in 6 7 8 9 10 11; do /opt/conda/envs/py3.${i}/bin/python -m pip install --upgrade numpy perfetto dataclasses; done && + apt-get -y --purge autoremove && + apt-get -y clean && + /opt/conda/bin/conda clean -y -a + + + - name: Configure Env + working-directory: projects/rocprofiler-systems/ + run: | + echo "CC=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')" >> $GITHUB_ENV + echo "CXX=${{ matrix.compiler }}" >> $GITHUB_ENV + echo "CMAKE_PREFIX_PATH=/opt/dyninst:${CMAKE_PREFIX_PATH}" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=/opt/rocm/lib:/usr/local/lib:${LD_LIBRARY_PATH}" >> $GITHUB_ENV + cat << EOF > test-install.cfg + ROCPROFSYS_PROFILE = ON + ROCPROFSYS_TRACE = ON + ROCPROFSYS_USE_PID = OFF + ROCPROFSYS_USE_SAMPLING = OFF + ROCPROFSYS_USE_PROCESS_SAMPLING = OFF + ROCPROFSYS_COUT_OUTPUT = ON + ROCPROFSYS_TIME_OUTPUT = OFF + ROCPROFSYS_TIMEMORY_COMPONENTS = cpu_clock cpu_util current_peak_rss kernel_mode_time monotonic_clock monotonic_raw_clock network_stats num_io_in num_io_out num_major_page_faults num_minor_page_faults page_rss peak_rss priority_context_switch process_cpu_clock process_cpu_util read_bytes read_char system_clock thread_cpu_clock thread_cpu_util timestamp trip_count user_clock user_mode_time virtual_memory voluntary_context_switch wall_clock written_bytes written_char + ROCPROFSYS_OUTPUT_PATH = rocprofsys-tests-output + ROCPROFSYS_OUTPUT_PREFIX = %tag%/ + ROCPROFSYS_DEBUG = OFF + ROCPROFSYS_VERBOSE = 3 + ROCPROFSYS_DL_VERBOSE = 3 + ROCPROFSYS_PERFETTO_BACKEND = system + EOF + realpath test-install.cfg + cat test-install.cfg + + - name: Configure, Build, and Test + timeout-minutes: 115 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: + git config --global --add safe.directory ${PWD} && + cmake --version && + TAG="-rocm-${{ matrix.rocm-version }}" && + TAG="$(echo ${TAG} | sed 's/debian/latest/g')" && + python3 ./scripts/run-ci.py -B build + --name ${{ github.repository_owner }}-${{ github.ref_name }}-ubuntu-focal-rocm-${{ matrix.compiler }}${TAG} + --build-jobs 2 + --site GitHub + -- + -DCMAKE_C_COMPILER=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g') + -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} + -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} + -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-systems + -DROCPROFSYS_BUILD_TESTING=ON + -DROCPROFSYS_BUILD_DEVELOPER=ON + -DROCPROFSYS_BUILD_EXTRA_OPTIMIZATIONS=OFF + -DROCPROFSYS_BUILD_LTO=OFF + -DROCPROFSYS_USE_MPI=OFF + -DROCPROFSYS_USE_ROCM=ON + -DROCPROFSYS_MAX_THREADS=64 + -DROCPROFSYS_USE_PAPI=OFF + -DROCPROFSYS_USE_OMPT=OFF + -DROCPROFSYS_USE_PYTHON=ON + -DROCPROFSYS_USE_MPI_HEADERS=${{ matrix.mpi-headers }} + -DROCPROFSYS_BUILD_DYNINST=ON + -DROCPROFSYS_BUILD_BOOST=ON + -DROCPROFSYS_BUILD_TBB=ON + -DROCPROFSYS_BUILD_ELFUTILS=ON + -DROCPROFSYS_BUILD_LIBIBERTY=ON + -DROCPROFSYS_USE_SANITIZER=OFF + -DROCPROFSYS_PYTHON_PREFIX=/opt/conda/envs + -DROCPROFSYS_PYTHON_ENVS="py3.6;py3.7;py3.8;py3.9;py3.10;py3.11" + -DROCPROFSYS_CI_MPI_RUN_AS_ROOT=${{ matrix.mpi-headers }} + -DROCPROFSYS_CI_GPU=OFF + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF + -DROCPROFSYS_BUILD_NUMBER=${{ github.run_attempt }} + -- + ${{ matrix.ctest-exclude }} + + - name: Install + working-directory: projects/rocprofiler-systems/ + run: + cmake --build build --target install --parallel 2 + + - name: Test Install + timeout-minutes: 15 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + source /opt/rocprofiler-systems/share/rocprofiler-systems/setup-env.sh + ./scripts/test-install.sh --test-rocprof-sys-{instrument,avail,sample,python,rewrite,runtime}=1 + + - name: Test User API + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: | + set -v + ./scripts/test-find-package.sh --install-dir /opt/rocprofiler-systems + + - name: CTest Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: ctest-${{ github.job }}-${{ strategy.job-index }}-log + path: | + projects/rocprofiler-systems/build/*.log + + - name: Data Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: data-${{ github.job }}-${{ strategy.job-index }}-files + path: | + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*.txt + projects/rocprofiler-systems/build/rocprofsys-tests-config/*.cfg + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*.txt + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*-instr*.json + + - name: Kill Perfetto + if: success() || failure() + continue-on-error: True + working-directory: projects/rocprofiler-systems/ + run: | + set +e + RUNNING_PROCS=$(pgrep trace_processor_shell) + if [ -n "${RUNNING_PROCS}" ]; then kill -s 9 ${RUNNING_PROCS}; fi + + ubuntu-focal-codecov: + runs-on: ubuntu-latest + + container: + image: dgaliffiamd/rocprofiler-systems:ci-base-ubuntu-20.04 + options: --cap-add CAP_SYS_ADMIN + + env: + ROCPROFSYS_VERBOSE: 2 + ROCPROFSYS_CAUSAL_BACKEND: perf + + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-systems/ + + - name: Install Packages + timeout-minutes: 25 + uses: nick-fields/retry@v3 + with: + retry_wait_seconds: 30 + timeout_minutes: 25 + max_attempts: 5 + command: | + cd projects/rocprofiler-systems/ + apt-get update && + apt-get install -y autoconf bison build-essential clang environment-modules gcc g++ libmpich-dev libomp-dev libtool m4 mpich python3-pip texinfo && + wget https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v47.0/linux-amd64/trace_processor_shell -P /opt/trace_processor/bin && + chmod +x /opt/trace_processor/bin/trace_processor_shell && + python3 -m pip install --upgrade pip && + python3 -m pip install --upgrade numpy perfetto dataclasses && + python3 -m pip install 'cmake==3.21' && + for i in 6 7 8 9 10 11; do /opt/conda/envs/py3.${i}/bin/python -m pip install --upgrade numpy perfetto dataclasses; done && + apt-get -y --purge autoremove && + apt-get -y clean && + /opt/conda/bin/conda clean -y -a + + - name: Configure Env + working-directory: projects/rocprofiler-systems/ + run: + echo "${HOME}/.local/bin" >> $GITHUB_PATH + + - name: Configure, Build, and Test + timeout-minutes: 115 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: + git config --global --add safe.directory ${PWD} && + cmake --version && + python3 ./scripts/run-ci.py -B build + --name ${{ github.repository_owner }}-${{ github.ref_name }}-ubuntu-focal-codecov-mpi-python-ompt-papi + --build-jobs 2 + --site GitHub + --coverage + -- + -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-systems + -DROCPROFSYS_BUILD_CI=OFF + -DROCPROFSYS_BUILD_TESTING=ON + -DROCPROFSYS_BUILD_DYNINST=ON + -DROCPROFSYS_BUILD_BOOST=ON + -DROCPROFSYS_BUILD_TBB=ON + -DROCPROFSYS_BUILD_ELFUTILS=ON + -DROCPROFSYS_BUILD_LIBIBERTY=ON + -DROCPROFSYS_BUILD_DEBUG=OFF + -DROCPROFSYS_BUILD_HIDDEN_VISIBILITY=OFF + -DROCPROFSYS_USE_MPI=ON + -DROCPROFSYS_USE_PYTHON=ON + -DROCPROFSYS_USE_OMPT=ON + -DROCPROFSYS_USE_PAPI=ON + -DROCPROFSYS_USE_ROCM=OFF + -DROCPROFSYS_USE_RCCL=OFF + -DROCPROFSYS_MAX_THREADS=64 + -DROCPROFSYS_DISABLE_EXAMPLES="transpose;rccl;videodecode;jpegdecode;openmp-target" + -DROCPROFSYS_BUILD_NUMBER=${{ github.run_attempt }} + -- + -LE "transpose|rccl|videodecode|jpegdecode|network" diff --git a/.github/workflows/rocprofiler-systems-ubuntu-jammy.yml b/.github/workflows/rocprofiler-systems-ubuntu-jammy.yml new file mode 100644 index 0000000000..f5651573ea --- /dev/null +++ b/.github/workflows/rocprofiler-systems-ubuntu-jammy.yml @@ -0,0 +1,402 @@ +name: rocprofiler-systems Ubuntu 22.04 (GCC, Python, ROCm) +run-name: ubuntu-jammy + +on: + push: + paths: + - 'projects/rocprofiler-systems/**' + - '!projects/rocprofiler-systems/*.md' + - '!projects/rocprofiler-systems/docs/**' + - '!projects/rocprofiler-systems/source/docs/**' + - '!projects/rocprofiler-systems/source/python/gui/**' + - '!projects/rocprofiler-systems/.github/workflows/docs.yml' + - '!projects/rocprofiler-systems/.github/workflows/cpack.yml' + - '!projects/rocprofiler-systems/.github/workflows/containers.yml' + - '!projects/rocprofiler-systems/.github/workflows/formatting.yml' + - '!projects/rocprofiler-systems/.github/workflows/weekly-mainline-sync.yml' + - '!projects/rocprofiler-systems/docker/**' + - '!projects/rocprofiler-systems/.wordlist.txt' + - '!projects/rocprofiler-systems/CMakePresets.json' + pull_request: + paths: + - 'projects/rocprofiler-systems/**' + - '!projects/rocprofiler-systems/*.md' + - '!projects/rocprofiler-systems/docs/**' + - '!projects/rocprofiler-systems/source/docs/**' + - '!projects/rocprofiler-systems/source/python/gui/**' + - '!projects/rocprofiler-systems/.github/workflows/docs.yml' + - '!projects/rocprofiler-systems/.github/workflows/cpack.yml' + - '!projects/rocprofiler-systems/.github/workflows/containers.yml' + - '!projects/rocprofiler-systems/.github/workflows/formatting.yml' + - '!projects/rocprofiler-systems/.github/workflows/weekly-mainline-sync.yml' + - '!projects/rocprofiler-systems/docker/**' + - '!projects/rocprofiler-systems/.wordlist.txt' + - '!projects/rocprofiler-systems/CMakePresets.json' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + ROCPROFSYS_CI: ON + ROCPROFSYS_TMPDIR: "%env{PWD}%/testing-tmp" + +jobs: + ubuntu-jammy-external: + runs-on: ubuntu-latest + container: + image: dgaliffiamd/rocprofiler-systems:ci-base-ubuntu-22.04 + strategy: + fail-fast: false + matrix: + compiler: ['g++-11', 'g++-12'] + rocm: ['OFF'] + mpi: ['OFF'] + ompt: ['OFF'] + papi: ['OFF'] + python: ['ON'] + strip: ['OFF'] + hidden: ['ON', 'OFF'] + build-type: ['Release'] + mpi-headers: ['ON', 'OFF'] + build-dyninst: ['ON'] + rocm-version: ['0.0'] + + env: + OMPI_ALLOW_RUN_AS_ROOT: 1 + OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 + ROCPROFSYS_CI: 'ON' + + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-systems/ + + - name: Install Packages + timeout-minutes: 25 + uses: nick-fields/retry@v3 + with: + retry_wait_seconds: 30 + timeout_minutes: 25 + max_attempts: 5 + command: | + cd projects/rocprofiler-systems/ + apt-get update && + apt-get install -y software-properties-common && + apt-get upgrade -y && + apt-get install -y autoconf bison build-essential clang environment-modules \ + gettext libfabric-dev libiberty-dev libomp-dev libopenmpi-dev libtool m4 \ + openmpi-bin python3-pip texinfo ${{ matrix.compiler }} && + python3 -m pip install --upgrade pip && + python3 -m pip install --upgrade numpy perfetto dataclasses && + python3 -m pip install 'cmake==3.21' && + for i in 6 7 8 9 10 11; do /opt/conda/envs/py3.${i}/bin/python -m pip install --upgrade numpy perfetto dataclasses; done + + - name: Test Environment Modules + timeout-minutes: 15 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + set -v + source /usr/share/modules/init/$(basename ${SHELL}) + module avail + + - name: Configure Env + working-directory: projects/rocprofiler-systems/ + run: | + echo "CC=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')" >> $GITHUB_ENV + echo "CXX=${{ matrix.compiler }}" >> $GITHUB_ENV + + - name: Configure, Build, and Test + timeout-minutes: 115 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: + git config --global --add safe.directory ${PWD} && + cmake --version && + TAG="" && + append-tagname() { if [ "${1}" == "ON" ]; then TAG="${TAG}-${2}"; fi; } && + append-tagname ${{ matrix.mpi }} mpi && + append-tagname ${{ matrix.ompt }} ompt && + append-tagname ${{ matrix.papi }} papi && + append-tagname ${{ matrix.python }} python && + append-tagname ${{ matrix.mpi-headers }} mpip && + append-tagname ${{ matrix.build-dyninst }} internal-dyninst && + append-tagname ${{ matrix.strip }} strip && + append-tagname ${{ matrix.hidden }} hidden-viz && + python3 ./scripts/run-ci.py -B build + --name ${{ github.repository_owner }}-${{ github.ref_name }}-ubuntu-jammy-${{ matrix.compiler }}${TAG} + --build-jobs 2 + --site GitHub + -- + -DCMAKE_C_COMPILER=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g') + -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} + -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-systems-dev + -DROCPROFSYS_BUILD_TESTING=ON + -DROCPROFSYS_USE_MPI=${{ matrix.mpi }} + -DROCPROFSYS_USE_ROCM=${{ matrix.rocm }} + -DROCPROFSYS_USE_OMPT=${{ matrix.ompt }} + -DROCPROFSYS_USE_PAPI=${{ matrix.papi }} + -DROCPROFSYS_USE_PYTHON=${{ matrix.python }} + -DROCPROFSYS_USE_MPI_HEADERS=${{ matrix.mpi-headers }} + -DROCPROFSYS_BUILD_DYNINST=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_BOOST=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_TBB=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_ELFUTILS=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_LIBIBERTY=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_HIDDEN_VISIBILITY=${{ matrix.hidden }} + -DROCPROFSYS_PYTHON_PREFIX=/opt/conda/envs + -DROCPROFSYS_PYTHON_ENVS="py3.7;py3.8;py3.9;py3.10;py3.11" + -DROCPROFSYS_STRIP_LIBRARIES=${{ matrix.strip }} + -DROCPROFSYS_MAX_THREADS=64 + -DROCPROFSYS_DISABLE_EXAMPLES="transpose;rccl;openmp-target" + -DROCPROFSYS_BUILD_NUMBER=${{ github.run_attempt }} + -DUSE_CLANG_OMP=OFF + -- + -LE "transpose|rccl|videodecode|jpegdecode|network" + + - name: Install + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: + cmake --build build --target install --parallel 2 + + - name: CPack and Install + working-directory: projects/rocprofiler-systems/ + run: | + cd build + cpack -G STGZ + mkdir -p /opt/rocprofiler-systems + ./rocprofiler-systems-*.sh --prefix=/opt/rocprofiler-systems --exclude-subdir --skip-license + + - name: Test Install with Modulefile + timeout-minutes: 15 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + set -v + source /usr/share/modules/init/$(basename ${SHELL}) + module use /opt/rocprofiler-systems/share/modulefiles + module avail + module load rocprofiler-systems + ./scripts/test-install.sh --test-rocprof-sys-{instrument,avail,sample,python,rewrite,runtime}=1 + + - name: Test User API + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: | + set -v + ./scripts/test-find-package.sh --install-dir /opt/rocprofiler-systems + + - name: CTest Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: ctest-${{ github.job }}-${{ strategy.job-index }}-log + path: | + projects/rocprofiler-systems/build/*.log + + - name: Data Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: data-${{ github.job }}-${{ strategy.job-index }}-files + path: | + projects/rocprofiler-systems/build/rocprofsys-tests-config/*.cfg + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*.txt + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*-instr*.json + + ubuntu-jammy-external-rocm: + runs-on: ubuntu-latest + container: + image: dgaliffiamd/rocprofiler-systems:ci-base-ubuntu-22.04 + strategy: + fail-fast: false + matrix: + compiler: ['g++'] + rocm: ['ON'] + mpi: ['OFF'] + ompt: ['OFF'] + papi: ['OFF'] + python: ['ON'] + strip: ['OFF'] + hidden: ['ON'] + build-type: ['Release'] + mpi-headers: ['OFF'] + build-dyninst: ['ON'] + rocm-version: ['6.3', '6.4'] + + env: + OMPI_ALLOW_RUN_AS_ROOT: 1 + OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 + ROCPROFSYS_CI: 'ON' + + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: projects/rocprofiler-systems/ + + - name: Install Packages + timeout-minutes: 25 + uses: nick-fields/retry@v3 + with: + retry_wait_seconds: 30 + timeout_minutes: 25 + max_attempts: 5 + command: | + cd projects/rocprofiler-systems/ + apt-get update && + apt-get install -y software-properties-common && + apt-get upgrade -y && + apt-get install -y autoconf bison build-essential clang environment-modules \ + gettext libfabric-dev libiberty-dev libomp-dev libopenmpi-dev libtool m4 \ + openmpi-bin python3-pip texinfo ${{ matrix.compiler }} && + python3 -m pip install --upgrade pip && + python3 -m pip install --upgrade numpy perfetto dataclasses && + python3 -m pip install 'cmake==3.21' && + for i in 6 7 8 9 10 11; do /opt/conda/envs/py3.${i}/bin/python -m pip install --upgrade numpy perfetto dataclasses; done + + - name: Install ROCm Packages + timeout-minutes: 25 + uses: nick-fields/retry@v3 + with: + retry_wait_seconds: 30 + timeout_minutes: 25 + max_attempts: 5 + shell: bash + command: | + cd projects/rocprofiler-systems/ + ROCM_VERSION=${{ matrix.rocm-version }} + ROCM_MAJOR=$(echo ${ROCM_VERSION} | sed 's/\./ /g' | awk '{print $1}') + ROCM_MINOR=$(echo ${ROCM_VERSION} | sed 's/\./ /g' | awk '{print $2}') + ROCM_VERSN=$(( (${ROCM_MAJOR}*10000)+(${ROCM_MINOR}*100) )) + echo "ROCM_MAJOR=${ROCM_MAJOR} ROCM_MINOR=${ROCM_MINOR} ROCM_VERSN=${ROCM_VERSN}" + wget -q https://repo.radeon.com/amdgpu-install/${{ matrix.rocm-version }}/ubuntu/jammy/amdgpu-install_${ROCM_MAJOR}.${ROCM_MINOR}.${ROCM_VERSN}-1_all.deb + apt-get install -y ./amdgpu-install_${ROCM_MAJOR}.${ROCM_MINOR}.${ROCM_VERSN}-1_all.deb + apt-get update + apt-get install -y rocm-dev rocdecode-dev libavformat-dev libavcodec-dev + echo "/opt/rocm/bin" >> $GITHUB_PATH + echo "ROCM_PATH=/opt/rocm" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=/opt/rocm/lib:${LD_LIBRARY_PATH}" >> $GITHUB_ENV + /opt/rocm/bin/hipcc -O3 -c ./examples/transpose/transpose.cpp -o /tmp/transpose.o + + - name: Test Environment Modules + timeout-minutes: 15 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + set -v + source /usr/share/modules/init/$(basename ${SHELL}) + module avail + + - name: Configure Env + working-directory: projects/rocprofiler-systems/ + run: | + echo "CC=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')" >> $GITHUB_ENV + echo "CXX=${{ matrix.compiler }}" >> $GITHUB_ENV + + - name: Configure, Build, and Test + timeout-minutes: 115 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: + git config --global --add safe.directory ${PWD} && + cmake --version && + TAG="" && + append-tagname() { if [ "${1}" == "ON" ]; then TAG="${TAG}-${2}"; fi; } && + append-tagname ${{ matrix.rocm }} rocm-${{ matrix.rocm-version }} && + append-tagname ${{ matrix.mpi }} mpi && + append-tagname ${{ matrix.ompt }} ompt && + append-tagname ${{ matrix.papi }} papi && + append-tagname ${{ matrix.python }} python && + append-tagname ${{ matrix.mpi-headers }} mpip && + append-tagname ${{ matrix.build-dyninst }} internal-dyninst && + append-tagname ${{ matrix.strip }} strip && + append-tagname ${{ matrix.hidden }} hidden-viz && + python3 ./scripts/run-ci.py -B build + --name ${{ github.repository_owner }}-${{ github.ref_name }}-ubuntu-jammy-${{ matrix.compiler }}${TAG} + --build-jobs 2 + --site GitHub + -- + -DCMAKE_C_COMPILER=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g') + -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} + -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-systems-dev + -DROCPROFSYS_BUILD_TESTING=ON + -DROCPROFSYS_USE_MPI=${{ matrix.mpi }} + -DROCPROFSYS_USE_ROCM=${{ matrix.rocm }} + -DROCPROFSYS_USE_OMPT=${{ matrix.ompt }} + -DROCPROFSYS_USE_PAPI=${{ matrix.papi }} + -DROCPROFSYS_USE_PYTHON=${{ matrix.python }} + -DROCPROFSYS_USE_MPI_HEADERS=${{ matrix.mpi-headers }} + -DROCPROFSYS_BUILD_DYNINST=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_BOOST=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_TBB=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_ELFUTILS=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_LIBIBERTY=${{ matrix.build-dyninst }} + -DROCPROFSYS_BUILD_HIDDEN_VISIBILITY=${{ matrix.hidden }} + -DROCPROFSYS_PYTHON_PREFIX=/opt/conda/envs + -DROCPROFSYS_PYTHON_ENVS="py3.7;py3.8;py3.9;py3.10;py3.11" + -DROCPROFSYS_STRIP_LIBRARIES=${{ matrix.strip }} + -DROCPROFSYS_MAX_THREADS=64 + -DROCPROFSYS_DISABLE_EXAMPLES="transpose;rccl;openmp-target" + -DROCPROFSYS_BUILD_NUMBER=${{ github.run_attempt }} + -DUSE_CLANG_OMP=OFF + -- + -LE "transpose|rccl|videodecode|jpegdecode|network" + + - name: Install + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: + cmake --build build --target install --parallel 2 + + - name: CPack and Install + working-directory: projects/rocprofiler-systems/ + run: | + cd build + cpack -G STGZ + mkdir -p /opt/rocprofiler-systems + ./rocprofiler-systems-*.sh --prefix=/opt/rocprofiler-systems --exclude-subdir --skip-license + + - name: Test Install with Modulefile + timeout-minutes: 15 + shell: bash + working-directory: projects/rocprofiler-systems/ + run: | + set -v + source /usr/share/modules/init/$(basename ${SHELL}) + module use /opt/rocprofiler-systems/share/modulefiles + module avail + module load rocprofiler-systems + ./scripts/test-install.sh --test-rocprof-sys-{instrument,avail,sample,python,rewrite,runtime}=1 + + - name: Test User API + timeout-minutes: 10 + working-directory: projects/rocprofiler-systems/ + run: | + set -v + ./scripts/test-find-package.sh --install-dir /opt/rocprofiler-systems + + - name: CTest Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: ctest-${{ github.job }}-${{ strategy.job-index }}-log + path: | + projects/rocprofiler-systems/build/*.log + + - name: Data Artifacts + if: failure() + continue-on-error: True + uses: actions/upload-artifact@v4 + with: + name: data-${{ github.job }}-${{ strategy.job-index }}-files + path: | + projects/rocprofiler-systems/build/rocprofsys-tests-config/*.cfg + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*.txt + projects/rocprofiler-systems/build/rocprofsys-tests-output/**/*-instr*.json \ No newline at end of file