Results 1 to 2 of 2

Thread: Mixing OpenCL and OpenGL results with -48 error code

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    2

    Mixing OpenCL and OpenGL results with -48 error code

    I wrote an OpenCL application which solves Poison Equation with finite difference method and it works just fine.
    Know I want to add opengl displaying feature for demonstration purposes and I'm a little bit stuck because running kernel returns -48 error code, even when it's completely empty.
    So basically mistake must be somewhere else, for my convenience I used SimpleGL sample from Nvidia SDK.

    Any help would be appriciated because after few hours I didn't make any progress.

    http://student.agh.edu.pl/~wysek/oclSimpleGL.cpp
    http://student.agh.edu.pl/~wysek/kernel1.cl

    PS It uses all sort of weird libraries like oclUtiles, if you don't want to mess with linking just put it into NVIDIASDK/OpenCL/src/oclSimpleGL folder and run make and it will be compiled into bin folder with other examples.

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Mixing OpenCL and OpenGL results with -48 error code

    The error code -48 means CL_INVALID_KERNEL. Could you double-check that the kernel you are passing is correct? What line of code is returning that error?
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. havin error code -38 in opencl ?
    By jai in forum OpenCL
    Replies: 3
    Last Post: 11-25-2012, 09:11 AM
  2. Replies: 1
    Last Post: 03-24-2010, 11:58 PM

Posting Permissions

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