Skip to content

Commit 0462dbc

Browse files
committed
Manually build libs in experimental workflow
1 parent ed23ae1 commit 0462dbc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,17 @@ jobs:
3535

3636
- name: Install Dependencies
3737
run: |
38-
pip3 install build wheel cmake scikit-build ninja
38+
python -m pip install build wheel cmake scikit-build ninja
3939
4040
- name: Build Wheel
4141
run: |
42-
$env:CC = 'C:\Program Files\AMD\ROCm\5.5\bin\clang.exe'
43-
$env:CXX = 'C:\Program Files\AMD\ROCm\5.5\bin\clang++.exe'
4442
$env:VERBOSE = '1'
45-
$env:FORCE_CMAKE = '1'
46-
$env:CMAKE_ARGS = "-DLLAMA_HIPBLAS=ON -DCMAKE_HIP_ARCHITECTURES=gfx1030;gfx1100 -DCMAKE_PREFIX_PATH=`"${env:ROCM_PATH}`""
47-
python3 -m build -n --wheel -C--build-option=egg_info "-C--build-option=--tag-build=+rocm5.5.1"
43+
pushd '.\vendor\llama.cpp'
44+
cmake -B build -DLLAMA_HIPBLAS=ON "-DCMAKE_HIP_ARCHITECTURES=gfx1030;gfx1100" -DCMAKE_PREFIX_PATH="C:\Program Files\AMD\ROCm\5.5" -DBUILD_SHARED_LIBS=ON
45+
cmake --build build --config Release --target llama
46+
Copy-Item '.\build\bin\Release\llama.dll' '..\..\llama_cpp'
47+
popd
48+
python setup.py --skip-cmake bdist_wheel egg_info --tag-build=+rocm5.5.1
4849
4950
- uses: actions/upload-artifact@v3
5051
with:

0 commit comments

Comments
 (0)