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 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

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

Thanks,
Raghu

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui