Skip to content

Commit 55a7d9a

Browse files
committed
remove CL_SVM_FREE_BLOCKING_KHR to align with the latest specification
1 parent fc894ac commit 55a7d9a

4 files changed

Lines changed: 4 additions & 10 deletions

File tree

layers/99_svmplusplus/emulate.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -645,16 +645,10 @@ cl_int CL_API_CALL clSVMFreeWithPropertiesKHR_EMU(
645645
{
646646
cl_int errorCode = CL_SUCCESS;
647647
if (isUSMPtr(context, ptr)) {
648-
if (flags & CL_SVM_FREE_BLOCKING_KHR) {
649-
errorCode = clMemBlockingFreeINTEL(
650-
context,
651-
ptr);
652-
}
653-
errorCode = clMemFreeINTEL(
648+
errorCode = clMemBlockingFreeINTEL(
654649
context,
655650
ptr);
656651
} else {
657-
assert(!(flags & CL_SVM_FREE_BLOCKING_KHR) && "blocking SVM free is currently unsupported");
658652
g_pNextDispatch->clSVMFree(
659653
context,
660654
ptr);

samples/usvm/100_udmemhelloworld/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ int main(
179179
clSVMFreeWithPropertiesKHR(
180180
context(),
181181
nullptr,
182-
CL_SVM_FREE_BLOCKING_KHR,
182+
0,
183183
d_dst );
184184

185185
return 0;

samples/usvm/200_uhmemhelloworld/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ int main(
152152
clSVMFreeWithPropertiesKHR(
153153
context(),
154154
nullptr,
155-
CL_SVM_FREE_BLOCKING_KHR,
155+
0,
156156
h_dst );
157157

158158
return 0;

samples/usvm/300_usmemhelloworld/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ int main(
157157
clSVMFreeWithPropertiesKHR(
158158
context(),
159159
nullptr,
160-
CL_SVM_FREE_BLOCKING_KHR,
160+
0,
161161
s_dst );
162162

163163
return 0;

0 commit comments

Comments
 (0)