File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,13 @@ jobs:
126
126
echo "SDL2_DIR=${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" | Out-File -FilePath $env:GITHUB_ENV -Append
127
127
echo "${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" > SDL2_PATH.txt
128
128
129
+ - name : Create nvcc wrapper for sccache
130
+ shell : cmd
131
+ 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%
135
+
129
136
- name : Configure CMake
130
137
shell : cmd
131
138
run : |
@@ -136,6 +143,7 @@ jobs:
136
143
-DGGML_CUDA=${{ matrix.cublas }} ^
137
144
-DCMAKE_CUDA_ARCHITECTURES=all ^
138
145
-DWHISPER_SDL2=${{ matrix.sdl2 }} ^
146
+ -DCMAKE_CUDA_COMPILER="%CD%\nvcc-sccache.bat" ^
139
147
-DCMAKE_CUDA_COMPILER_LAUNCHER=sccache ^
140
148
-DCMAKE_C_COMPILER_LAUNCHER=sccache ^
141
149
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache ^
You can’t perform that action at this time.
0 commit comments