Added args and buffer handling, but now clEnqueueNDRangeKernel is failing

with the error invalid command queue. Haven't seen that one before, and
cursory google suggests it's a problem with MBP's. Fun! I'll keep taking
a look, and I'll try it on my windows machine here soon
This commit is contained in:
2016-08-29 18:51:46 -07:00
parent 0c70c24a52
commit c3902c2f6e
4 changed files with 40 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ public:
int create_shared_context();
int create_command_queue();
int compile_kernel(std::string kernel_source, bool is_path, std::string kernel_name);
int set_kernel_arg(cl_kernel kernel, int index, int size, void* buffer, std::string kernel_name);
int set_kernel_arg(std::string kernel_name, int index, std::string buffer_name);
int store_buffer(cl_mem, std::string buffer_name);
int run_kernel(std::string kernel_name);
@@ -45,6 +45,7 @@ public:
cl_device_id getDeviceID();
cl_platform_id getPlatformID();
cl_context getContext();
cl_kernel getKernel(std::string kernel_name);
private: