llvm/llvm-project

[NVPTX] Test SM Versions via `ptxas`

Open

#137 028 ouverte le 23 avr. 2025

Voir sur GitHub
 (7 commentaires) (0 réactions) (0 assignés)C++ (10 782 forks)batch import
backend:NVPTXgood first issue

Métriques du dépôt

Stars
 (26 378 stars)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

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 %}

Guide contributeur