Results 1 to 3 of 3

Thread: Obtaing error strings from codes

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    12

    Obtaing error strings from codes

    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.

  2. #2

    Re: Obtaing error strings from codes

    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.

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    12

    Re: Obtaing error strings from codes

    Cheers that helped a lot

Similar Threads

  1. Error codes: clSetKernelArg
    By akhal in forum OpenCL
    Replies: 3
    Last Post: 09-15-2011, 01:11 PM
  2. WFD Error Codes Thread Safe?
    By lewk in forum OpenWF
    Replies: 2
    Last Post: 07-12-2011, 09:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •