Skip to content

Commit 71f9c64

Browse files
committed
fix bug causing coarse-grain SVM to be reported multiple times
1 parent ef9b407 commit 71f9c64

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

layers/99_svmplusplus/emulate.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ struct SLayerContext
276276
typeCapsPlatform.push_back(combinedCaps);
277277
}
278278

279+
combinedCaps = 0;
279280
for (auto device: devices) {
280281
cl_svm_capabilities_khr caps = getFineGrainSVMCaps(device);
281282
if (caps != 0) {
@@ -286,6 +287,7 @@ struct SLayerContext
286287
typeCapsPlatform.push_back(combinedCaps);
287288
}
288289

290+
combinedCaps = 0;
289291
for (auto device: devices) {
290292
cl_svm_capabilities_khr caps = getSystemSVMCaps(device);
291293
if (caps != 0) {

0 commit comments

Comments
 (0)