llvm/llvm-project

[NVPTX] Test SM Versions via `ptxas`

Open

#137.028 geöffnet am 23. Apr. 2025

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (10.782 Forks)batch import
backend:NVPTXgood first issue

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

llvm/test/CodeGen/NVPTX/sm-version.ll checks that the PTX and SM versions are supported by llc. However, we should also check that they're supported in ptxas.

Here's an example of how to run a test with ptxas: (source)

; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 | %ptxas-verify %}

Contributor Guide