OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

vt_user_marker.h
1 /**
2 * VampirTrace
3 * http://www.tu-dresden.de/zih/vampirtrace
4 *
5 * Copyright (c) 2005-2012, ZIH, TU Dresden, Federal Republic of Germany
6 *
7 * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
8 * Centre, Federal Republic of Germany
9 *
10 * See the file COPYING in the package base directory for details
11 **/
12
13 #ifndef _VT_USER_H
14 # error "vt_user_marker.h should only be included from vt_user.h"
15 #endif /* _VT_USER_H */
16
17 #ifndef _VT_USER_MARKER_H
18 #define _VT_USER_MARKER_H
19
20 #define VT_MARKER_TYPE_ERROR 1
21 #define VT_MARKER_TYPE_WARNING 2
22 #define VT_MARKER_TYPE_HINT 3
23
24 #if (defined(VTRACE)) && !(defined(VTRACE_NO_MARKER))
25
26 __VT_EXTERN_DECL unsigned int VT_User_marker_def__(const char* mname,
27 int mtype);
28 __VT_EXTERN_DECL void VT_User_marker__(unsigned int mid, const char* mtext);
29
30 # define VT_MARKER_DEF(n, t) VT_User_marker_def__((n), (t))
31 # define VT_MARKER(i, t) VT_User_marker__((i), (t))
32
33 #else /* VTRACE && !VTRACE_NO_MARKER */
34
35 # define VT_MARKER_DEF(n, t) 0
36 # define VT_MARKER(i, t)
37
38 #endif /* VTRACE && !VTRACE_NO_MARKER */
39
40 #endif /* _VT_USER_MARKER_H && !VTRACE_NO_MARKER */