Skip to content

Commit

Permalink
Update cmake-rocm-windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowRoseCx authored Oct 13, 2024
1 parent 4c08a44 commit ad476e2
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/cmake-rocm-windows.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Build Koboldcpp-ROCm Windows
name: Build Koboldcpp-ROCm Windows 7900xt

on:
workflow_dispatch:
inputs:
version:
description: 'Version tag of koboldcpp-rocm to build: v1.75.2.yr0-ROCm'
default: v1.68.yr0-ROCm
default: v1.76.yr0-ROCm
required: false
type: string
workflow_call:
inputs:
version:
description: 'Version tag of koboldcpp-rocm to build: v1.75.2.yr-ROCm'
default: v1.68.yr0-ROCm
default: v1.76.yr0-ROCm
required: false
type: string

Expand All @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v3
with:
repository: 'YellowRoseCx/koboldcpp-rocm'
ref: main
ref: main-7900xt
submodules: 'recursive'

- name: Setup MSYS2
Expand Down Expand Up @@ -80,13 +80,6 @@ jobs:

- name: Build Lib
run: |
Set-Location 'C:\Program Files\AMD\ROCm\6.1\bin'
Get-Location
Remove-Item -Force -Recurse -Path 'C:\Program Files\AMD\ROCm\6.1\bin\rocblas'
curl -LO https://github.com/YellowRoseCx/koboldcpp-rocm/releases/download/deps-v6.2.0/rocblas6.2.0.7z
7z x rocblas6.2.0.7z -aoa
Set-Location 'C:\Program Files\AMD\ROCm\6.1\bin\rocblas\library'
ls
Set-Location 'D:\a\koboldcpp-rocm\koboldcpp-rocm'
$env:CC = 'C:\Program Files\AMD\ROCm\6.1\bin\clang.exe'
$env:CXX = 'C:\Program Files\AMD\ROCm\6.1\bin\clang++.exe'
Expand All @@ -105,8 +98,8 @@ jobs:
run: |
Set-Location 'D:\a\koboldcpp-rocm\koboldcpp-rocm'
Get-Location
curl -LO https://github.com/YellowRoseCx/koboldcpp-rocm/releases/download/deps-v6.2.0/rocblas-6.2.0.dll.7z
7z x rocblas-6.2.0.dll.7z -aoa
copy "C:\Program Files\AMD\ROCm\6.1\bin\hipblas.dll" .\
copy "C:\Program Files\AMD\ROCm\6.1\bin\rocblas.dll" .\
robocopy "C:\Program Files\AMD\ROCm\6.1\bin\rocblas" .\rocblas /MIR
pip install customtkinter
PyInstaller --noconfirm --onefile --collect-all customtkinter --clean --console --icon ".\niko.ico" --add-data "./winclinfo.exe;." --add-data "./OpenCL.dll;." --add-data "./klite.embd;." --add-data "./kcpp_docs.embd;." --add-data="./kcpp_sdui.embd;." --add-data="./taesd.embd;." --add-data="./taesd_xl.embd;." --add-data "./koboldcpp_default.dll;." --add-data "./koboldcpp_failsafe.dll;." --add-data "./koboldcpp_noavx2.dll;." --add-data "./koboldcpp_clblast.dll;." --add-data "./koboldcpp_clblast_noavx2.dll;." --add-data "./koboldcpp_vulkan_noavx2.dll;." --add-data "./clblast.dll;." --add-data "./koboldcpp_vulkan.dll;." --add-data "./vulkan-1.dll;." --add-data "./rwkv_vocab.embd;." --add-data "./rwkv_world_vocab.embd;." --add-data "D:\a\koboldcpp-rocm\koboldcpp-rocm\build\bin\koboldcpp_hipblas.dll;." --add-data "./rocblas.dll;." --add-data "./rocblas;." --add-data "C:/Windows/System32/msvcp140.dll;." --add-data "C:/Windows/System32/vcruntime140_1.dll;." "./koboldcpp.py" -n "koboldcpp_rocm.exe"
Expand Down

0 comments on commit ad476e2

Please sign in to comment.