-
Notifications
You must be signed in to change notification settings - Fork 26
/
OpenclError.h.in
48 lines (34 loc) · 943 Bytes
/
OpenclError.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
GPU plot generator for Burst coin.
Author: Cryo
Bitcoin: 138gMBhCrNkbaiTCmUhP9HLU9xwn5QKZgD
Burst: BURST-YA29-QCEW-QXC3-BKXDL
Based on the code of the official miner and dcct's plotgen.
*/
#ifndef CRYO_GPU_PLOT_GENERATOR_OPENCL_ERROR_H
#define CRYO_GPU_PLOT_GENERATOR_OPENCL_ERROR_H
#include <string>
#include <stdexcept>
#include <${OpenCL_INCLUDE}>
namespace cryo {
namespace gpuPlotGenerator {
class OpenclError : public std::runtime_error {
private:
cl_int m_code;
public:
OpenclError(cl_int p_code, const std::string& p_message);
OpenclError(cl_int p_code, const char* p_message);
OpenclError(const OpenclError& p_other);
virtual ~OpenclError() throw ();
OpenclError& operator=(const OpenclError& p_other);
inline cl_int getCode() const;
std::string getCodeString() const;
};
}}
namespace cryo {
namespace gpuPlotGenerator {
inline cl_int OpenclError::getCode() const {
return m_code;
}
}}
#endif