cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

ysg
Adept I

Undefined behavior when running a simple OpenCL app

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?

0 Likes
12 Replies