Class CudaException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CudaFatalException

public class CudaException extends RuntimeException
Exception from the cuda language/library. Be aware that because of how cuda does asynchronous processing exceptions from cuda can be thrown by method calls that did not cause the exception to take place. These will take place on the same thread that caused the error.

Please See the cuda docs for more details on how this works.

In general you can recover from cuda errors even in async calls if you make sure that you don't switch between threads for different parts of processing that can be retried as a chunk.

See Also: