Commit 2f4de56
authored
[SYCL] Make sure that bound arch is set when using preprocessor (#4899)
With this patch the bound arch is correctly propagated through the phases:
```
+- 0: input, "./../tickets/dashE/woof.cpp", c++, (device-sycl, sm_50)
+- 1: preprocessor, {0}, c++-cpp-output, (device-sycl, sm_50)
+- 2: offload, "device-sycl (nvptx64-nvidia-cuda:sm_50)" {1}, c++-cpp-output
| +- 3: input, "./../tickets/dashE/woof.cpp", c++, (host-sycl)
| |- 4: compiler, {1}, none, (device-sycl, sm_50)
| +- 5: offload, "host-sycl (x86_64-unknown-linux-gnu)" {3}, "device-sycl (nvptx64-nvidia-cuda:sm_50)" {4}, c++
| +- 6: append-footer, {5}, c++, (host-sycl)
|- 7: preprocessor, {6}, c++-cpp-output, (host-sycl)
8: clang-offload-bundler, {2, 7}, c++-cpp-output, (host-sycl)
```
Previously the `compiler` phase (`4`) was lacking the bound arch, which is the root cause of #4758:
```
|- 4: compiler, {1}, none, (device-sycl)
```
Resolves: #4758
Previous discussion in: #48051 parent e877e3b commit 2f4de56
File tree
2 files changed
+12
-2
lines changed- clang
- lib/Driver
- test/Driver
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4113 | 4113 | | |
4114 | 4114 | | |
4115 | 4115 | | |
4116 | | - | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
| 4119 | + | |
4117 | 4120 | | |
4118 | 4121 | | |
4119 | 4122 | | |
| |||
4122 | 4125 | | |
4123 | 4126 | | |
4124 | 4127 | | |
4125 | | - | |
| 4128 | + | |
4126 | 4129 | | |
4127 | 4130 | | |
4128 | 4131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
0 commit comments