Search Unity

Cloo (openCL): Breakpoints freeze Unity

Discussion in 'Scripting' started by Shynx, Mar 27, 2015.

  1. Shynx

    Shynx

    Joined:
    Jan 10, 2015
    Posts:
    6
    i originally assumed this was a problem with Visual Studio Tools for Unity, however, i tried to debug in MonoDevelop and the same problem occurred. So i am posting here, hoping its the right forum.

    So the issue i am facing is simple: i am currently working on a project that utilizes openCL. for the binding i am using cloo (http://sourceforge.net/projects/cloo/).

    my code works fine. however, when i try to set a break-point, unity freezes and the process has to be killed.
    without reading out device memory, it (almost) always happens the second time i run debugging. when i am reading out device memory though, unity freezes every time. i attached a simple project to reproduce the issue.

    i am using Unity v4.5.5, openCL device is an nvidia card with newest drivers (347.88). if anybody could offer any insight, i'd very much appreciate it.
     

    Attached Files: