Skip to content

Commit

Permalink
fix the CL_SVM_INFO_TYPE_INDEX_KHR query
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Feb 4, 2025
1 parent 06ca212 commit 6d43cc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layers/99_svmplusplus/emulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,8 @@ cl_int CL_API_CALL clGetSVMPointerInfoKHR_EMU(

cl_uint index = CL_UINT_MAX;
for (size_t ci = 0; ci < platformSVMCaps.size(); ci++) {
if (platformSVMCaps[ci] == search) {
if ((platformSVMCaps[ci] & search) == search) {
index = static_cast<cl_uint>(ci);
break;
}
}

Expand Down

0 comments on commit 6d43cc1

Please sign in to comment.