Commit 1c77f9a
authored
[SYCL] Select a more consistent image ID for caching (#7154)
The program cache was recently changed to use the device image pointer
as part of its cache key. However, the `RTDeviceBinaryImage` class has
move constructor and assignment operator defined to allow them to
transition between collections, so the pointers can change, making them
an unreliable cache key. This commit changes the selected identifier to
be the pointer to the underlying binary image instead.
Signed-off-by: Larsen, Steffen <[email protected]>1 parent 5034705 commit 1c77f9a
File tree
2 files changed
+8
-2
lines changed- sycl/source/detail
- program_manager
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
| 645 | + | |
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| |||
1996 | 1996 | | |
1997 | 1997 | | |
1998 | 1998 | | |
1999 | | - | |
| 1999 | + | |
2000 | 2000 | | |
2001 | 2001 | | |
2002 | 2002 | | |
| |||
0 commit comments