OpenMPCD
CUDA/Exceptions.hpp
Go to the documentation of this file.
1 /**
2  * @file
3  * Defines exceptions for CUDA programs.
4  */
5 
6 #ifndef OPENMPCD_CUDA_EXCEPTIONS_HPP
7 #define OPENMPCD_CUDA_EXCEPTIONS_HPP
8 
10 
11 namespace OpenMPCD
12 {
13  namespace CUDA
14  {
15  /**
16  * Base CUDA exception.
17  */
19  {
20  public:
21  /**
22  * The constructor.
23  * @param[in] msg The error message.
24  */
25  Exception(const std::string& msg)
26  : OpenMPCD::Exception(msg)
27  {
28  }
29  };
30  }
31 }
32 
33 #endif
Exceptions.hpp
OpenMPCD::CUDA::Exception
Base CUDA exception.
Definition: CUDA/Exceptions.hpp:18
OpenMPCD::CUDA::Exception::Exception
Exception(const std::string &msg)
The constructor.
Definition: CUDA/Exceptions.hpp:25
OpenMPCD::Exception
The base exception class for OpenMPCD.
Definition: Exceptions.hpp:37