Home Forums Programming What's the best way of doing this in an OpenACC programm ??

This topic contains 0 replies, has 1 voice, and was last updated by  AlexAmery AlexAmery 1 week, 6 days ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #6658

    AlexAmery AlexAmery
    Participant

    Hello all,

    if the problem size gets too big and doesn’t fit on the GPU I get an out-of-memory error thrown by the CUDA runtime along with a dump of lots of lines of text. In a commercial setting I would like to catch this error and print a shorter and more useful error message for the customer.

    What’s the best way of doing this in an OpenACC programm. Does the Cuda runtime throw a standard C++ exception that I can catch with a try/catch block?
    Obviously, it would be even better if the program could anticipate the memory requirements given the user setup and exit with a proper error message early on in the program execution, i.e. way before it exhausts the GPU memory, but unfortunately we are not there yet.

    Please help

    I didn’t find the right solution from the internet.

    References:
    https://www.pgroup.com/userforum/viewtopic.php?t=6027&sid=4a6a2a4627e6986c633e2f9a8fee2122
    Web Video Animation Studio

    Thank you.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.