AnsweredAssumed Answered

Undefined behavior when running a simple OpenCL app

Question asked by ysg on Dec 14, 2014
Latest reply on Jun 10, 2015 by dipak

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?

Attachments

Outcomes