Skip to content

CI: pin Windows CUDA build to windows-2022#243

Merged
garyo merged 2 commits into
AcademySoftwareFoundation:mainfrom
garyo:bugfix/windows-cuda-ci-vs2022
Jun 15, 2026
Merged

CI: pin Windows CUDA build to windows-2022#243
garyo merged 2 commits into
AcademySoftwareFoundation:mainfrom
garyo:bugfix/windows-cuda-ci-vs2022

Conversation

@garyo

@garyo garyo commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Problem

The Windows <config=Release> (CUDA) CI job started failing on all PRs and pushes. It dies at CMake configure time during CUDA compiler detection, before any source is compiled:

crt/host_config.h(170): fatal error C1189: #error: -- unsupported Microsoft
Visual Studio version! Only the versions between 2017 and 2022 (inclusive)
are supported!
...
CMakeLists.txt:3 (project)

GitHub rolled the windows-latest runner image forward to Visual Studio 2026 (log paths show Visual Studio\18\Enterprise). The pinned CUDA 12.4.1 toolkit's nvcc only accepts host compilers VS 2017–2022, so it rejects the new cl.exe.

This is purely runner-image drift — no source change triggered it (the last main build was green; the non-CUDA Windows job, which doesn't invoke nvcc, still passes).

Fix

Pin the CUDA Windows matrix entry to windows-2022, which still provides VS 2022. The non-CUDA Windows job stays on windows-latest so we keep coverage of the newer toolchain.

This is a stopgap until a CUDA toolkit that supports VS 2026 can be adopted on Windows.

garyo added 2 commits June 14, 2026 10:36
The windows-latest runner image now ships Visual Studio 2026, whose
host compiler is rejected by CUDA 12.4's nvcc (only VS 2017-2022 are
supported), breaking CMake's CUDA compiler detection at configure time.
Pin the CUDA Windows build to windows-2022 until the toolchain catches
up. The non-CUDA Windows job stays on windows-latest.

Signed-off-by: Gary Oberbrunner <[email protected]>
@garyo garyo merged commit 5ff71cf into AcademySoftwareFoundation:main Jun 15, 2026
10 checks passed
@garyo garyo deleted the bugfix/windows-cuda-ci-vs2022 branch June 15, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant