From 47c492ffb9e8fc2c1bda952fc0db68938e284081 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 6 Jun 2024 16:47:47 +0200 Subject: [PATCH] CI Win: CUDA/MSVC incompatibility fix Latest MSVS 2022 17.10.34928.147 (MSVC v14.40.33807) in GH runner 20240603.1.0) is no longer compatible with CUDA 11.8.0.52206. CUDA refuses to compile because of unsupported compiler. Previous version 17.9.34902.65 (GH runner 20240514.3.0) was OK. As MSVS 2022 is supported by CUDA 11.8 in general, we can pass -allow-unsupported-compiler flag. --- .github/scripts/Windows/prepare_msys.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/Windows/prepare_msys.sh b/.github/scripts/Windows/prepare_msys.sh index 62e3df427..bac6fc53e 100644 --- a/.github/scripts/Windows/prepare_msys.sh +++ b/.github/scripts/Windows/prepare_msys.sh @@ -8,7 +8,8 @@ export CPATH=/usr/local/include:/usr/include export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:$MSYSTEM_PREFIX/lib/pkgconfig 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' +export CUDA_FLAGS="--generate-code arch=compute_35,code=sm_35\ + -allow-unsupported-compiler" CUDA_D=$(ls -d /c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/*) if test -d "$CUDA_D"; then