Skip to content

Commit

Permalink
fix bug causing coarse-grain SVM to be reported multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Jan 3, 2025
1 parent ef9b407 commit 71f9c64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layers/99_svmplusplus/emulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ struct SLayerContext
typeCapsPlatform.push_back(combinedCaps);
}

combinedCaps = 0;
for (auto device: devices) {
cl_svm_capabilities_khr caps = getFineGrainSVMCaps(device);
if (caps != 0) {
Expand All @@ -286,6 +287,7 @@ struct SLayerContext
typeCapsPlatform.push_back(combinedCaps);
}

combinedCaps = 0;
for (auto device: devices) {
cl_svm_capabilities_khr caps = getSystemSVMCaps(device);
if (caps != 0) {
Expand Down

0 comments on commit 71f9c64

Please sign in to comment.