Swarm-NG  1.1
gpulog.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2010 by Mario Juric *
3  * mjuric@cfa.harvard.EDU *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 3 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
28 #ifndef gpulog_h__
29 #define gpulog_h__
30 
31 #include <cstdio>
32 #include <cassert>
33 
34 #ifndef ARGINFO
35  #define ARGINFO 0
36 #endif
37 
38 #if ARGINFO
39  #define IFARGINFO(x) x
40 #else
41  #define IFARGINFO(x)
42 #endif
43 
44 #include "bits/gpulog_debug.h"
45 #include "bits/gpulog_align.h"
46 #include "bits/gpulog_types.h"
47 #include "bits/gpulog_ttraits.h"
48 #include "bits/gpulog_constants.h"
49 #include "bits/gpulog_msg_layout.h"
50 #include "bits/gpulog_log.h"
51 #include "bits/gpulog_logrecord.h"
52 #include "bits/gpulog_ilogstream.h"
54 
66 namespace gpulog
67 {
68  // Import the externally visible classes and constant
69  // into gpulog namespace
70  using internal::device_log;
71  using internal::host_log;
72  using internal::array;
73  using internal::header;
74  using internal::logrecord;
75  using internal::ilogstream;
76 
77  using internal::alloc_device_log;
78  using internal::free_device_log;
79 }
80 
81 #endif // gpulog_h__