5 Replies Latest reply on Jun 4, 2011 8:53 AM by himanshu.gautam

    OpenCL code hangs with code for calcuating timing information



      Platform : Windows 7 : 64 bit

      Compiler : MSVC, AMD OpenCL

      I have the following piece of code which I am compiling with MSVC and AMD OpenCL compiler.
      I have pasted my code here : http://pastebin.com/M1A5kzd8.If I remove my timing code (comment out line no 8) the code runs fine.If I add my timing code the program hangs at line no : 61. in function clCreateCommandQueue.
      Could you please let me know what could be the possible reason.

      I have tested my timing code with a hello world (without OpenCL) and it works fine.