Skip to content

Commit d006747

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

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 16 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,20 @@ jobs:
11411141
}
11421142
& $clangPath.FullName --version
11431143
1144+
- name: Install rocwmma
1145+
run: |
1146+
cd rocwmma
1147+
cmake -G "Unix Makefiles" -B build -S . `
1148+
-DROCWMMA_BUILD_TESTS=Off `
1149+
-DROCWMMA_BUILD_SAMPLES=Off `
1150+
-DBUILD_OFFLOAD_COMPRESS=Off `
1151+
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
1152+
-DCMAKE_C_COMPILER=="${env:HIP_PATH}\bin\clang.exe" `
1153+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 `
1154+
-DCMAKE_INSTALL_PREFIX=./install
1155+
cmake --install build
1156+
cd ..
1157+
11441158
- name: Install ccache
11451159
uses: ggml-org/[email protected]
11461160
with:
@@ -1161,7 +1175,7 @@ jobs:
11611175
cmake -G "Unix Makefiles" -B build -S . `
11621176
-DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
11631177
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
1164-
-DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/rocwmma/library/include/" `
1178+
-DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/rocwmma/install/include/" `
11651179
-DCMAKE_BUILD_TYPE=Release `
11661180
-DGGML_HIP=ON `
11671181
-DGGML_HIP_ROCWMMA_FATTN=ON `

0 commit comments

Comments
 (0)