We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06ca212 commit 6d43cc1Copy full SHA for 6d43cc1
1 file changed
layers/99_svmplusplus/emulate.cpp
@@ -677,9 +677,8 @@ cl_int CL_API_CALL clGetSVMPointerInfoKHR_EMU(
677
678
cl_uint index = CL_UINT_MAX;
679
for (size_t ci = 0; ci < platformSVMCaps.size(); ci++) {
680
- if (platformSVMCaps[ci] == search) {
+ if ((platformSVMCaps[ci] & search) == search) {
681
index = static_cast<cl_uint>(ci);
682
- break;
683
}
684
685
0 commit comments