Results 1 to 2 of 2

Thread: error - clEnqueueNDRangeKernel( -52)

  1. #1

    error - clEnqueueNDRangeKernel( -52)

    Hello forum,


    I have just started with OpenCL and trying out with the basic matrix multiplication and while running i am having the following error:

    Code :
    Using platform vendor: NVIDIA Corporation
    ERROR: clEnqueueNDRangeKernel( -52)

    I am creating the context, device , queue and other necessary information needed before initializing the buffer, and i also believe that i am missing something in the process. A glimpse of it as follows:

    Code :
    const int ORDER = 1000;
     
    ................................
    .................................
     
     
          Ndim = ORDER;
          Mdim = ORDER;
          Pdim = ORDER;
     
          szA = Ndim * Pdim;
          szB = Pdim * Mdim;
          szC = Ndim * Mdim;
     
     
          //create the program queue
          CommandQueue queue(context,devices[0],0);
     
          queue.enqueueNDRangeKernel(
    	 kernel,
    	 cl::NullRange,
    	 cl::NDRange(szA),
    	 cl::NullRange);


    Any hint to debug this issue will be very helpful.


    Thanks

    sajis997

  2. #2
    Senior Member
    Join Date
    Aug 2011
    Posts
    271

    Re: error - clEnqueueNDRangeKernel( -52)

    Look at CL/cl.h

    Error -52 is "invalid kernel args" - probably haven't set the kernel arguments properly.

    Also look at the man-page for enqueue kernel (search on-line for the function name), which will list when and why that error will be returned.

Similar Threads

  1. clEnqueueNDRangeKernel : Error -38
    By beuleuppeup in forum OpenCL
    Replies: 6
    Last Post: 04-07-2013, 08:42 PM
  2. Error - 52 with clEnqueueNDRangeKernel
    By elrachal in forum OpenCL
    Replies: 5
    Last Post: 05-29-2012, 05:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •