From 2b76bfee97fb775128126506f695535e38ea41ef Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sun, 29 Jul 2018 22:16:27 +0200 Subject: Fixed a wrong event issue causing error -57 --- src/clpp11.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/clpp11.hpp b/src/clpp11.hpp index 2d411a41..70da2329 100644 --- a/src/clpp11.hpp +++ b/src/clpp11.hpp @@ -852,8 +852,7 @@ class Kernel { const std::vector nullRange = {1}; CheckError(clEnqueueNDRangeKernel(queue(), *null_kernel_, static_cast(nullRange.size()), nullptr, nullRange.data(), nullptr, - static_cast(waitForEventsPlain.size()), - nullptr, event)); + 0, nullptr, nullptr)); #endif } -- cgit v1.2.3