Commit 97c0c99
authored
[SYCL] Fix use-after-move bug in building for multiple devices (#7237)
The cache key used while building kernel binaries will have the spec
constant data moved to it to avoid repeated copies of a potentially
large data structure. However, when building for multiple devices the
spec constant data is moved each time a the cache key is created, which
can corrupt the cache key. This commit fixes this by creating the cache
key once and mutating it for each insertion, preserving common parts of
they key and preventing use-after-move.
Signed-off-by: Larsen, Steffen <[email protected]>1 parent 968f9e7 commit 97c0c99
1 file changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1998 | 1998 | | |
1999 | 1999 | | |
2000 | 2000 | | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
2001 | 2004 | | |
2002 | 2005 | | |
2003 | | - | |
2004 | | - | |
2005 | | - | |
2006 | | - | |
| 2006 | + | |
2007 | 2007 | | |
2008 | 2008 | | |
2009 | 2009 | | |
| |||
2024 | 2024 | | |
2025 | 2025 | | |
2026 | 2026 | | |
2027 | | - | |
2028 | | - | |
2029 | | - | |
2030 | | - | |
2031 | | - | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
2032 | 2031 | | |
2033 | 2032 | | |
2034 | 2033 | | |
| |||
0 commit comments