Skip to content

Commit b7cbe7f

Browse files
committed
Use env vars in experimental workflow
1 parent 2db18a8 commit b7cbe7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-wheel-rocm-windows.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ jobs:
4040
4141
- name: Build Wheel
4242
run: |
43+
$env:CC = 'C:\Program Files\AMD\ROCm\5.5\bin\clang.exe'
44+
$env:CXX = 'C:\Program Files\AMD\ROCm\5.5\bin\clang++.exe'
45+
$env:CMAKE_PREFIX_PATH = 'C:\Program Files\AMD\ROCm\5.5'
4346
$env:VERBOSE = '1'
4447
pushd '.\vendor\llama.cpp'
45-
cmake -B build -G "Ninja" -DCMAKE_C_COMPILER="C:\\Program Files\\AMD\\ROCm\\5.5\\bin\\clang.exe" -DCMAKE_CXX_COMPILER="C:\\Program Files\\AMD\\ROCm\\5.5\\bin\\clang++.exe" -DLLAMA_HIPBLAS=ON "-DCMAKE_HIP_ARCHITECTURES=gfx1030;gfx1100" -DCMAKE_PREFIX_PATH="C:\Program Files\AMD\ROCm\5.5" -DBUILD_SHARED_LIBS=ON
48+
cmake -B build -G "Ninja" -DLLAMA_HIPBLAS=ON "-DCMAKE_HIP_ARCHITECTURES=gfx1030;gfx1100" -DBUILD_SHARED_LIBS=ON
4649
cmake --build build --config Release --target llama
4750
Copy-Item '.\build\bin\Release\llama.dll' '..\..\llama_cpp'
4851
popd

0 commit comments

Comments
 (0)