From acfa1b16e54d46ddf8f14c66673fe290fd1ebd45 Mon Sep 17 00:00:00 2001 From: YellowRoseCx <80486540+YellowRoseCx@users.noreply.github.com> Date: Tue, 3 Oct 2023 20:54:51 -0500 Subject: [PATCH] Create tests-rocm-windows --- .github/workflows/tests-rocm-windows | 67 ++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/tests-rocm-windows diff --git a/.github/workflows/tests-rocm-windows b/.github/workflows/tests-rocm-windows new file mode 100644 index 0000000000000..224a468f872ab --- /dev/null +++ b/.github/workflows/tests-rocm-windows @@ -0,0 +1,67 @@ +name: Test build Koboldcpp-ROCm Windows + +on: + workflow_dispatch: + inputs: + version: + description: 'Version tag of koboldcpp-rocm to test: v1.43.2-ROCm' + default: latest + required: false + type: string + workflow_call: + inputs: + version: + description: 'Version tag of koboldcpp-rocm to test: v1.43.2-ROCm' + default: latest + required: false + type: string + +permissions: + contents: write + +jobs: + build_libs: + name: test ROCm Lib + runs-on: windows-latest + defaults: + run: + shell: pwsh + + steps: + - uses: actions/checkout@v3 + with: + repository: 'YellowRoseCx/koboldcpp-rocm' + ref: main + submodules: 'recursive' + + - name: Install ROCm SDK + run: | + curl -LO https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-23.Q3-Win10-Win11-For-HIP.exe + Start-Process 'AMD-Software-PRO-Edition-23.Q3-Win10-Win11-For-HIP.exe' -ArgumentList '-install' -NoNewWindow -Wait + echo "C:\Program Files\AMD\ROCm\5.5\bin" >> $env:GITHUB_PATH + echo 'ROCM_PATH=C:\Program Files\AMD\ROCm\5.5' >> $env:GITHUB_ENV + echo 'HIP_PATH=C:\Program Files\AMD\ROCm\5.5' >> $env:GITHUB_ENV + echo "ROCM_VERSION=5.5.1" >> $env:GITHUB_ENV + + - uses: actions/setup-python@v3 + with: + python-version: "3.10" + + - name: Install Dependencies + run: | + python -m pip install cmake ninja + + - name: Install PyInstaller + run: pip install pyinstaller psutil + + - name: Copy ROCm DLLs and Run PyInstaller + run: | + Set-Location 'D:\a\koboldcpp-rocm\koboldcpp-rocm' + Get-Location + copy "C:\Program Files\AMD\ROCm\5.5\bin\hipblas.dll" .\ + copy "C:\Program Files\AMD\ROCm\5.5\bin\rocblas.dll" .\ + robocopy "C:\Program Files\AMD\ROCm\5.5\bin\rocblas" .\rocblas /MIR + ls + curl -LO https://github.com/YellowRoseCx/koboldcpp-rocm/releases/download/v1.43.2-ROCm/gfx103132rocblasfiles.7z + 7z x gfx103132rocblasfiles.7z + ls