Skip to content

Commit

Permalink
Fixes #37 but readding removed cmdQueue initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
guihomework authored and rhaschke committed Jul 2, 2019
1 parent 318fb92 commit cfbfa17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ICLUtils/src/ICLUtils/CLBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion ICLUtils/src/ICLUtils/CLKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit cfbfa17

Please sign in to comment.