Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 27, 2025

The version check in test_nvcc131_BugReproducer.h didn't align with its comment stating the bug "Affects versions 12.4 until 13.1". The check excluded only versions ≥12.4.99, allowing buggy versions 12.4.0-12.4.98 and all 13.x to compile.

Changes

  • Updated version thresholds: Changed from NVCC_VERSION_12_4_99 to NVCC_VERSION_12_4_00 (lower bound) and NVCC_VERSION_13_1_99 (upper bound)
  • Fixed condition logic: Now compiles only when version < 12.4.0 || version >= 13.2.0, properly excluding the affected range
  • Added .gitignore entries for CodeQL build artifacts (_codeql_build_dir/, _codeql_detected_source_root)
// Before: Only excluded 12.4.99+
#if (NVCC_VERSION_CALCULATED < NVCC_VERSION_12_4_99)

// After: Excludes 12.4.0 through 13.1.x
#if (NVCC_VERSION_CALCULATED < NVCC_VERSION_12_4_00 || NVCC_VERSION_CALCULATED >= NVCC_VERSION_13_1_99)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 5 commits December 27, 2025 11:58
Updated NVCC version threshold from 12.4.99 to 13.1.99 to match the comment
stating the bug "Affects versions 12.4 until 13.1". The new logic correctly
excludes versions 12.4 through 13.1.x where the bug exists.

Co-authored-by: albertandaluz <176801700+albertandaluz@users.noreply.github.com>
Added NVCC_VERSION_12_4_00 macro for consistency and maintainability,
replacing the hardcoded 120400 value.

Co-authored-by: albertandaluz <176801700+albertandaluz@users.noreply.github.com>
Clarified that versions >= 13.2 will compile (since 13.1.99 is the threshold)

Co-authored-by: albertandaluz <176801700+albertandaluz@users.noreply.github.com>
Co-authored-by: albertandaluz <176801700+albertandaluz@users.noreply.github.com>
Removed codeql_checker build artifacts that were accidentally committed
and added _codeql_build_dir/ and _codeql_detected_source_root to .gitignore
to prevent future accidental commits.

Co-authored-by: albertandaluz <176801700+albertandaluz@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP Address feedback on adding CUDA 13 to LTS branch Fix NVCC version check mismatch in test_nvcc131_BugReproducer.h Dec 27, 2025
Copilot AI requested a review from albertandaluz December 27, 2025 12:06
@morousg
Copy link
Member

morousg commented Jan 5, 2026

Fix the conflicts

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