View Full Version : Obtaing error strings from codes
02-03-2010, 08:00 AM
Hi there I'm using the C++ openCL bindings and my errors take the form of an int (-10, -54 etc) I was wondering how I can use this int to obtain the actual string error message?
Thanks in advance.
02-03-2010, 10:44 AM
Your best bet at this point is to look up the number in the cl.h header file. Also, you can specify a callback function with the Context that will be called with more descriptive error messages. I know the OS X implementation will give very informative error messages to this call back function, your mileage may vary with others.
02-04-2010, 12:20 PM
Cheers that helped a lot
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.