Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

CUDA exceptions

Jan Stephan edited this page Dec 9, 2016 · 1 revision

All of GLADOS' CUDA C++ functions can throw exceptions (based on cudaError_t). There are three different types of exceptions that can be caught:

  • glados::cuda::bad_alloc for memory allocation errors
  • glados::cuda::runtime_error for CUDA runtime errors
  • glados::cuda::invalid_argument for wrong parameters etc.

These are defined in <glados/cuda/exception.h>.

Clone this wiki locally