I am running the OpenCL code with debug and release mode under Visual Studio. The time it takes to run the OpenCL kernel is the same. I am wondering if there is anything wrong with the settings. I did check the compiler option and see -O2 is on, but not sure if this is relavant to OpenCL code or the application C/C++ code only. How do I tell that the kernel is optimized?