Skip to content

Commit

Permalink
.github/workflows/linux-migx.yml: update to hip 6.2.0 and migraphx 2.…
Browse files Browse the repository at this point in the history
…10; use ubuntu 24.04
  • Loading branch information
WolframRhodium committed Aug 6, 2024
1 parent d24d1ee commit 2e4903c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/linux-migx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build-linux:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

defaults:
run:
Expand All @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0

- name: Setup Ninja
run: pip install ninja
run: pip install ninja --break-system-packages

- name: Download VapourSynth headers
run: |
Expand All @@ -32,8 +32,9 @@ jobs:
- name: Setup HIP and MIGraphX
run: |
mkdir --parents --mode=0755 /etc/apt/keyrings
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.1 jammy main" | sudo tee --append /etc/apt/sources.list.d/rocm.list
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.2 noble main" | sudo tee --append /etc/apt/sources.list.d/rocm.list
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600
sudo apt update
sudo apt install hip-runtime-amd rocm-device-libs migraphx-dev
Expand All @@ -42,15 +43,9 @@ jobs:
run: cmake -S . -B build -G Ninja -Wno-dev -LA
-D CMAKE_BUILD_TYPE=Release
-D VAPOURSYNTH_INCLUDE_DIRECTORY="`pwd`/vapoursynth/include"
-D CMAKE_CXX_COMPILER=g++-12
-D CMAKE_CXX_COMPILER=g++-13
-D CMAKE_CXX_FLAGS="-Wall -ffast-math -march=x86-64-v3"
-D migraphx_DIR=/opt/rocm/lib/cmake/migraphx
-D MIOpen_DIR=/opt/rocm/lib/cmake/miopen
-D hip_DIR=/opt/rocm/lib/cmake/hip
-D AMDDeviceLibs_DIR=/opt/rocm/lib/cmake/AMDDeviceLibs
-D amd_comgr_DIR=/opt/rocm/lib/cmake/amd_comgr
-D hsa-runtime64_DIR=/opt/rocm/lib/cmake/hsa-runtime64
-D rocblas_DIR=/opt/rocm/lib/cmake/rocblas
-D CMAKE_PREFIX_PATH=/opt/rocm/lib/cmake

- name: Build
run: cmake --build build --verbose
Expand Down

0 comments on commit 2e4903c

Please sign in to comment.