Skip to content

Commit a1c85b2

Browse files
committed
Fix backward compatibility issue found by CI
1 parent 971672b commit a1c85b2

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
@@ -69,6 +69,12 @@ class KernelData {
6969
return MDeviceKernelInfoPtr->ParamDescGetter;
7070
}
7171

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

7480
bool hasSpecialCaptures() const {

sycl/source/handler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,9 +1099,9 @@ void handler::extractArgsAndReqsFromLambda(
10991099
void handler::extractArgsAndReqsFromLambda(
11001100
char *LambdaPtr, const std::vector<detail::kernel_param_desc_t> &ParamDescs,
11011101
bool IsESIMD) {
1102-
(void)IsESIMD;
11031102
const bool IsKernelCreatedFromSource = false;
11041103
size_t IndexShift = 0;
1104+
impl->MKernelData.setESIMD(IsESIMD);
11051105

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

0 commit comments

Comments
 (0)