Sha256: 62e037f3b220d8a0aeceb6450015cd8fb204e30b2a29a01a636bee47e240040e

Contents?: true

Size: 1.48 KB

Versions: 9

Compression:

Stored size: 1.48 KB

Contents

// Copyright (C) 2015  Davis E. King (davis@dlib.net)
// License: Boost Software License   See LICENSE.txt for the full license.
#ifndef DLIB_CUDA_ERRORs_H_
#define DLIB_CUDA_ERRORs_H_


#include "../error.h"

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) {}
    };

    struct curand_error : public cuda_error
    {
        /*!
            WHAT THIS OBJECT REPRESENTS
                This is the exception thrown if any calls to the NVIDIA cuRAND library
                returns an error.  
        !*/

        curand_error(const std::string& message): cuda_error(message) {}
    };

    struct cublas_error : public cuda_error
    {
        /*!
            WHAT THIS OBJECT REPRESENTS
                This is the exception thrown if any calls to the NVIDIA cuBLAS library
                returns an error.  
        !*/

        cublas_error(const std::string& message): cuda_error(message) {}
    };
}


#endif // DLIB_CUDA_ERRORs_H_

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dlib-1.2.2 ext/dlib-19.4/dlib/dnn/cuda_errors.h
dlib-1.2.1 ext/dlib-19.4/dlib/dnn/cuda_errors.h
dlib-1.2.0 ext/dlib-19.4/dlib/dnn/cuda_errors.h
dlib-1.1.5 ext/dlib-19.4/dlib/dnn/cuda_errors.h
dlib-1.1.4 ext/dlib-19.4/dlib/dnn/cuda_errors.h
dlib-1.1.3 ext/dlib-19.4/dlib/dnn/cuda_errors.h
dlib-1.1.2 ext/dlib-19.4/dlib/dnn/cuda_errors.h
dlib-1.1.1 ext/dlib-19.4/dlib/dnn/cuda_errors.h
dlib-1.1.0 ext/dlib-19.4/dlib/dnn/cuda_errors.h