12 Replies Latest reply on Jun 10, 2015 3:18 AM by dipak

    Undefined behavior when running a simple OpenCL app

    ysg

      Hello,

      Recently I stumbled upon this tutorial [ The Big Blob » Getting started with OpenCL and GPU Computing ].  I copied it and ran it (the only change made was changing the CL_DEVICE_TYPE_DEFAULT to CPU.)  Now, this is where the weirdness started.  I've attached the output and I don't understand why I'm seeing the results that I am.  Was there an uninitialized variable?