Commit 6dc419f
[SYCL][RTC] Cache frontend invocation (#16823)
Adds `sycl_jit`-RTC-specific persistent caching to the runtime. The
basic idea is to cache only the LLVM module resulting from the device
compilation in bitcode format. Device linking and post-link would be run
always (even for a cache hit), as invoking the frontend is the most
expensive step in the pipeline right now.
The cache key is the concatenation of:
- the Base64*-encoding of a BLAKE3 hash of the preprocessed source
string (i.e. containing all headers included as virtual files per the
`kernel_compiler` extension as well as from the local file system), and
- the Base64-encoding of a BLAKE3 hash of the user-supplied build
options.
*) Replacing `/` by `-` to make the string filesystem-friendly.
---------
Signed-off-by: Julian Oppermann <[email protected]>
Co-authored-by: Lukas Sommer <[email protected]>1 parent 47630fe commit 6dc419f
File tree
16 files changed
+625
-70
lines changed- sycl-jit
- common/include
- jit-compiler
- include
- lib
- rtc
- sycl
- source/detail
- kernel_compiler
- test-e2e/KernelCompiler
- test/e2e_test_requirements
16 files changed
+625
-70
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
414 | 417 | | |
415 | 418 | | |
416 | 419 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
59 | 89 | | |
60 | 90 | | |
61 | 91 | | |
62 | 92 | | |
63 | 93 | | |
64 | | - | |
65 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
66 | 98 | | |
67 | 99 | | |
68 | 100 | | |
| |||
73 | 105 | | |
74 | 106 | | |
75 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
76 | 113 | | |
77 | 114 | | |
78 | 115 | | |
| 116 | + | |
79 | 117 | | |
80 | 118 | | |
81 | 119 | | |
| |||
100 | 138 | | |
101 | 139 | | |
102 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
103 | 145 | | |
104 | 146 | | |
105 | | - | |
| 147 | + | |
| 148 | + | |
106 | 149 | | |
107 | 150 | | |
108 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
41 | | - | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
243 | 280 | | |
244 | 281 | | |
245 | | - | |
| 282 | + | |
| 283 | + | |
246 | 284 | | |
| 285 | + | |
247 | 286 | | |
248 | 287 | | |
249 | 288 | | |
| |||
272 | 311 | | |
273 | 312 | | |
274 | 313 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
280 | 329 | | |
281 | 330 | | |
282 | | - | |
283 | | - | |
284 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
285 | 351 | | |
286 | 352 | | |
287 | 353 | | |
| |||
314 | 380 | | |
315 | 381 | | |
316 | 382 | | |
317 | | - | |
| 383 | + | |
318 | 384 | | |
319 | 385 | | |
320 | 386 | | |
| |||
0 commit comments