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.
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.
I didn’t find the right solution from the internet.
Web Video Animation Studio
You must be logged in to reply to this topic.