From 7549831bcd7bfbb7e155c08a07f8588033f82dcd Mon Sep 17 00:00:00 2001 From: Guillaume Walck Date: Tue, 2 Jul 2019 17:44:40 +0200 Subject: [PATCH] Fixes #37 but readding removed cmdQueue initialization --- ICLUtils/src/ICLUtils/CLBuffer.cpp | 2 +- ICLUtils/src/ICLUtils/CLKernel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ICLUtils/src/ICLUtils/CLBuffer.cpp b/ICLUtils/src/ICLUtils/CLBuffer.cpp index dec659568..9446e0a6a 100644 --- a/ICLUtils/src/ICLUtils/CLBuffer.cpp +++ b/ICLUtils/src/ICLUtils/CLBuffer.cpp @@ -72,7 +72,7 @@ namespace icl { } Impl(cl::Context &context, cl::CommandQueue &cmdQueue, - const string &accessMode, size_t size,const void *src = 0) + const string &accessMode, size_t size,const void *src = 0):cmdQueue(cmdQueue) { cl_mem_flags memFlags = stringToMemFlags(accessMode); if (src) { diff --git a/ICLUtils/src/ICLUtils/CLKernel.cpp b/ICLUtils/src/ICLUtils/CLKernel.cpp index 4028dbd43..09a77dcef 100644 --- a/ICLUtils/src/ICLUtils/CLKernel.cpp +++ b/ICLUtils/src/ICLUtils/CLKernel.cpp @@ -45,7 +45,7 @@ namespace icl { Impl(Impl& other):cmdQueue(other.cmdQueue){ kernel = other.kernel; } - Impl(cl::Program& program, cl::CommandQueue& cmdQueue, const string &id) + Impl(cl::Program& program, cl::CommandQueue& cmdQueue, const string &id):cmdQueue(cmdQueue) { try { kernel = cl::Kernel(program, id.c_str());