Added comments

This commit is contained in:
Davis King 2015-10-20 08:43:22 -04:00
parent 99ec66b82c
commit fe8b99f1a8
1 changed files with 13 additions and 0 deletions

View File

@ -10,11 +10,24 @@ namespace dlib
{
struct cuda_error : public error
{
/*!
WHAT THIS OBJECT REPRESENTS
This is the exception thrown if any calls to the NVIDIA CUDA runtime
returns an error.
!*/
cuda_error(const std::string& message): error(message) {}
};
struct cudnn_error : public cuda_error
{
/*!
WHAT THIS OBJECT REPRESENTS
This is the exception thrown if any calls to the NVIDIA cuDNN library
returns an error.
!*/
cudnn_error(const std::string& message): cuda_error(message) {}
};
}