OpenMPI 0.1.1

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

- File List
- Globals

vt_fork.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_FORK_H
14 #define _VT_FORK_H
15
16 #ifdef __cplusplus
17 # define EXTERN extern "C"
18 #else
19 # define EXTERN extern
20 #endif
21
22 #include "config.h"
23
24 #if (!defined (VT_MPI) && !defined (VT_MT) && !defined(VT_HYB) && !defined(VT_JAVA) && (defined(HAVE_FORK) && HAVE_FORK))
25
26 #define VT_FORK
27
28 #include "vt_inttypes.h"
29 #include <unistd.h>
30 #include <sys/types.h>
31
32 EXTERN void vt_fork_init(void);
33 EXTERN void vt_fork_finalize(void);
34
35 EXTERN void vt_fork(pid_t pid);
36 EXTERN void vt_fork_waitchilds(void);
37 EXTERN uint32_t vt_fork_get_num_childs(void);
38 EXTERN uint32_t vt_fork_get_num_childs_tot(void);
39 EXTERN char* vt_fork_get_trcid_filename(void);
40
41 #endif /* !VT_MPI && !VT_MT && !VT_HYB && HAVE_FORK */
42
43 #endif /* _VT_FORK_H */