Bump rocm version to 6.3.3 in CI (#199) #4
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: Build Applications CUDA | |
on: | |
push: | |
branches: [ develop, release/** ] | |
paths: | |
- 'Applications/**' | |
- '.github/workflows/**' | |
pull_request: | |
branches: [ develop, release/** ] | |
paths: | |
- 'Applications/**' | |
- '.github/workflows/**' | |
env: | |
ROCM_VERSION: 6.3.3 | |
AMDGPU_INSTALLER_VERSION: 6.3.60303-1 | |
jobs: | |
build: | |
name: "Build Applications Examples" | |
runs-on: ubuntu-latest | |
container: | |
image: nvidia/cuda:12.8.0-cudnn-devel-ubuntu22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
apt-get update -qq && | |
apt-get install -y build-essential g++ glslang-tools \ | |
python3 python3-pip libglfw3-dev libvulkan-dev locales wget | |
python3 -m pip install --upgrade pip | |
python3 -m pip install cmake | |
- name: Install Hip for CUDA | |
run: | | |
export DEBIAN_FRONTEND=noninteractive | |
wget https://repo.radeon.com/amdgpu-install/${{ env.ROCM_VERSION }}/ubuntu/jammy/amdgpu-install_${{ env.AMDGPU_INSTALLER_VERSION }}_all.deb | |
apt-get -y install ./amdgpu-install_${{ env.AMDGPU_INSTALLER_VERSION }}_all.deb && | |
apt-get update -qq && | |
apt-get install -y hip-runtime-nvidia hip-dev hipify-clang | |
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 | |
- name: Configure and Build | |
shell: bash | |
run: | | |
cd Applications && mkdir build && cd build | |
cmake -DGPU_RUNTIME=CUDA .. | |
cmake --build . -j4 |