OpenCL code hangs with code for calcuating timing information

Discussion created by shankha on Jun 2, 2011
Latest reply on Jun 4, 2011 by himanshu.gautam


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 : 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.