Update Windows CI to CUDA 13.5.0 and upstream SuiteSparse 7.14.1 - Upgrade Windows CUDA toolkit from 13.3.0 to 13.5.0 (using the 13.5.0 x86_64 network installer and cccl_13.5 subpackage) to address the cudafe++ crash on MSVC 14.52. - Replace the prebuilt sergiud/SuiteSparse 5.13.0 zip with a cached build of upstream SuiteSparse 7.14.1 (CHOLMOD + SPQR) linked against a cached prebuilt OpenBLAS 0.3.34 binary, bringing Windows CI onto SuiteSparse 7 and enabling single-precision CHOLMOD tests. - Remove the unused marker matrix variable. Change-Id: Ib2a52e50e7b89cb97b823077016595b03dbc8ecb
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 62a7ed5..cd56d8f 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml
@@ -103,7 +103,6 @@ - msvc: VS-18-2026 os: windows-2025-vs2026 generator: 'Visual Studio 18 2026' - marker: vc18 steps: - uses: actions/checkout@v4 @@ -116,23 +115,23 @@ uses: actions/cache@v4 with: path: | - C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.3 + C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.5 C:/Program Files/Microsoft Visual Studio/18/Enterprise/MSBuild/Microsoft/VC/v180/BuildCustomizations - key: ${{runner.os}}-${{matrix.msvc}}-cuda-13.3.0-v1 + key: ${{runner.os}}-${{matrix.msvc}}-cuda-13.5.0-v1 - name: Download and install CUDA toolkit if: matrix.gpu == 'cuda' && steps.cache-cuda.outputs.cache-hit != 'true' run: | - Invoke-WebRequest https://developer.download.nvidia.com/compute/cuda/13.3.0/network_installers/cuda_13.3.0_windows_network.exe -OutFile cuda_toolkit_windows.exe - Start-Process -Wait -FilePath .\cuda_toolkit_windows.exe -ArgumentList "-s crt_13.3 cusolver_dev_13.3 cusparse_dev_13.3 cublas_dev_13.3 thrust_13.3 nvcc_13.3 nvvm_13.3 cudart_13.3 nvrtc_dev_13.3 visual_studio_integration_13.3" + Invoke-WebRequest https://developer.download.nvidia.com/compute/cuda/13.5.0/network_installers/cuda_13.5.0_windows_x86_64_network.exe -OutFile cuda_toolkit_windows.exe + Start-Process -Wait -FilePath .\cuda_toolkit_windows.exe -ArgumentList "-s crt_13.5 cusolver_dev_13.5 cusparse_dev_13.5 cublas_dev_13.5 cccl_13.5 nvcc_13.5 nvvm_13.5 cudart_13.5 nvrtc_dev_13.5 visual_studio_integration_13.5" Remove-Item .\cuda_toolkit_windows.exe - name: Setup CUDA environment if: matrix.gpu == 'cuda' run: | - $CUDA_PATH = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.3" + $CUDA_PATH = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.5" echo "CUDA_PATH=$CUDA_PATH" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - echo "CUDA_PATH_V13_3=$CUDA_PATH" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + echo "CUDA_PATH_V13_5=$CUDA_PATH" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append echo "$CUDA_PATH/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - name: Cache cuDSS @@ -158,18 +157,57 @@ echo "cudss_DIR=$CUDSS_PATH/lib/cmake/cudss" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append echo "$CUDSS_PATH/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + - name: Cache OpenBLAS + id: cache-openblas + uses: actions/cache@v4 + with: + path: openblas/ + key: ${{runner.os}}-openblas-0.3.34-${{matrix.arch}} + + - name: Download OpenBLAS + if: steps.cache-openblas.outputs.cache-hit != 'true' + run: | + Invoke-WebRequest https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.34/OpenBLAS-0.3.34-x64.zip -OutFile openblas.zip + Expand-Archive -Path openblas.zip -DestinationPath ${{github.workspace}}/openblas + Remove-Item openblas.zip + + - name: Setup OpenBLAS environment + run: | + echo '${{github.workspace}}\openblas\bin' | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + - name: Cache SuiteSparse id: cache-suitesparse uses: actions/cache@v4 with: path: suitesparse/ - key: ${{matrix.msvc}}-suitesparse-5.13.0-cmake.5-${{matrix.arch}}-${{matrix.build_type}}-${{matrix.lib}} + key: ${{matrix.msvc}}-suitesparse-7.14.1-openblas-0.3.34-${{matrix.arch}}-${{matrix.build_type}}-${{matrix.lib}} - - name: Download SuiteSparse + - name: Download and build SuiteSparse if: steps.cache-suitesparse.outputs.cache-hit != 'true' run: | - (New-Object System.Net.WebClient).DownloadFile("https://github.com/sergiud/SuiteSparse/releases/download/5.13.0-cmake.5/SuiteSparse-5.13.0-cmake.5-${{matrix.marker}}-Win64-${{matrix.build_type}}-${{matrix.lib}}-gpl-metis.zip", "suitesparse.zip"); - Expand-Archive -Path suitesparse.zip -DestinationPath ${{github.workspace}}/suitesparse; + Invoke-WebRequest https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v7.14.1.zip -OutFile suitesparse.zip + Expand-Archive -Path suitesparse.zip -DestinationPath . + Remove-Item suitesparse.zip + cmake -S SuiteSparse-7.14.1 -B build-suitesparse ` + -DBLA_VENDOR=OpenBLAS ` + -DBLAS_INCLUDE_DIRS=${{github.workspace}}/openblas/include ` + -DBLAS_LIBRARIES=${{github.workspace}}/openblas/lib/libopenblas.lib ` + -DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}} ` + -DBUILD_STATIC_LIBS=${{matrix.lib == 'static'}} ` + -DCMAKE_CONFIGURATION_TYPES=${{matrix.build_type}} ` + -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/suitesparse ` + -DLAPACK_LIBRARIES=${{github.workspace}}/openblas/lib/libopenblas.lib ` + '-DSUITESPARSE_C_TO_FORTRAN=(name,NAME) name##_' ` + -DSUITESPARSE_DEMOS=OFF ` + '-DSUITESPARSE_ENABLE_PROJECTS=cholmod;spqr' ` + -DSUITESPARSE_USE_CUDA=OFF ` + -DSUITESPARSE_USE_FORTRAN=OFF ` + -DSUITESPARSE_USE_OPENMP=OFF + cmake --build build-suitesparse ` + --config ${{matrix.build_type}} ` + --target install ` + --parallel + Remove-Item -Recurse -Force SuiteSparse-7.14.1, build-suitesparse - name: Cache Eigen id: cache-eigen @@ -231,13 +269,13 @@ - name: Configure run: | cmake -S . -B build_${{matrix.build_type}}/ ` - -DBLAS_blas_LIBRARY=${{github.workspace}}/suitesparse/lib/libblas.lib ` + -DBLAS_blas_LIBRARY=${{github.workspace}}/openblas/lib/libopenblas.lib ` -DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}} ` -DCMAKE_CONFIGURATION_TYPES=${{matrix.build_type}} ` -DCMAKE_INSTALL_PREFIX:PATH=${{github.workspace}}/install ` "-DCMAKE_VS_GLOBALS=CLToolExe=cl.exe;CLToolPath=${{github.workspace}}\ccache-4.10.2-windows-x86_64;TrackFileAccess=false;UseMultiToolTask=true;DebugInformationFormat=OldStyle" ` -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded ` - -DLAPACK_lapack_LIBRARY=${{github.workspace}}/suitesparse/lib/liblapack.lib ` + -DLAPACK_lapack_LIBRARY=${{github.workspace}}/openblas/lib/libopenblas.lib ` -DWITH_SUITESPARSE=ON - name: Build