diff --git a/.github/workflows/rocprofiler-sdk-rocm_release_compatibility.yml b/.github/workflows/rocprofiler-sdk-rocm_release_compatibility.yml index 30a9f1e6ac..71199df133 100644 --- a/.github/workflows/rocprofiler-sdk-rocm_release_compatibility.yml +++ b/.github/workflows/rocprofiler-sdk-rocm_release_compatibility.yml @@ -60,31 +60,18 @@ jobs: - uses: actions/checkout@v4 - name: Install requirements - if: ${{ matrix.rocm-release == '6.2' }} timeout-minutes: 10 shell: bash run: | cd projects/rocprofiler-sdk git config --global --add safe.directory '*' - apt-get update - apt-get install -y build-essential cmake g++-11 g++-12 python3-pip libdw-dev libsqlite3-dev - update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 10 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 - update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12 - python3 -m pip install -U --user -r requirements.txt + apt update + apt install -y wget build-essential cmake g++-11 g++-12 python3-pip libdw-dev libsqlite3-dev - - name: Install requirements - if: ${{ matrix.rocm-release != '6.2' }} - timeout-minutes: 10 - shell: bash - run: | - cd projects/rocprofiler-sdk - git config --global --add safe.directory '*' - apt-get update - apt-get install -y wget - wget -N -P /tmp/ https://repo.radeon.com/amdgpu-install/7.0/ubuntu/jammy/amdgpu-install_7.0.70000-1_all.deb - apt-get install -y -o Dpkg::Options::="--force-confnew" /tmp/amdgpu-install_7.0.70000-1_all.deb - apt-get update - apt-get install -y build-essential cmake g++-11 g++-12 python3-pip libdw-dev libsqlite3-dev rccl-dev rccl-unittests rocjpeg-dev rocjpeg-test rocdecode-dev rocdecode-test + # Older ROCm versions don't provide these packages. + apt install -y rccl-dev rccl-unittests || true + apt install -y rocjpeg-dev rocjpeg-test rocdecode-dev rocdecode-test || true + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 10 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12 python3 -m pip install -U --user -r requirements.txt