Menu

#9 Enhance ComputeException.ToString

open
nobody
None
5
2010-05-04
2010-04-15
Jeff Adams
No

It would be nice if ComputeException (and any other fairly generic exceptions) would add the error code name to the ToString. And if the name isn't available, at least the error code.

Discussion

  • Jeff Adams

    Jeff Adams - 2010-04-15

    Actually probably adding it to the exception message would be better than overriding ToString.

     
  • nythrix

    nythrix - 2010-04-15

    This is a brilliant idea!

    Note to self:
    1) Hook the cl context notifier which (in theory at least) is given more information than just a simple error code.
    2) Append this error info to the appriopriate compute exception and throw it.

     
  • nythrix

    nythrix - 2010-04-22

    After some experimenting, I''m forced to classify my own suggestion as unfeasible. So, I've decided to at least insert the error code into the exception message as requested. For the moment that's as much info as one can get from the OpenCL.

     
  • nythrix

    nythrix - 2010-04-23
    • status: open --> closed
     
  • nythrix

    nythrix - 2010-05-04

    Reopening feature request.
    The exception message can be extended with information from the "Errors" section of the OpenCL man pages.

     
  • nythrix

    nythrix - 2010-05-04
    • status: closed --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.