Skip to content

Commit 5fb30d7

Browse files
committed
Fix backward compatibility test
1 parent 22e5d77 commit 5fb30d7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sycl/source/handler.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,12 @@ void handler::extractArgsAndReqsFromLambda(
10941094
bool IsESIMD) {
10951095
const bool IsKernelCreatedFromSource = false;
10961096
size_t IndexShift = 0;
1097-
impl->MKernelData.setESIMD(IsESIMD);
1097+
1098+
if (impl->MKernelData.getDeviceKernelInfoPtr() == nullptr) {
1099+
impl->MKernelData.setDeviceKernelInfoPtr(
1100+
&detail::ProgramManager::getInstance().getOrCreateDeviceKernelInfo(
1101+
toKernelNameStrT(getKernelName())));
1102+
}
10981103

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

0 commit comments

Comments
 (0)