Skip to content

Conversation

justinfargnoli
Copy link
Contributor

@justinfargnoli justinfargnoli commented Aug 28, 2025

Reland #154439. Reverted with #155914.

Account for:

  • Windows ptxas outputting error messages to stdout instead of stderr
  • Tests in llvm/test/DebugInfo/NVPTX

@justinfargnoli justinfargnoli requested a review from Copilot August 28, 2025 21:20
@justinfargnoli justinfargnoli self-assigned this Aug 28, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the ptxas feature detection system in LLVM's lit testing framework to move from CUDA toolkit version-based checks to more granular ISA version and architecture-specific checks. This enables more precise testing by checking for specific SM architectures and PTX ISA versions that ptxas supports.

Key changes include:

  • Refactored ptxas version detection and feature availability functions
  • Updated test files to use new granular feature checks (ptxas-sm_XX, ptxas-isa-X.Y, ptxas-ptr32)
  • Replaced broad version checks with specific capability-based checks

Reviewed Changes

Copilot reviewed 175 out of 175 changed files in this pull request and generated no comments.

File Description
llvm/test/lit.cfg.py Completely refactored ptxas feature detection with new functions for ISA versions, SM architectures, and address size support
Various .ll/.py test files Updated from version-based ptxas checks to granular feature-based checks using new ptxas-sm_XX and ptxas-isa-X.Y patterns
Comments suppressed due to low confidence (3)

@justinfargnoli
Copy link
Contributor Author

For reference: #155912 (comment)

@justinfargnoli
Copy link
Contributor Author

justinfargnoli commented Aug 28, 2025

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