OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1720 Discussions

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( * num_devices,

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/

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/
No symbol table info available.

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

Thank in advance,
Chatsiri Rattana.

0 Kudos
1 Reply
Its hard to tell from the code snippet you posted here. Can you attach a reproducer? Thanks, Raghu
0 Kudos