From 64db0c40d43fe7fd5af66d285a9a4122409061a8 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 28 Aug 2024 10:55:32 +0200 Subject: [PATCH] CI Win: current MSVC/CUDA 11.8 incompatibility workaroud Workaround to current MSVC error with CUDA 11.8: ``` C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\yvals_core.h(888): error: static assertion failed with "error STL1002: Unexpected compiler version, expected CUDA 12.4 or newer." ``` CUDA 11.8 is used for compatibility with CC 3.5 (Kepler) devices. The support for those will however end in 5 days [1] so we may swich to CUDA 12.x later. [1]: https://endoflife.date/nvidia-gpu --- .github/scripts/Windows/prepare_msys.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/Windows/prepare_msys.sh b/.github/scripts/Windows/prepare_msys.sh index b05b41725..13fe48b96 100644 --- a/.github/scripts/Windows/prepare_msys.sh +++ b/.github/scripts/Windows/prepare_msys.sh @@ -9,7 +9,7 @@ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/ export LIBRARY_PATH=/usr/local/lib export INCLUDE='C:\msys64\clang64\include' # for MSVC (CUDA) export CUDA_FLAGS="--generate-code arch=compute_35,code=sm_35\ - -allow-unsupported-compiler" + -D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH -allow-unsupported-compiler" CUDA_D=$(ls -d /c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/*) if test -d "$CUDA_D"; then