Skip to content

Commit 34dcf83

Browse files
[SYCL] Add support for ZEBIN format in persistent cache (#6311)
Following the changes in #6256 this commit allows executable device binaries with ZEBIN format to be cached persistently. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 9b4ed34 commit 34dcf83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/pi.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,8 @@ RT::PiDeviceBinaryType getBinaryImageFormat(const unsigned char *ImgData,
725725
struct {
726726
RT::PiDeviceBinaryType Fmt;
727727
const uint16_t Magic;
728-
} ELFFmts[] = {{PI_DEVICE_BINARY_TYPE_NATIVE, 0xFF04}}; // OpenCL executable
728+
} ELFFmts[] = {{PI_DEVICE_BINARY_TYPE_NATIVE, 0xFF04}, // OpenCL executable
729+
{PI_DEVICE_BINARY_TYPE_NATIVE, 0xFF12}}; // ZEBIN executable
729730

730731
// ELF files need to be parsed separately. The header type ends after 18
731732
// bytes.

0 commit comments

Comments
 (0)