Commit d54c28b
authored
[HIP] use offload wrapper for non-device-only non-rdc (#132869)
Currently HIP still uses offload bundler for non-rdc mode for the new
offload driver.
This patch switches to use offload wrapper for non-device-only non-rdc
mode when new offload driver is enabled.
This makes the rdc and non-rdc compilation more consistent and speeds up
compilation since the offload wrapper supports parallel compilation for
different GPU arch's.
It is implemented by adding a linker wrapper action for each assemble
action of input file. Linker wrapper action differentiates this special
type of work vs normal linker wrapper work by the fle type. This type of
work results in object instead of image. The linker wrapper adds "-r"
for it and only includes the object file as input, not the host
libraries.
For device-only non-RDC mode, the new driver keeps the original
behavior.1 parent 6e7c40b commit d54c28b
File tree
6 files changed
+142
-77
lines changed- clang
- lib
- CodeGen
- Driver
- ToolChains
- test/Driver
6 files changed
+142
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
1284 | | - | |
| 1284 | + | |
| 1285 | + | |
1285 | 1286 | | |
1286 | 1287 | | |
1287 | 1288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4405 | 4405 | | |
4406 | 4406 | | |
4407 | 4407 | | |
| 4408 | + | |
| 4409 | + | |
| 4410 | + | |
| 4411 | + | |
4408 | 4412 | | |
4409 | 4413 | | |
4410 | 4414 | | |
| |||
4538 | 4542 | | |
4539 | 4543 | | |
4540 | 4544 | | |
4541 | | - | |
| 4545 | + | |
4542 | 4546 | | |
4543 | 4547 | | |
4544 | 4548 | | |
| |||
4849 | 4853 | | |
4850 | 4854 | | |
4851 | 4855 | | |
4852 | | - | |
4853 | | - | |
4854 | | - | |
4855 | | - | |
| 4856 | + | |
| 4857 | + | |
| 4858 | + | |
| 4859 | + | |
| 4860 | + | |
| 4861 | + | |
| 4862 | + | |
| 4863 | + | |
| 4864 | + | |
| 4865 | + | |
| 4866 | + | |
| 4867 | + | |
| 4868 | + | |
| 4869 | + | |
| 4870 | + | |
| 4871 | + | |
| 4872 | + | |
| 4873 | + | |
| 4874 | + | |
| 4875 | + | |
| 4876 | + | |
| 4877 | + | |
4856 | 4878 | | |
4857 | 4879 | | |
4858 | 4880 | | |
| |||
4948 | 4970 | | |
4949 | 4971 | | |
4950 | 4972 | | |
4951 | | - | |
| 4973 | + | |
| 4974 | + | |
4952 | 4975 | | |
4953 | 4976 | | |
4954 | 4977 | | |
4955 | | - | |
4956 | | - | |
| 4978 | + | |
4957 | 4979 | | |
4958 | 4980 | | |
4959 | 4981 | | |
| |||
4977 | 4999 | | |
4978 | 5000 | | |
4979 | 5001 | | |
4980 | | - | |
| 5002 | + | |
| 5003 | + | |
4981 | 5004 | | |
4982 | | - | |
| 5005 | + | |
4983 | 5006 | | |
4984 | 5007 | | |
4985 | | - | |
4986 | 5008 | | |
4987 | 5009 | | |
4988 | 5010 | | |
| |||
5002 | 5024 | | |
5003 | 5025 | | |
5004 | 5026 | | |
5005 | | - | |
5006 | | - | |
5007 | | - | |
5008 | | - | |
5009 | | - | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
5010 | 5030 | | |
5011 | 5031 | | |
5012 | 5032 | | |
| |||
5159 | 5179 | | |
5160 | 5180 | | |
5161 | 5181 | | |
5162 | | - | |
5163 | | - | |
| 5182 | + | |
| 5183 | + | |
| 5184 | + | |
| 5185 | + | |
| 5186 | + | |
5164 | 5187 | | |
5165 | 5188 | | |
5166 | 5189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7832 | 7832 | | |
7833 | 7833 | | |
7834 | 7834 | | |
7835 | | - | |
| 7835 | + | |
7836 | 7836 | | |
7837 | 7837 | | |
7838 | 7838 | | |
| |||
9344 | 9344 | | |
9345 | 9345 | | |
9346 | 9346 | | |
9347 | | - | |
9348 | | - | |
9349 | 9347 | | |
9350 | | - | |
| 9348 | + | |
| 9349 | + | |
| 9350 | + | |
| 9351 | + | |
| 9352 | + | |
| 9353 | + | |
| 9354 | + | |
| 9355 | + | |
| 9356 | + | |
| 9357 | + | |
| 9358 | + | |
| 9359 | + | |
| 9360 | + | |
9351 | 9361 | | |
| 9362 | + | |
9352 | 9363 | | |
9353 | 9364 | | |
9354 | 9365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | 96 | | |
98 | | - | |
99 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | | - | |
24 | | - | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
44 | 55 | | |
45 | 56 | | |
46 | 57 | | |
| |||
0 commit comments