|
40 | 40 | & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -all -products * -format json |
41 | 41 | shell: pwsh |
42 | 42 |
|
| 43 | + - name: Visual Studio 2019 Reinstall |
| 44 | + shell: cmd |
| 45 | + run: | |
| 46 | + @echo off |
| 47 | + echo Preparing setup |
| 48 | + curl -fLO https://download.visualstudio.microsoft.com/download/pr/1fbe074b-8ae1-4e9b-8e83-d1ce4200c9d1/61098e228df7ba3a6a8b4e920a415ad8878d386de6dd0f23f194fe1a55db189a/vs_Enterprise.exe |
| 49 | + vs_Enterprise.exe --quiet --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.CLI.Support --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Workload.UniversalBuildTools --add Microsoft.VisualStudio.Component.VC.CMake.Project |
| 50 | + echo Waiting for VS2019 setup |
| 51 | + set "ProcessName=setup.exe" |
| 52 | + :CheckProcess |
| 53 | + tasklist /FI "IMAGENAME eq %ProcessName%" | find /I "%ProcessName%" >nul |
| 54 | + if %errorlevel%==0 ( |
| 55 | + ping 127.0.0.1 /n 5 >nul |
| 56 | + goto CheckProcess |
| 57 | + ) |
| 58 | + echo VS2019 Setup completed |
| 59 | + exit /b 0 |
| 60 | +
|
| 61 | + |
| 62 | + id: cuda-toolkit |
| 63 | + with: |
| 64 | + cuda: '12.1.0' |
| 65 | + use-github-cache: false |
| 66 | + |
| 67 | + - name: Disable Visual Studio 2022 by Renaming |
| 68 | + run: | |
| 69 | + Rename-Item "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" "Enterprise_DISABLED" |
| 70 | + shell: pwsh |
| 71 | + |
| 72 | + - name: Display full Visual Studio info After |
| 73 | + run: | |
| 74 | + & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -all -products * -format json |
| 75 | + shell: pwsh |
| 76 | + |
43 | 77 | - name: Download and install win64devkit |
44 | 78 | run: | |
45 | 79 | curl -L https://github.com/skeeto/w64devkit/releases/download/v1.22.0/w64devkit-1.22.0.zip --output w64devkit.zip |
|
63 | 97 | run: | |
64 | 98 | make LLAMA_CLBLAST=1 LLAMA_VULKAN=1 LLAMA_PORTABLE=1 -j ${env:NUMBER_OF_PROCESSORS} |
65 | 99 |
|
66 | | - |
67 | | - id: cuda-toolkit |
68 | | - with: |
69 | | - cuda: '12.4.0' |
70 | | - use-github-cache: false |
71 | | - |
72 | 100 | - name: Build CUDA |
73 | 101 | id: cmake_build |
74 | 102 | run: | |
|
86 | 114 | # ls |
87 | 115 | - name: Copy CuBLAS Libraries |
88 | 116 | run: | |
89 | | - copy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\cublasLt64_12.dll" . |
90 | | - copy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\cublas64_12.dll" . |
| 117 | + copy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\cublasLt64_12.dll" . |
| 118 | + copy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\cublas64_12.dll" . |
91 | 119 | ls |
92 | 120 |
|
93 | 121 | - name: Package PyInstallers |
|
0 commit comments