|
4 | 4 |
|
5 | 5 | /// Check action graph. |
6 | 6 | // RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \ |
7 | | -// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ |
| 7 | +// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA_111/usr/local/cuda \ |
8 | 8 | // RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc %s 2>&1 \ |
9 | 9 | // RUN: | FileCheck -check-prefix=CHK-ACTIONS %s |
10 | 10 | // |
11 | 11 | // RUN: %clang_cl -### -fsycl \ |
12 | | -// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ |
| 12 | +// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA_111/usr/local/cuda \ |
13 | 13 | // RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc %s 2>&1 \ |
14 | 14 | // RUN: | FileCheck -check-prefix=CHK-ACTIONS-WIN %s |
15 | 15 |
|
16 | | -// CHK-ACTIONS: "-cc1" "-triple" "nvptx64-nvidia-cuda" "-aux-triple" "x86_64-unknown-linux-gnu"{{.*}} "-fsycl-is-device"{{.*}} "-Wno-sycl-strict"{{.*}} "-sycl-std=2020" {{.*}} "-emit-llvm-bc" {{.*}} "-internal-isystem" "{{.*}}bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"{{.*}} "-mlink-builtin-bitcode" "{{.*}}libspirv.bc"{{.*}} "-mlink-builtin-bitcode" "{{.*}}libdevice{{.*}}.10.bc"{{.*}} "-target-sdk-version=[[CUDA_VERSION:[0-9.]+]]"{{.*}} "-target-cpu" "sm_50"{{.*}} "-target-feature" "+ptx42"{{.*}} "-std=c++11"{{.*}} |
| 16 | +// CHK-ACTIONS: "-cc1" "-triple" "nvptx64-nvidia-cuda"{{.*}} "-fsycl-is-device"{{.*}} "-Wno-sycl-strict"{{.*}} "-sycl-std=2020" {{.*}} "-emit-llvm-bc" {{.*}} "-internal-isystem" "{{.*}}bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"{{.*}} "-mlink-builtin-bitcode" "{{.*}}libspirv.bc"{{.*}} "-mlink-builtin-bitcode" "{{.*}}libdevice{{.*}}.10.bc"{{.*}} "-target-sdk-version=[[CUDA_VERSION:[0-9.]+]]"{{.*}} "-target-cpu" "sm_80"{{.*}} "-target-feature" "+ptx{{[0-9]+}}"{{.*}} "-std=c++11"{{.*}} |
17 | 17 | // CHK-ACTIONS: sycl-post-link{{.*}} "-split=auto" |
18 | 18 | // CHK-ACTIONS: file-table-tform" "-extract=Code" "-drop_titles" |
19 | 19 | // CHK-ACTIONS: llvm-foreach" {{.*}} "--" "{{.*}}clang-{{[0-9]+}}" |
|
23 | 23 | // CHK-ACTIONS-NOT: "-mllvm -sycl-opt" |
24 | 24 | // CHK-ACTIONS: clang-offload-wrapper"{{.*}} "-host=x86_64-unknown-linux-gnu" "-target=nvptx64" "-kind=sycl"{{.*}} |
25 | 25 |
|
26 | | -// CHK-ACTIONS-WIN: "-cc1" "-triple" "nvptx64-nvidia-cuda" "-aux-triple" "x86_64-pc-windows-msvc"{{.*}} "-fsycl-is-device"{{.*}} "-Wno-sycl-strict"{{.*}} "-sycl-std=2020" {{.*}} "-emit-llvm-bc" {{.*}} "-internal-isystem" "{{.*}}bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"{{.*}} "-mlink-builtin-bitcode" "{{.*}}libspirv.bc"{{.*}} "-mlink-builtin-bitcode" "{{.*}}libdevice{{.*}}.10.bc"{{.*}} "-target-sdk-version=[[CUDA_VERSION:[0-9.]+]]"{{.*}} "-target-cpu" "sm_50"{{.*}} "-target-feature" "+ptx42"{{.*}} |
| 26 | +// CHK-ACTIONS-WIN: "-cc1" "-triple" "nvptx64-nvidia-cuda"{{.*}} "-fsycl-is-device"{{.*}} "-Wno-sycl-strict"{{.*}} "-sycl-std=2020" {{.*}} "-emit-llvm-bc" {{.*}} "-internal-isystem" "{{.*}}bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"{{.*}} "-mlink-builtin-bitcode" "{{.*}}libspirv.bc"{{.*}} "-mlink-builtin-bitcode" "{{.*}}libdevice{{.*}}.10.bc"{{.*}} "-target-sdk-version=[[CUDA_VERSION:[0-9.]+]]"{{.*}} "-target-cpu" "sm_80"{{.*}} "-target-feature" "+ptx{{[0-9]+}}"{{.*}} |
27 | 27 | // CHK-ACTIONS-WIN: sycl-post-link{{.*}} "-split=auto" |
28 | 28 | // CHK-ACTIONS-WIN: file-table-tform" "-extract=Code" "-drop_titles" |
29 | 29 | // CHK-ACTIONS-WIN: llvm-foreach" {{.*}} "--" "{{.*}}clang-{{[0-9]+}}" |
|
46 | 46 | // |
47 | 47 | // CHK-PHASES-NO-CC: 0: input, "[[INPUT:.+\.cpp]]", c++, (host-sycl) |
48 | 48 | // CHK-PHASES-NO-CC: 1: preprocessor, {0}, c++-cpp-output, (host-sycl) |
49 | | -// CHK-PHASES-NO-CC: 2: input, "[[INPUT]]", c++, (device-sycl, sm_50) |
50 | | -// CHK-PHASES-NO-CC: 3: preprocessor, {2}, c++-cpp-output, (device-sycl, sm_50) |
51 | | -// CHK-PHASES-NO-CC: 4: compiler, {3}, ir, (device-sycl, sm_50) |
52 | | -// CHK-PHASES-NO-CC: 5: offload, "host-sycl (x86_64-unknown-linux-gnu)" {1}, "device-sycl (nvptx64-nvidia-cuda:sm_50)" {4}, c++-cpp-output |
| 49 | +// CHK-PHASES-NO-CC: 2: input, "[[INPUT]]", c++, (device-sycl, sm_80) |
| 50 | +// CHK-PHASES-NO-CC: 3: preprocessor, {2}, c++-cpp-output, (device-sycl, sm_80) |
| 51 | +// CHK-PHASES-NO-CC: 4: compiler, {3}, ir, (device-sycl, sm_80) |
| 52 | +// CHK-PHASES-NO-CC: 5: offload, "host-sycl (x86_64-unknown-linux-gnu)" {1}, "device-sycl (nvptx64-nvidia-cuda:sm_80)" {4}, c++-cpp-output |
53 | 53 | // CHK-PHASES-NO-CC: 6: compiler, {5}, ir, (host-sycl) |
54 | 54 | // CHK-PHASES-NO-CC: 7: backend, {6}, assembler, (host-sycl) |
55 | 55 | // CHK-PHASES-NO-CC: 8: assembler, {7}, object, (host-sycl) |
56 | | -// CHK-PHASES-NO-CC: 9: linker, {4}, ir, (device-sycl, sm_50) |
57 | | -// CHK-PHASES-NO-CC: 10: input, "{{.*}}libspirv-nvptx64{{.*}}", ir, (device-sycl, sm_50) |
58 | | -// CHK-PHASES-NO-CC: 11: linker, {9, 10}, ir, (device-sycl, sm_50) |
59 | | -// CHK-PHASES-NO-CC: 12: sycl-post-link, {11}, ir, (device-sycl, sm_50) |
60 | | -// CHK-PHASES-NO-CC: 13: file-table-tform, {12}, ir, (device-sycl, sm_50) |
61 | | -// CHK-PHASES-NO-CC: 14: backend, {13}, assembler, (device-sycl, sm_50) |
62 | | -// CHK-PHASES-NO-CC: 15: assembler, {14}, object, (device-sycl, sm_50) |
63 | | -// CHK-PHASES-NO-CC: 16: linker, {14, 15}, cuda-fatbin, (device-sycl, sm_50) |
64 | | -// CHK-PHASES-NO-CC: 17: foreach, {13, 16}, cuda-fatbin, (device-sycl, sm_50) |
65 | | -// CHK-PHASES-NO-CC: 18: file-table-tform, {12, 17}, tempfiletable, (device-sycl, sm_50) |
66 | | -// CHK-PHASES-NO-CC: 19: clang-offload-wrapper, {18}, object, (device-sycl, sm_50) |
67 | | -// CHK-PHASES-NO-CC: 20: offload, "device-sycl (nvptx64-nvidia-cuda:sm_50)" {19}, object |
| 56 | +// CHK-PHASES-NO-CC: 9: linker, {4}, ir, (device-sycl, sm_80) |
| 57 | +// CHK-PHASES-NO-CC: 10: input, "{{.*}}libspirv-nvptx64{{.*}}", ir, (device-sycl, sm_80) |
| 58 | +// CHK-PHASES-NO-CC: 11: linker, {9, 10}, ir, (device-sycl, sm_80) |
| 59 | +// CHK-PHASES-NO-CC: 12: sycl-post-link, {11}, ir, (device-sycl, sm_80) |
| 60 | +// CHK-PHASES-NO-CC: 13: file-table-tform, {12}, ir, (device-sycl, sm_80) |
| 61 | +// CHK-PHASES-NO-CC: 14: backend, {13}, assembler, (device-sycl, sm_80) |
| 62 | +// CHK-PHASES-NO-CC: 15: assembler, {14}, object, (device-sycl, sm_80) |
| 63 | +// CHK-PHASES-NO-CC: 16: linker, {14, 15}, cuda-fatbin, (device-sycl, sm_80) |
| 64 | +// CHK-PHASES-NO-CC: 17: foreach, {13, 16}, cuda-fatbin, (device-sycl, sm_80) |
| 65 | +// CHK-PHASES-NO-CC: 18: file-table-tform, {12, 17}, tempfiletable, (device-sycl, sm_80) |
| 66 | +// CHK-PHASES-NO-CC: 19: clang-offload-wrapper, {18}, object, (device-sycl, sm_80) |
| 67 | +// CHK-PHASES-NO-CC: 20: offload, "device-sycl (nvptx64-nvidia-cuda:sm_80)" {19}, object |
68 | 68 | // CHK-PHASES-NO-CC: 21: linker, {8, 20}, image, (host-sycl) |
69 | 69 | // |
70 | 70 | /// Check phases specifying a compute capability. |
|
136 | 136 |
|
137 | 137 | // Check that flags linked to fsycl-cuda-compatibility are set correctly |
138 | 138 | // RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl -fsycl-cuda-compatibility \ |
139 | | -// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ |
| 139 | +// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA_111/usr/local/cuda \ |
140 | 140 | // RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc %s 2>&1 \ |
141 | 141 | // RUN: | FileCheck -check-prefix=CHK-ACTIONS-CUDA-COMPAT %s |
142 | | -// CHK-ACTIONS-CUDA-COMPAT: "-cc1" "-triple" "nvptx64-nvidia-cuda"{{.*}} "-fsycl-is-device"{{.*}} "-fsycl-cuda-compatibility"{{.*}} "-fdeclspec"{{.*}} "-fcuda-allow-variadic-functions"{{.*}} "-target-sdk-version=7.0"{{.*}} "-include" "__clang_cuda_runtime_wrapper.h" |
143 | | -// CHK-ACTIONS-CUDA-COMPAT: "-cc1" "-triple" "x86_64-unknown-linux-gnu"{{.*}} "-fsycl-is-host"{{.*}} "-fsycl-cuda-compatibility"{{.*}} "-fdeclspec"{{.*}} "-fcuda-allow-variadic-functions"{{.*}} "-aux-triple" "nvptx64-nvidia-cuda"{{.*}} "-target-sdk-version=7.0"{{.*}} "-include" "__clang_cuda_runtime_wrapper.h" |
| 142 | +// CHK-ACTIONS-CUDA-COMPAT: "-cc1" "-triple" "nvptx64-nvidia-cuda"{{.*}} "-fsycl-is-device"{{.*}} "-fsycl-cuda-compatibility"{{.*}} "-fdeclspec"{{.*}} "-fcuda-allow-variadic-functions"{{.*}} "-target-sdk-version=11.1"{{.*}} "-include" "__clang_cuda_runtime_wrapper.h" |
| 143 | +// CHK-ACTIONS-CUDA-COMPAT: "-cc1" "-triple" "x86_64-unknown-linux-gnu"{{.*}} "-fsycl-is-host"{{.*}} "-fsycl-cuda-compatibility"{{.*}} "-fdeclspec"{{.*}} "-fcuda-allow-variadic-functions"{{.*}} "-aux-triple" "nvptx64-nvidia-cuda"{{.*}} "-target-sdk-version=11.1"{{.*}} "-include" "__clang_cuda_runtime_wrapper.h" |
0 commit comments