Skip to content

Commit 9ae38d9

Browse files
committed
[SYCL-BIN] Update ImageKind enum value after 65d730b (#32377)
65d730b added IMG_SPIRV to be value 6, so we need to update IMG_SYCLBIN to 7 instead.
1 parent f32d723 commit 9ae38d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/syclbin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ std::pair<const char *, size_t> getImageInOffloadBinary(const char *Data,
115115
reinterpret_cast<const OffloadBinaryEntryType *>(Data +
116116
Header->EntryOffset);
117117

118-
if (Entry->ImageKind != /*IMG_SYCLBIN*/ 6)
118+
if (Entry->ImageKind != /*IMG_SYCLBIN*/ 7)
119119
throw sycl::exception(make_error_code(errc::invalid),
120120
"Unexpected image type.");
121121

0 commit comments

Comments
 (0)