Results 1 to 2 of 2

Thread: opencl opengl inter operability

  1. #1

    opencl opengl inter operability

    Hi forum,

    I managed to enable the opencl opengl interoperability to an application .

    But the application crashes when i resize the window with the following information:

    Code :
    GLEW Status: 1.6.0
    OpenCL Platform 0: NVIDIA Corporation
    OpenCL Device 0: Type = TYPE_GPU
    OpenCL Device 0: Name = GeForce GTX 560M
    OpenCL Device 0: Compute units = 4
    OpenCL Device 0: Max. work group size = 1024
    [SELECTED] OpenCL Device 0: Type = TYPE_GPU
    [SELECTED] OpenCL Device 0: Name = GeForce GTX 560M
    [SELECTED] OpenCL Device 0: Compute units = 4
    [SELECTED] OpenCL Device 0: Max. work group size = 1024
    Reading file 'rendering_kernel.cl' (size 3678 bytes)
    OpenCL Device 0: kernel work group size = 768
    Failed to enqueue OpenCL work: -1000
    Segmentation fault (core dumped)


    Otherwise the application works fine.

    Any hint on what might have caused the problem?


    Regards
    Sajjad

  2. #2
    Senior Member
    Join Date
    Oct 2012
    Posts
    166

    Re: opencl opengl inter operability

    Changing the window size will change the size of the Render Target you started the interop with. This could be a problem. Example:
    Startup Windowsize 800x600
    Interop Buffer init 800x600
    Scale Window to 850x500
    --> Interop buffer will be read at invalid location

    I havent used the interop yet so this is just a problem i could imagine. Look for the resize callback funtion to update or invalidate the buffer on openCL side.

    Greetings,
    clint3112

Similar Threads

  1. OpenCL and OpenGL integration
    By blessman11 in forum OpenCL
    Replies: 1
    Last Post: 06-29-2012, 09:27 AM
  2. OpenCL + OpenGL (interop)
    By Executor in forum OpenCL
    Replies: 2
    Last Post: 11-09-2009, 05:16 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
  •