Skip to content

Commit

Permalink
CI Win: current MSVC/CUDA 11.8 incompatibility workaroud
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MartinPulec committed Aug 28, 2024
1 parent 4b449c5 commit 64db0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/Windows/prepare_msys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64db0c4

Please sign in to comment.