Skip to content

Commit

Permalink
fix bug causing fine-grain SVM to not be reported by device queries
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Jan 3, 2025
1 parent 71f9c64 commit 81912d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layers/99_svmplusplus/emulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,12 @@ struct SLayerContext
else if ((caps & CL_SVM_TYPE_MACRO_SINGLE_DEVICE_SHARED_KHR) == CL_SVM_TYPE_MACRO_SINGLE_DEVICE_SHARED_KHR) {
typeCapsDevice.push_back(getSingleDeviceSharedUSMCaps(device));
}
else if ((caps & CL_SVM_TYPE_MACRO_COARSE_GRAIN_BUFFER_KHR) == CL_SVM_TYPE_MACRO_COARSE_GRAIN_BUFFER_KHR) {
typeCapsDevice.push_back(getCoarseGrainSVMCaps(device));
}
else if ((caps & CL_SVM_TYPE_MACRO_FINE_GRAIN_BUFFER_KHR) == CL_SVM_TYPE_MACRO_FINE_GRAIN_BUFFER_KHR) {
typeCapsDevice.push_back(getFineGrainSVMCaps(device));
}
else if ((caps & CL_SVM_TYPE_MACRO_COARSE_GRAIN_BUFFER_KHR) == CL_SVM_TYPE_MACRO_COARSE_GRAIN_BUFFER_KHR) {
typeCapsDevice.push_back(getCoarseGrainSVMCaps(device));
}
else if ((caps & CL_SVM_TYPE_MACRO_SYSTEM_KHR) == CL_SVM_TYPE_MACRO_SYSTEM_KHR) {
typeCapsDevice.push_back(getSystemSVMCaps(device));
}
Expand Down

0 comments on commit 81912d0

Please sign in to comment.