File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments