File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 32
32
//
33
33
// RUN: %clang -target nvptx64-nvidia-cuda -march=sm_61 -### %s 2>&1 \
34
34
// RUN: | FileCheck -check-prefix=ARGS %s
35
- // RUN: %clang -target nvptx64-nvidia-cuda -march=generic -### %s 2>&1 \
36
- // RUN: | FileCheck -check-prefix=GENERIC %s
37
35
38
36
// ARGS: -cc1" "-triple" "nvptx64-nvidia-cuda" "-S" {{.*}} "-target-cpu" "sm_61" "-target-feature" "+ptx{{[0-9]+}}" {{.*}} "-o" "[[PTX:.+]].s"
39
37
// ARGS-NEXT: ptxas{{.*}}"-m64" "-O0" "--gpu-name" "sm_61" "--output-file" "[[CUBIN:.+]].cubin" "[[PTX]].s" "-c"
40
38
// ARGS-NEXT: nvlink{{.*}}"-o" "a.out" "-arch" "sm_61" {{.*}} "[[CUBIN]].cubin"
41
- // GENERIC: -cc1" "-triple" "nvptx64-nvidia-cuda" "-S" {{.*}} "-target-cpu" "sm_52" "-target-feature" "+ptx{{[0-9]+}}" {{.*}} "-o" "[[PTX:.+]].s"
42
- // GENERIC-NEXT: ptxas{{.*}}"-m64" "-O0" "--gpu-name" "sm_52" "--output-file" "[[CUBIN:.+]].cubin" "[[PTX]].s" "-c"
43
- // GENERIC-NEXT: nvlink{{.*}}"-o" "a.out" "-arch" "sm_52" {{.*}} "[[CUBIN]].cubin"
44
39
45
40
//
46
41
// Test the generated arguments to the CUDA binary utils when targeting NVPTX.
90
85
// MISSING: error: Must pass in an explicit nvptx64 gpu architecture to 'nvlink'
91
86
92
87
// RUN: %clang -target nvptx64-nvidia-cuda -flto -c %s -### 2>&1 \
93
- // RUN: | FileCheck -check-prefix=COMPILE %s
88
+ // RUN: | FileCheck -check-prefix=GENERIC %s
89
+ // RUN: %clang -target nvptx64-nvidia-cuda -march=sm_52 -march=generic -flto -c %s -### 2>&1 \
90
+ // RUN: | FileCheck -check-prefix=GENERIC %s
94
91
95
- // COMPILE -NOT: -cc1" "-triple" "nvptx64-nvidia-cuda" {{.*}} "-target-cpu"
92
+ // GENERIC -NOT: -cc1" "-triple" "nvptx64-nvidia-cuda" {{.*}} "-target-cpu"
You can’t perform that action at this time.
0 commit comments