Skip to content

Comments

Don't run tests using Clang as CUDA compiler on Windows#2444

Merged
sylvestre merged 2 commits intomozilla:mainfrom
ahartmetz:windows_no_cuda_clang
Sep 21, 2025
Merged

Don't run tests using Clang as CUDA compiler on Windows#2444
sylvestre merged 2 commits intomozilla:mainfrom
ahartmetz:windows_no_cuda_clang

Conversation

@ahartmetz
Copy link
Collaborator

Visual Studio 2022 actually ships Clang these days. The included Clang v19 is too old to work with CUDA versions new enough to work with the MVSC version 14 also included with VS2022.

@codecov-commenter
Copy link

codecov-commenter commented Sep 17, 2025

Codecov Report

❌ Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 71.41%. Comparing base (36dc4cf) to head (5474a88).

Files with missing lines Patch % Lines
tests/system.rs 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2444      +/-   ##
==========================================
+ Coverage   70.94%   71.41%   +0.46%     
==========================================
  Files          65       65              
  Lines       35535    36229     +694     
==========================================
+ Hits        25211    25872     +661     
- Misses      10324    10357      +33     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Visual Studio 2022 ships MVSC 14 and Clang 19. The problem with
CUDA is that there is no version that works with both MSVC 14 and
Clang 19, so the CUDA / Clang test always failed.
@ahartmetz
Copy link
Collaborator Author

Another option would be to disable the CUDA / Clang test if an environment variable is set, and set it in appropriate CI configurations. It might work again with the next Visual Studio release. Or install current Clang in the CI, obviously, but that seems like a chore and would also increase CI runtime. At least (I didn't know and it was kind of hard to find) LLVM does seem to provide binary downloads for Windows, e.g.: https://github.com/llvm/llvm-project/releases/tag/llvmorg-21.1.0

@ahartmetz ahartmetz force-pushed the windows_no_cuda_clang branch 2 times, most recently from fb83e62 to a973056 Compare September 19, 2025 21:51
(or anyone running the tests, using environment variable
NOTEST_CUDA_COMPILERS)
@ahartmetz ahartmetz force-pushed the windows_no_cuda_clang branch from a973056 to 5474a88 Compare September 19, 2025 21:55
@sylvestre
Copy link
Collaborator

@trxcllnt ok with you ? :)

@ahartmetz
Copy link
Collaborator Author

That string list filtering code that I've written seems rather verbose btw, any tips for doing better?

@sylvestre sylvestre merged commit c7f0969 into mozilla:main Sep 21, 2025
51 of 57 checks passed
@ahartmetz ahartmetz deleted the windows_no_cuda_clang branch September 21, 2025 15:54
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.

3 participants