Skip to content

Commit 5436dce

Browse files
[NVPTX] Fix ptxas requirements
\#159388 caused some test failures for us internally: exit status 255 ptxas /tmp/tmpxft_000026cd_00000000-0_stdin, line 37; error : Feature 'used_bytes_mask' requires PTX ISA .version 8.3 or later ptxas /tmp/tmpxft_000026cd_00000000-0_stdin, line 37; error : Feature 'used_bytes_mask' requires .target sm_50 or higher ptxas fatal : Ptx assembly aborted due to errors Add some requirements/versions to get things working.
1 parent 2ab198f commit 5436dce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/test/CodeGen/NVPTX/LoadStoreVectorizer.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
22
; RUN: llc < %s | FileCheck -check-prefix=ENABLED %s
33
; RUN: llc -disable-nvptx-load-store-vectorizer < %s | FileCheck -check-prefix=DISABLED %s
4-
; RUN: %if ptxas %{ llc < %s | %ptxas-verify %}
5-
; RUN: %if ptxas %{ llc -disable-nvptx-load-store-vectorizer < %s | %ptxas-verify %}
4+
; RUN: %if ptxas-sm_50 && ptxas-isa-8.3 %{ llc -mcpu=sm_50 < %s | %ptxas-verify -arch=sm_50 %}
5+
; RUN: %if ptxas-sm_50 && ptxas-isa-8.3 %{ llc -mcpu=sm_50 -disable-nvptx-load-store-vectorizer < %s | %ptxas-verify -arch=sm_50 %}
66

77
target triple = "nvptx64-nvidia-cuda"
88

llvm/test/CodeGen/NVPTX/param-vectorize-device.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc < %s -mtriple=nvptx64-unknown-unknown | FileCheck %s
2-
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64-unknown-unknown | %ptxas-verify %}
2+
; RUN: %if ptxas-sm_50 && ptxas-isa-8.3 %{ llc < %s -mtriple=nvptx64-unknown-unknown -mcpu=sm_50 | %ptxas-verify -arch=sm_50 %}
33
;
44
; Check that parameters of a __device__ function with private or internal
55
; linkage called from a __global__ (kernel) function get increased alignment,

0 commit comments

Comments
 (0)