Skip to content

Commit cb59db2

Browse files
committed
ci: Properly install rocwmma for hip builds
1 parent 0124ac9 commit cb59db2

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ jobs:
487487
id: depends
488488
run: |
489489
sudo apt-get update
490-
sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev libcurl4-openssl-dev
490+
sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev libcurl4-openssl-dev rocwmma-dev
491491
492492
- name: ccache
493493
uses: ggml-org/[email protected]
@@ -1141,6 +1141,22 @@ jobs:
11411141
}
11421142
& $clangPath.FullName --version
11431143
1144+
- name: Install rocwmma
1145+
run: |
1146+
$env:HIP_PATH=$(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path)
1147+
$env:CMAKE_PREFIX_PATH="${env:HIP_PATH}"
1148+
cd rocwmma
1149+
cmake -G "Unix Makefiles" -B build -S . `
1150+
-DROCWMMA_BUILD_TESTS=Off `
1151+
-DROCWMMA_BUILD_SAMPLES=Off `
1152+
-DBUILD_OFFLOAD_COMPRESS=Off `
1153+
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
1154+
-DCMAKE_C_COMPILER=="${env:HIP_PATH}\bin\clang.exe" `
1155+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 `
1156+
-DCMAKE_INSTALL_PREFIX=./install
1157+
cmake --install build
1158+
cd ..
1159+
11441160
- name: Install ccache
11451161
uses: ggml-org/[email protected]
11461162
with:
@@ -1161,8 +1177,9 @@ jobs:
11611177
cmake -G "Unix Makefiles" -B build -S . `
11621178
-DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
11631179
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
1164-
-DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/rocwmma/library/include/" `
1180+
-DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/rocwmma/install/include/" `
11651181
-DCMAKE_BUILD_TYPE=Release `
1182+
-DROCM_DIR="${env:HIP_PATH}" `
11661183
-DGGML_HIP=ON `
11671184
-DGGML_HIP_ROCWMMA_FATTN=ON `
11681185
-DGGML_RPC=ON `

0 commit comments

Comments
 (0)