KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gpu_cudpp.h
Go to the documentation of this file.
1 /* $Id: gpu_cudpp.h 10607 2011-09-29 19:50:31Z predoehl $ */
2 /* {{{=========================================================================== *
3  |
4  | Copyright (c) 1994-2010 by Kobus Barnard (author)
5  |
6  | Personal and educational use of this code is granted, provided that this
7  | header is kept intact, and that the authorship is not misrepresented, that
8  | its use is acknowledged in publications, and relevant papers are cited.
9  |
10  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
11  |
12  | Please note that the code in this file has not necessarily been adequately
13  | tested. Naturally, there is no guarantee of performance, support, or fitness
14  | for any particular task. Nonetheless, I am interested in hearing about
15  | problems that you encounter.
16  |
17  | Author: Kyle Simek
18  * =========================================================================== }}}*/
19 
20 // vim: tabstop=4 shiftwidth=4 foldmethod=marker
21 #ifndef KJB_CPP_CUDPP_H
22 #define KJB_CPP_CUDPP_H
23 
24 #include <l_cpp/l_exception.h>
25 
26 #ifdef KJB_HAVE_CUDPP
27 #include <cudpp.h>
28 
29 // TODO Create a CUDPP error class and convert error codes into meaningful strings
30 #define CUDPP_ETX(a) \
31 { \
32  CUDPPResult err = a; \
33  if(err) \
34  { \
35  KJB_THROW_3(Runtime_error, "CUDPP error: %d", (err)); \
36  } \
37 }
38 
39 #endif
40 
41 #endif
Support for error handling exception classes in libKJB.