@@ -761,14 +761,15 @@ jobs:
761
761
windows-cublas :
762
762
if : ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
763
763
github.event.inputs.run_type == 'full-ci' }}
764
- runs-on : windows-2019
764
+ runs-on : windows-2022
765
765
strategy :
766
+ fail-fast : false
766
767
matrix :
767
768
build : [Release]
768
769
arch : [x64]
769
770
cublas : [ON]
770
771
sdl2 : [ON]
771
- cuda-toolkit : [12.2 .0, 11.8.0]
772
+ cuda-toolkit : [12.4 .0, 11.8.0]
772
773
include :
773
774
- arch : x64
774
775
sdl2 : ON
@@ -836,31 +837,31 @@ jobs:
836
837
xcopy "$CUDA_TOOLKIT_DIR\visual_studio_integration-windows-x86_64-${VS_VER}-archive\*" "$CUDA_TOOLKIT_DIR" /E /I /H /Y
837
838
838
839
# Visual Studio integration
839
- xcopy "$CUDA_TOOLKIT_DIR\visual_studio_integration-windows-x86_64-${VS_VER}-archive\visual_studio_integration\MSBuildExtensions\*" "C:\Program Files (x86) \Microsoft Visual Studio\2019 \Enterprise\MSBuild\Microsoft\VC\v160 \BuildCustomizations" /E /I /H /Y
840
+ xcopy "$CUDA_TOOLKIT_DIR\visual_studio_integration-windows-x86_64-${VS_VER}-archive\visual_studio_integration\MSBuildExtensions\*" "C:\Program Files\Microsoft Visual Studio\2022 \Enterprise\MSBuild\Microsoft\VC\v170 \BuildCustomizations" /E /I /H /Y
840
841
841
842
# Set environment variables
842
843
echo "$CUDA_TOOLKIT_DIR\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
843
844
echo "$CUDA_TOOLKIT_DIR\libnvvp" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
844
845
echo "CUDA_PATH=$CUDA_TOOLKIT_DIR" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
845
846
echo "CUDA_PATH_V11_8=$CUDA_TOOLKIT_DIR" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
846
847
847
- - name : Install Cuda Toolkit 12.2 .0
848
- if : ${{ matrix.cuda-toolkit == '12.2 .0' }}
848
+ - name : Install Cuda Toolkit 12.4 .0
849
+ if : ${{ matrix.cuda-toolkit == '12.4 .0' }}
849
850
run : |
850
851
$CUDA_VERSION = ${{ matrix.cuda-toolkit }}
851
852
$CUDA_TOOLKIT_DIR = "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v$CUDA_VERSION"
852
853
$CUDA_DOWNLOAD = "https://developer.download.nvidia.com/compute/cuda/redist"
853
854
854
855
# Components versions
855
- $CUDART_VER = "12.2.140 "
856
- $NVCC_VER = "12.2.140 "
857
- $NVRTC_VER = "12.2.140 "
858
- $CUBLAS_VER = "12.2 .5.6 "
859
- $NVTX_VER = "12.2.140 "
860
- $PROFILER_VER = "12.2.140 "
861
- $VS_VER = "12.2.140 "
862
- $NVPROF_VER = "12.2.142 "
863
- $CCCL_VER = "12.2.140 "
856
+ $CUDART_VER = "12.4.127 "
857
+ $NVCC_VER = "12.4.131 "
858
+ $NVRTC_VER = "12.4.127 "
859
+ $CUBLAS_VER = "12.4 .5.8 "
860
+ $NVTX_VER = "12.4.127 "
861
+ $PROFILER_VER = "12.4.127 "
862
+ $VS_VER = "12.4.127 "
863
+ $NVPROF_VER = "12.4.128 "
864
+ $CCCL_VER = "12.4.127 "
864
865
865
866
# Create the directory where the CUDA Toolkit will be installed
866
867
mkdir -p $CUDA_TOOLKIT_DIR
@@ -894,7 +895,7 @@ jobs:
894
895
xcopy "$CUDA_TOOLKIT_DIR\visual_studio_integration-windows-x86_64-${VS_VER}-archive\*" "$CUDA_TOOLKIT_DIR" /E /I /H /Y
895
896
896
897
# Visual Studio integration
897
- xcopy "$CUDA_TOOLKIT_DIR\visual_studio_integration-windows-x86_64-${VS_VER}-archive\visual_studio_integration\MSBuildExtensions\*" "C:\Program Files (x86) \Microsoft Visual Studio\2019 \Enterprise\MSBuild\Microsoft\VC\v160 \BuildCustomizations" /E /I /H /Y
898
+ xcopy "$CUDA_TOOLKIT_DIR\visual_studio_integration-windows-x86_64-${VS_VER}-archive\visual_studio_integration\MSBuildExtensions\*" "C:\Program Files\Microsoft Visual Studio\2022 \Enterprise\MSBuild\Microsoft\VC\v170 \BuildCustomizations" /E /I /H /Y
898
899
899
900
# Set environment variables
900
901
echo "$CUDA_TOOLKIT_DIR\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
@@ -922,14 +923,21 @@ jobs:
922
923
- name : Build Project
923
924
shell : cmd
924
925
run : |
925
- call "C:\Program Files (x86) \Microsoft Visual Studio\2019 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
926
+ call "C:\Program Files\Microsoft Visual Studio\2022 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
926
927
cmake --version
927
928
where cmake
929
+ if "${{ matrix.cuda-toolkit }}" == "11.8.0" (
930
+ set CUDA_FLAGS=-allow-unsupported-compiler -D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
931
+ ) else (
932
+ set CUDA_FLAGS=
933
+ )
928
934
cmake -S . -B build -G "Ninja Multi-Config" ^
929
935
-DCMAKE_BUILD_TYPE=${{ matrix.build }} ^
930
936
-DGGML_CUDA=${{ matrix.cublas }} ^
931
937
-DWHISPER_SDL2=${{ matrix.sdl2 }} ^
932
- -DSDL2_DIR="%SDL2_DIR%"
938
+ -DSDL2_DIR="%SDL2_DIR%" ^
939
+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ^
940
+ -DCMAKE_CUDA_FLAGS="%CUDA_FLAGS%"
933
941
set /A NINJA_JOBS=%NUMBER_OF_PROCESSORS%-1
934
942
cmake --build build --config ${{ matrix.build }} -j %NUMBER_OF_PROCESSORS%
935
943
0 commit comments