1 Reply Latest reply on Dec 9, 2014 10:53 PM by nibal

    CL resources

    nibal

      Very new to openCL. While running an openCL application, I get:

       

      [!] CL Error (-34, /home/nikos/work/gr-fosphor/lib/fosphor/cl.c:461): Unable to share waterfall texture into OpenCL context

       

      In reference to source:

      /* GL shared objects */

      /* Waterfall texture */

      cl->mem_waterfall = clCreateFromGLTexture(cl->ctx,

           CL_MEM_WRITE_ONLY, GL_TEXTURE_2D, 0,

           fosphor_gl_get_shared_id(self, GL_ID_TEX_WATERFALL),

           &err);

      CL_ERR_CHECK(err, "Unable to share waterfall texture into OpenCL context");

       

      This is a setup issue. Sources are correct and work elsewhere. I was just wandering where i can find programming resources, like error codes, library calls and data strauctures, since i will be doing development. Any specific tools to debug cl code?

       

      TIA,

      Nikos

        • Re: CL resources
          nibal

          I think I found the solution. OpenCl is maintained by Khronos group, www.khronos.org. They have the OpenCL API, specs and references. AMD, in this site, offers the openemu, openCl emulator/debugger.