From 65936481a31dec8c17fc796fd64d02e88279d89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Fri, 2 Aug 2024 17:41:40 +0200 Subject: [PATCH] [ci] Windows: Add appropriate CUDA flags Add `--allow-unsupported-compiler` and `ALLOW_COMPILER_AND_STL_VERSION_MISMATCH` flags to prevent fatal errors induced by the version of the MSVC compiler, which has been updated in the GitHub image to a recent version that by default does not support any version of CUDA that is below 12.1. --- .github/workflows/continuous-integration.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 757903e646..d981205063 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -226,6 +226,8 @@ jobs: -DALICEVISION_BUILD_STEREOPHOTOMETRY=OFF -DALICEVISION_BUILD_SEGMENTATION=OFF -DBOOST_NO_CXX11=ON + -DCUDA_NVCC_FLAGS=--allow-unsupported-compiler;-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH + # This input tells run-cmake to consume the vcpkg.cmake toolchain file set by run-vcpkg. cmakeBuildType: Release buildWithCMake: true