File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -126,12 +126,11 @@ jobs:
126126 echo "SDL2_DIR=${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" | Out-File -FilePath $env:GITHUB_ENV -Append
127127 echo "${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" > SDL2_PATH.txt
128128
129- - name : Create nvcc wrapper for sccache
129+ - name : Create CMake CUDA compiler toolchain file
130130 shell : cmd
131131 run : |
132- echo @echo off > nvcc-sccache.bat
133- echo sccache "%CUDA_PATH%\bin\nvcc.exe" %%* >> nvcc-sccache.bat
134- echo set CUDA_NVCC_EXECUTABLE=%CD%\nvcc-sccache.bat >> %GITHUB_ENV%
132+ echo SET(CMAKE_CUDA_COMPILER_LAUNCHER sccache) > cuda_toolchain.cmake
133+ echo SET(CMAKE_CUDA_COMPILER "%CUDA_PATH%/bin/nvcc.exe") >> cuda_toolchain.cmake
135134
136135 - name : Configure CMake
137136 shell : cmd
@@ -140,10 +139,10 @@ jobs:
140139 set "CUDACXX=sccache %CUDA_PATH%\bin\nvcc.exe"
141140 cmake -S . -B ./build -A ${{ matrix.arch }} ^
142141 -DCMAKE_BUILD_TYPE=${{ matrix.build }} ^
142+ -DCMAKE_TOOLCHAIN_FILE=cuda_toolchain.cmake ^
143143 -DGGML_CUDA=${{ matrix.cublas }} ^
144144 -DCMAKE_CUDA_ARCHITECTURES=all ^
145145 -DWHISPER_SDL2=${{ matrix.sdl2 }} ^
146- -DCMAKE_CUDA_COMPILER="%CD%\nvcc-sccache.bat" ^
147146 -DCMAKE_CUDA_COMPILER_LAUNCHER=sccache ^
148147 -DCMAKE_C_COMPILER_LAUNCHER=sccache ^
149148 -DCMAKE_CXX_COMPILER_LAUNCHER=sccache ^
You can’t perform that action at this time.
0 commit comments