#9 Enhance ComputeException.ToString

Jeff Adams

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.


  • 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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks