From 0b9329a9d679bfe118ca7f4ee321a2a0a315d930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Fri, 16 Aug 2019 15:51:25 +0100 Subject: [PATCH] Add missing event release calls in SVM tests (#437) Signed-off-by: Georgios Pinitas --- test_conformance/SVM/test_fine_grain_memory_consistency.cpp | 1 + test_conformance/SVM/test_fine_grain_sync_buffers.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/test_conformance/SVM/test_fine_grain_memory_consistency.cpp b/test_conformance/SVM/test_fine_grain_memory_consistency.cpp index 5b66e0bb..20ebca55 100644 --- a/test_conformance/SVM/test_fine_grain_memory_consistency.cpp +++ b/test_conformance/SVM/test_fine_grain_memory_consistency.cpp @@ -113,6 +113,7 @@ int launch_kernels_and_verify(clContextWrapper &context, clCommandQueueWrapper* } } + clReleaseEvent(done); clSVMFree(context, pInputImage); clSVMFree(context, pNodes); clSVMFree(context, pNumNodes); diff --git a/test_conformance/SVM/test_fine_grain_sync_buffers.cpp b/test_conformance/SVM/test_fine_grain_sync_buffers.cpp index af0c0119..4cc34952 100644 --- a/test_conformance/SVM/test_fine_grain_sync_buffers.cpp +++ b/test_conformance/SVM/test_fine_grain_sync_buffers.cpp @@ -96,6 +96,7 @@ int test_svm_fine_grain_sync_buffers(cl_device_id deviceID, cl_context c, cl_com } } while (status != CL_COMPLETE || AtomicLoadExplicit(&pTargetLocations[i], memory_order_relaxed) != -1); + clReleaseEvent(done); clSVMFree(context, pInputImage); clSVMFree(context, pNumTargetsFound); clSVMFree(context, pTargetLocations);