Skip to content

Commit b479d9b

Browse files
committed
Fix backward compatibility issue found by CI
1 parent e5e911b commit b479d9b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

sycl/source/detail/kernel_data.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ class KernelData {
6868
return MKernelParamDescGetter;
6969
}
7070

71+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
72+
// TODO: remove this method in the next ABI-breaking window
73+
// it is used by handler code that will be removed in the next
74+
// ABI-breaking window
75+
void setESIMD(bool IsESIMD) { MKernelIsESIMD = IsESIMD; }
76+
#endif
7177
bool isESIMD() const { return MKernelIsESIMD; }
7278

7379
bool hasSpecialCaptures() const { return MKernelHasSpecialCaptures; }

sycl/source/handler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,9 +1087,9 @@ void handler::extractArgsAndReqsFromLambda(
10871087
void handler::extractArgsAndReqsFromLambda(
10881088
char *LambdaPtr, const std::vector<detail::kernel_param_desc_t> &ParamDescs,
10891089
bool IsESIMD) {
1090-
(void)IsESIMD;
10911090
const bool IsKernelCreatedFromSource = false;
10921091
size_t IndexShift = 0;
1092+
impl->MKernelData.setESIMD(IsESIMD);
10931093

10941094
for (size_t I = 0; I < ParamDescs.size(); ++I) {
10951095
void *Ptr = LambdaPtr + ParamDescs[I].offset;

0 commit comments

Comments
 (0)