Function clCreateBuffer cannot intial buffer on kernel.

Function clCreateBuffer cannot intial buffer on kernel.

Hello all,
    I not sure for this problem cause pass parameter to arguement in clCreateBuffer. After parameter send to clCreateBuffer function. My project show segmentation fault on its. Example function which show error on my programs.

            cl_mem buffer_input = clCreateBuffer(context,
                    CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR,
                    sizeof(char)  * sizeof(node.data) * num_devices,
                    (void*)node.data,
                    &err); 

Debug show full stack of errorious function.  See below in context "No symbol table info available" .( You can see full stack call function at link here.)

No symbol table info available.
#5  0x00007ffff4e7d033 in Intel::OpenCL::Framework::Context::CreateBuffer(unsigned long, unsigned long, void*, Intel::OpenCL::Framework::MemoryObject**) () from /usr/lib64/OpenCL/vendors/intel/libintelocl.so

Member function below call CreatBuffer are 5 arguments,but above function call are 4 arguements.

No symbol table info available.
#6  0x00007ffff4e70192 in Intel::OpenCL::Framework::ContextModule::CreateBuffer(_cl_context*, unsigned long, unsigned long, void*, int*) () from /usr/lib64/OpenCL/vendors/intel/libintelocl.so
No symbol table info available.

What's mean error after try to create buffer of Kernel?

Thank in advance,
Chatsiri Rattana.

2 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Its hard to tell from the code snippet you posted here. Can you attach a reproducer?

Thanks,
Raghu

发表评论

登录添加评论。还不是成员?立即加入