1.2.1 (revision 3238)
OTF2_Events.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of the Score-P software (http://www.score-p.org)
00003  *
00004  * Copyright (c) 2009-2012,
00005  *    RWTH Aachen University, Germany
00006  *    Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
00007  *    Technische Universitaet Dresden, Germany
00008  *    University of Oregon, Eugene, USA
00009  *    Forschungszentrum Juelich GmbH, Germany
00010  *    German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
00011  *    Technische Universitaet Muenchen, Germany
00012  *
00013  * See the COPYING file in the package base directory for details.
00014  *
00015  */
00016 
00017 
00018 #ifndef OTF2_EVENTS_H
00019 #define OTF2_EVENTS_H
00020 
00021 
00034 #include <otf2/OTF2_ErrorCodes.h>
00035 
00036 
00037 #include <otf2/OTF2_GeneralDefinitions.h>
00038 
00039 
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif /* __cplusplus */
00043 
00044 
00046 typedef uint8_t OTF2_MeasurementMode;
00047 
00053 enum OTF2_MeasurementMode_enum
00054 {
00057     OTF2_MEASUREMENT_ON  = 1,
00060     OTF2_MEASUREMENT_OFF = 2
00061 };
00062 
00063 
00065 typedef uint8_t OTF2_CollectiveOp;
00066 
00072 enum OTF2_CollectiveOp_enum
00073 {
00076     OTF2_COLLECTIVE_OP_BARRIER                       = 0,
00079     OTF2_COLLECTIVE_OP_BCAST                         = 1,
00082     OTF2_COLLECTIVE_OP_GATHER                        = 2,
00085     OTF2_COLLECTIVE_OP_GATHERV                       = 3,
00088     OTF2_COLLECTIVE_OP_SCATTER                       = 4,
00091     OTF2_COLLECTIVE_OP_SCATTERV                      = 5,
00094     OTF2_COLLECTIVE_OP_ALLGATHER                     = 6,
00097     OTF2_COLLECTIVE_OP_ALLGATHERV                    = 7,
00100     OTF2_COLLECTIVE_OP_ALLTOALL                      = 8,
00103     OTF2_COLLECTIVE_OP_ALLTOALLV                     = 9,
00106     OTF2_COLLECTIVE_OP_ALLTOALLW                     = 10,
00109     OTF2_COLLECTIVE_OP_ALLREDUCE                     = 11,
00112     OTF2_COLLECTIVE_OP_REDUCE                        = 12,
00115     OTF2_COLLECTIVE_OP_REDUCE_SCATTER                = 13,
00118     OTF2_COLLECTIVE_OP_SCAN                          = 14,
00121     OTF2_COLLECTIVE_OP_EXSCAN                        = 15,
00124     OTF2_COLLECTIVE_OP_REDUCE_SCATTER_BLOCK          = 16,
00127     OTF2_COLLECTIVE_OP_CREATE_HANDLE                 = 17,
00130     OTF2_COLLECTIVE_OP_DESTROY_HANDLE                = 18,
00133     OTF2_COLLECTIVE_OP_ALLOCATE                      = 19,
00136     OTF2_COLLECTIVE_OP_DEALLOCATE                    = 20,
00139     OTF2_COLLECTIVE_OP_CREATE_HANDLE_AND_ALLOCATE    = 21,
00142     OTF2_COLLECTIVE_OP_DESTROY_HANDLE_AND_DEALLOCATE = 22
00143 };
00144 
00145 
00147 typedef uint8_t OTF2_RmaSyncType;
00148 
00154 enum OTF2_RmaSyncType_enum
00155 {
00158     OTF2_RMA_SYNC_TYPE_MEMORY     = 0,
00161     OTF2_RMA_SYNC_TYPE_NOTIFY_IN  = 1,
00164     OTF2_RMA_SYNC_TYPE_NOTIFY_OUT = 2
00165 };
00166 
00167 
00169 typedef uint32_t OTF2_RmaSyncLevel;
00170 
00176 enum OTF2_RmaSyncLevel_enum
00177 {
00181     OTF2_RMA_SYNC_LEVEL_NONE    = 0,
00184     OTF2_RMA_SYNC_LEVEL_PROCESS = ( 1 << 0 ),
00187     OTF2_RMA_SYNC_LEVEL_MEMORY  = ( 1 << 1 )
00188 };
00189 
00190 
00192 typedef uint8_t OTF2_LockType;
00193 
00199 enum OTF2_LockType_enum
00200 {
00203     OTF2_LOCK_EXCLUSIVE = 0,
00207     OTF2_LOCK_SHARED    = 1
00208 };
00209 
00210 
00212 typedef uint8_t OTF2_RmaAtomicType;
00213 
00219 enum OTF2_RmaAtomicType_enum
00220 {
00223     OTF2_RMA_ATOMIC_TYPE_ACCUMULATE       = 0,
00226     OTF2_RMA_ATOMIC_TYPE_INCREMENT        = 1,
00229     OTF2_RMA_ATOMIC_TYPE_TEST_AND_SET     = 2,
00232     OTF2_RMA_ATOMIC_TYPE_COMPARE_AND_SWAP = 3
00233 };
00234 
00235 
00237 typedef union OTF2_MetricValue_union OTF2_MetricValue;
00238 union OTF2_MetricValue_union
00239 {
00240     int64_t  signed_int;
00241     uint64_t unsigned_int;
00242     double   floating_point;
00243 };
00244 
00245 
00246 #ifdef __cplusplus
00247 }
00248 #endif /* __cplusplus */
00249 
00250 
00251 #endif /* OTF2_EVENTS_H */