2.0.4 (revision 1809)
OpenMP Pragma And Region Instrumentor
pomp2_user_lib.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Score-P software (http://www.score-p.org)
3  *
4  * Copyright (c) 2009-2013,
5  * RWTH Aachen University, Germany
6  *
7  * Copyright (c) 2009-2013,
8  * Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
9  *
10  * Copyright (c) 2009-2013,
11  * Technische Universitaet Dresden, Germany
12  *
13  * Copyright (c) 2009-2013,
14  * University of Oregon, Eugene, USA
15  *
16  * Copyright (c) 2009-2013,
17  * Forschungszentrum Juelich GmbH, Germany
18  *
19  * Copyright (c) 2009-2013,
20  * German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
21  *
22  * Copyright (c) 2009-2013,
23  * Technische Universitaet Muenchen, Germany
24  *
25  * This software may be modified and distributed under the terms of
26  * a BSD-style license. See the COPYING file in the package base
27  * directory for details.
28  *
29  */
30 /****************************************************************************
31 ** SCALASCA http://www.scalasca.org/ **
32 ** KOJAK http://www.fz-juelich.de/jsc/kojak/ **
33 *****************************************************************************
34 ** Copyright (c) 1998-2009 **
35 ** Forschungszentrum Juelich, Juelich Supercomputing Centre **
36 ** **
37 ** See the file COPYRIGHT in the package base directory for details **
38 ****************************************************************************/
39 #ifndef POMP2_USER_LIB_H
40 #define POMP2_USER_LIB_H
41 
42 #include <stddef.h>
43 #include <stdint.h>
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
56 /* Avoid warnings from Orcale Studio Compiler if nowait clauses are added
57  * to reduction loops. Opari always inserts a barrier after such loops, so
58  * the nowait is save.*/
59 #if defined( __SUNPRO_C )
60 #pragma error_messages (off, E_NOWAIT_REDUCTION_USE)
61 #endif
62 
66 #ifndef __opari2_region_handle
67 typedef void* OPARI2_Region_handle;
68 #define __opari2_region_handle
69 #endif
70 
71 typedef OPARI2_Region_handle POMP2_USER_Region_handle;
72 
82 extern size_t
84 
91 extern void
93 
98 extern const char*
100 
103 extern void
104 POMP2_Finalize( void );
105 
108 extern void
109 POMP2_Init( void );
110 
113 extern void
114 POMP2_Off( void );
115 
118 extern void
119 POMP2_On( void );
120 
125 extern void
126 POMP2_Begin( POMP2_USER_Region_handle* pomp2_handle,
127  const char ctc_string[] );
128 
132 extern void
133 POMP2_End( POMP2_USER_Region_handle* pomp2_handle );
134 
140 extern void
141 POMP2_USER_Assign_handle( POMP2_USER_Region_handle* pomp2_handle,
142  const char ctc_string[] );
143 
144 #ifdef __cplusplus
145 }
146 #endif
147 
148 #endif
void POMP2_Begin(POMP2_USER_Region_handle *pomp2_handle, const char ctc_string[])
void POMP2_Off(void)
void POMP2_Init(void)
void POMP2_End(POMP2_USER_Region_handle *pomp2_handle)
void POMP2_Finalize(void)
void POMP2_USER_Assign_handle(POMP2_USER_Region_handle *pomp2_handle, const char ctc_string[])
void POMP2_On(void)
size_t POMP2_USER_Get_num_regions(void)
void * OPARI2_Region_handle
Definition: pomp2_user_lib.h:67
const char * POMP2_Get_opari2_version(void)
void POMP2_USER_Init_regions(void)