38 #ifndef SCOREP_PUBLICTYPES_H
39 #define SCOREP_PUBLICTYPES_H
58 #define SCOREP_INVALID_EXIT_STATUS ( ( int64_t )( ~( ( ~( ( uint64_t )0u ) ) >> 1 ) ) )
73 #define SCOREP_INVALID_LINE_NO 0
87 #define SCOREP_MOVABLE_NULL 0
104 #define SCOREP_INVALID_SOURCE_FILE SCOREP_MOVABLE_NULL
116 #define SCOREP_INVALID_METRIC SCOREP_MOVABLE_NULL
128 #define SCOREP_INVALID_SAMPLING_SET SCOREP_MOVABLE_NULL
140 #define SCOREP_INVALID_REGION SCOREP_MOVABLE_NULL
152 #define SCOREP_INVALID_PARADIGM SCOREP_MOVABLE_NULL
198 #define SCOREP_LOCATION_TYPES \
199 SCOREP_LOCATION_TYPE( CPU_THREAD, "CPU thread" ) \
200 SCOREP_LOCATION_TYPE( GPU, "GPU" ) \
201 SCOREP_LOCATION_TYPE( METRIC, "metric location" ) \
206 #define SCOREP_LOCATION_TYPE( NAME, name_string ) SCOREP_LOCATION_TYPE_ ## NAME,
208 #undef SCOREP_LOCATION_TYPE
210 SCOREP_NUMBER_OF_LOCATION_TYPES,
247 #define SCOREP_ALL_TARGET_RANKS -1
253 #define SCOREP_INVALID_ROOT_RANK -1
273 #define SCOREP_PARADIGM_CLASSES \
274 SCOREP_PARADIGM_CLASS( MPP, "multi-process", PROCESS ) \
275 SCOREP_PARADIGM_CLASS( THREAD_FORK_JOIN, "fork/join", THREAD_FORK_JOIN ) \
276 SCOREP_PARADIGM_CLASS( THREAD_CREATE_WAIT, "create/wait", THREAD_CREATE_WAIT ) \
277 SCOREP_PARADIGM_CLASS( ACCELERATOR, "accelerator", ACCELERATOR )
282 #define SCOREP_PARADIGM_CLASS( NAME, name, OTF2_NAME ) \
283 SCOREP_PARADIGM_CLASS_ ## NAME,
284 SCOREP_PARADIGM_CLASSES
286 #undef SCOREP_PARADIGM_CLASS
314 #define SCOREP_PARADIGMS \
315 SCOREP_PARADIGM( MEASUREMENT, "measurement", MEASUREMENT_SYSTEM ) \
316 SCOREP_PARADIGM( USER, "user", USER ) \
317 SCOREP_PARADIGM( COMPILER, "compiler", COMPILER ) \
318 SCOREP_PARADIGM( SAMPLING, "sampling", SAMPLING ) \
319 SCOREP_PARADIGM( MEMORY, "memory", NONE ) \
320 SCOREP_PARADIGM( LIBWRAP, "libwrap", NONE ) \
321 SCOREP_PARADIGM( MPI, "mpi", MPI ) \
322 SCOREP_PARADIGM( SHMEM, "shmem", SHMEM ) \
323 SCOREP_PARADIGM( OPENMP, "openmp", OPENMP ) \
324 SCOREP_PARADIGM( PTHREAD, "pthread", PTHREAD ) \
325 SCOREP_PARADIGM( ORPHAN_THREAD, "orphan thread", UNKNOWN ) \
326 SCOREP_PARADIGM( CUDA, "cuda", CUDA ) \
327 SCOREP_PARADIGM( OPENCL, "opencl", OPENCL ) \
328 SCOREP_PARADIGM( OPENACC, "openacc", OPENACC ) \
329 SCOREP_PARADIGM( IO, "io", NONE )
334 #define SCOREP_PARADIGM( NAME, name_str, OTF2_NAME ) \
335 SCOREP_PARADIGM_ ## NAME,
338 #undef SCOREP_PARADIGM
417 #define SCOREP_REGION_TYPES \
418 SCOREP_REGION_TYPE( COLL_ONE2ALL, "one2all" ) \
419 SCOREP_REGION_TYPE( COLL_ALL2ONE, "all2one" ) \
420 SCOREP_REGION_TYPE( COLL_ALL2ALL, "all2all" ) \
421 SCOREP_REGION_TYPE( COLL_OTHER, "other collective" ) \
422 SCOREP_REGION_TYPE( POINT2POINT, "point2point" ) \
423 SCOREP_REGION_TYPE( PARALLEL, "parallel" ) \
424 SCOREP_REGION_TYPE( SECTIONS, "sections" ) \
425 SCOREP_REGION_TYPE( SECTION, "section" ) \
426 SCOREP_REGION_TYPE( WORKSHARE, "workshare" ) \
427 SCOREP_REGION_TYPE( SINGLE, "single" ) \
428 SCOREP_REGION_TYPE( MASTER, "master" ) \
429 SCOREP_REGION_TYPE( CRITICAL, "critical" ) \
430 SCOREP_REGION_TYPE( ATOMIC, "atomic" ) \
431 SCOREP_REGION_TYPE( BARRIER, "barrier" ) \
432 SCOREP_REGION_TYPE( IMPLICIT_BARRIER, "implicit barrier" ) \
433 SCOREP_REGION_TYPE( FLUSH, "flush" ) \
434 SCOREP_REGION_TYPE( CRITICAL_SBLOCK, "critical sblock" ) \
435 SCOREP_REGION_TYPE( SINGLE_SBLOCK, "single sblock" ) \
436 SCOREP_REGION_TYPE( WRAPPER, "wrapper" ) \
437 SCOREP_REGION_TYPE( TASK, "task" ) \
438 SCOREP_REGION_TYPE( TASK_UNTIED, "untied task" ) \
439 SCOREP_REGION_TYPE( TASK_WAIT, "taskwait" ) \
440 SCOREP_REGION_TYPE( TASK_CREATE, "task create" ) \
441 SCOREP_REGION_TYPE( ORDERED, "ordered" ) \
442 SCOREP_REGION_TYPE( ORDERED_SBLOCK, "ordered sblock" ) \
443 SCOREP_REGION_TYPE( ARTIFICIAL, "artificial" ) \
444 SCOREP_REGION_TYPE( RMA, "rma" ) \
445 SCOREP_REGION_TYPE( THREAD_CREATE, "thread create" ) \
446 SCOREP_REGION_TYPE( THREAD_WAIT, "thread wait" ) \
447 SCOREP_REGION_TYPE( ALLOCATE, "allocate" ) \
448 SCOREP_REGION_TYPE( DEALLOCATE, "deallocate" ) \
449 SCOREP_REGION_TYPE( REALLOCATE, "reallocate" ) \
450 SCOREP_REGION_TYPE( FILE_IO, "file_io" ) \
451 SCOREP_REGION_TYPE( FILE_IO_METADATA, "file_io metadata" )
454 #define SCOREP_REGION_TYPE( NAME, name_str ) \
455 SCOREP_REGION_ ## NAME,
459 SCOREP_REGION_UNKNOWN = 0,
460 SCOREP_REGION_FUNCTION,
466 SCOREP_REGION_DYNAMIC,
467 SCOREP_REGION_DYNAMIC_PHASE,
468 SCOREP_REGION_DYNAMIC_LOOP,
469 SCOREP_REGION_DYNAMIC_FUNCTION,
470 SCOREP_REGION_DYNAMIC_LOOP_PHASE,
477 #undef SCOREP_REGION_TYPE
492 #define SCOREP_RMA_SYNC_TYPES \
493 SCOREP_RMA_SYNC_TYPE( MEMORY, memory, "memory" ) \
494 SCOREP_RMA_SYNC_TYPE( NOTIFY_IN, notify_in, "notify in" ) \
495 SCOREP_RMA_SYNC_TYPE( NOTIFY_OUT, notify_out, "notify out" )
499 #define SCOREP_RMA_SYNC_TYPE( upper, lower, name ) SCOREP_RMA_SYNC_TYPE_ ## upper,
500 SCOREP_RMA_SYNC_TYPES
501 #undef SCOREP_RMA_SYNC_TYPE
519 #define SCOREP_RMA_SYNC_LEVELS \
520 SCOREP_RMA_SYNC_LEVEL( NONE, none, "none", 0 ) \
521 SCOREP_RMA_SYNC_LEVEL( PROCESS, process, "process", 1 << 0 ) \
522 SCOREP_RMA_SYNC_LEVEL( MEMORY, memory, "memory", 1 << 1 )
526 #define SCOREP_RMA_SYNC_LEVEL( upper, lower, name, value ) \
527 SCOREP_RMA_SYNC_LEVEL_ ## upper = value,
529 SCOREP_RMA_SYNC_LEVELS
530 #undef SCOREP_RMA_SYNC_LEVEL
551 #define SCOREP_RMA_ATOMIC_TYPES \
552 SCOREP_RMA_ATOMIC_TYPE( ACCUMULATE, accumulate, "accumulate" ) \
553 SCOREP_RMA_ATOMIC_TYPE( INCREMENT, increment, "increment" ) \
554 SCOREP_RMA_ATOMIC_TYPE( TEST_AND_SET, test_and_set, "test and set" ) \
555 SCOREP_RMA_ATOMIC_TYPE( COMPARE_AND_SWAP, compare_and_swap, "compare and swap" ) \
556 SCOREP_RMA_ATOMIC_TYPE( SWAP, swap, "swap" ) \
557 SCOREP_RMA_ATOMIC_TYPE( FETCH_AND_ADD, fetch_and_add, "fetch and add" ) \
558 SCOREP_RMA_ATOMIC_TYPE( FETCH_AND_INCREMENT, fetch_and_increment, "fetch and increment" ) \
559 SCOREP_RMA_ATOMIC_TYPE( ADD, add, "add" ) \
560 SCOREP_RMA_ATOMIC_TYPE( FETCH_AND_ACCUMULATE, fetch_and_op, "fetch and accumulate with user-specified operator" )
564 #define SCOREP_RMA_ATOMIC_TYPE( upper, lower, name ) SCOREP_RMA_ATOMIC_TYPE_ ## upper,
565 SCOREP_RMA_ATOMIC_TYPES
566 #undef SCOREP_RMA_ATOMIC_TYPE
568 SCOREP_INVALID_RMA_ATOMIC_TYPE
621 #define SCOREP_IO_PARADIGMS \
622 SCOREP_IO_PARADIGM( POSIX, posix, "POSIX" ) \
623 SCOREP_IO_PARADIGM( ISOC, isoc, "ISOC" ) \
624 SCOREP_IO_PARADIGM( MPI, mpi, "MPI-IO" )
631 #define SCOREP_IO_PARADIGM( upper, lower, id_name ) SCOREP_IO_PARADIGM_ ## upper,
633 #undef SCOREP_IO_PARADIGM
634 SCOREP_INVALID_IO_PARADIGM_TYPE
638 #define SCOREP_NUM_IO_PARADIGMS SCOREP_INVALID_IO_PARADIGM_TYPE
803 #define SCOREP_IPC_DATATYPES \
804 SCOREP_IPC_DATATYPE( BYTE ) \
805 SCOREP_IPC_DATATYPE( CHAR ) \
806 SCOREP_IPC_DATATYPE( UNSIGNED_CHAR ) \
807 SCOREP_IPC_DATATYPE( INT ) \
808 SCOREP_IPC_DATATYPE( UNSIGNED ) \
809 SCOREP_IPC_DATATYPE( INT32_T ) \
810 SCOREP_IPC_DATATYPE( UINT32_T ) \
811 SCOREP_IPC_DATATYPE( INT64_T ) \
812 SCOREP_IPC_DATATYPE( UINT64_T ) \
813 SCOREP_IPC_DATATYPE( DOUBLE )
817 #define SCOREP_IPC_DATATYPE( datatype ) \
818 SCOREP_IPC_ ## datatype,
820 #undef SCOREP_IPC_DATATYPE
821 SCOREP_IPC_NUMBER_OF_DATATYPES
836 #define SCOREP_IPC_OPERATIONS \
837 SCOREP_IPC_OPERATION( BAND ) \
838 SCOREP_IPC_OPERATION( BOR ) \
839 SCOREP_IPC_OPERATION( MIN ) \
840 SCOREP_IPC_OPERATION( MAX ) \
841 SCOREP_IPC_OPERATION( SUM )
845 #define SCOREP_IPC_OPERATION( op ) \
847 SCOREP_IPC_OPERATIONS
848 #undef SCOREP_IPC_OPERATION
849 SCOREP_IPC_NUMBER_OF_OPERATIONS
Definition: SCOREP_PublicTypes.h:599
Definition: SCOREP_PublicTypes.h:618
SCOREP_AnyHandle SCOREP_SamplingSetHandle
Definition: SCOREP_PublicTypes.h:123
struct SCOREP_Task * SCOREP_TaskHandle
Definition: SCOREP_PublicTypes.h:159
#define SCOREP_LOCATION_TYPES
Definition: SCOREP_PublicTypes.h:198
Definition: SCOREP_PublicTypes.h:185
Definition: SCOREP_PublicTypes.h:610
Definition: SCOREP_PublicTypes.h:221
Definition: SCOREP_PublicTypes.h:168
Definition: SCOREP_PublicTypes.h:227
SCOREP_AnyHandle SCOREP_SourceFileHandle
Definition: SCOREP_PublicTypes.h:98
Definition: SCOREP_PublicTypes.h:171
Synchronization/flush operation (request and completion).
Definition: SCOREP_PublicTypes.h:761
File is only a location in the filesystem tree and is not suitable for reading and writing...
Definition: SCOREP_PublicTypes.h:681
Read-write access.
Definition: SCOREP_PublicTypes.h:652
SCOREP_AnyHandle SCOREP_MetricHandle
Definition: SCOREP_PublicTypes.h:110
Definition: SCOREP_PublicTypes.h:744
SCOREP_CollectiveType
Types to specify the used collectives in calls to SCOREP_MpiCollectiveBegin and SCOREP_RmaCollectiveB...
Definition: SCOREP_PublicTypes.h:165
Open file in append mode which means I/O write operations are automatically performed at the end of t...
Definition: SCOREP_PublicTypes.h:710
Write operation.
Definition: SCOREP_PublicTypes.h:759
Definition: SCOREP_PublicTypes.h:867
Definition: SCOREP_PublicTypes.h:183
Definition: SCOREP_PublicTypes.h:616
Ensure that the file size can be represented by a 64-bit datatype.
Definition: SCOREP_PublicTypes.h:685
Definition: SCOREP_PublicTypes.h:579
SCOREP_RmaSyncType
Type of direct RMA synchronization call.
Definition: SCOREP_PublicTypes.h:497
Definition: SCOREP_PublicTypes.h:182
SCOREP_Substrates_RequirementFlag
Definition: SCOREP_PublicTypes.h:864
Definition: SCOREP_PublicTypes.h:740
int SCOREP_MpiRank
Definition: SCOREP_PublicTypes.h:233
Delete the file when closing the {IoHandle}.
Definition: SCOREP_PublicTypes.h:729
Read operation.
Definition: SCOREP_PublicTypes.h:757
SCOREP_RmaSyncLevel
specifies a RMA synchronization level, used by RMA records to be passed to SCOREP_Rma*() functions...
Definition: SCOREP_PublicTypes.h:524
SCOREP_AnyHandle SCOREP_ParadigmHandle
Definition: SCOREP_PublicTypes.h:147
Definition: SCOREP_PublicTypes.h:355
Definition: SCOREP_PublicTypes.h:868
SCOREP_ParadigmType
defines paradigms that are be monitored
Definition: SCOREP_PublicTypes.h:332
Definition: SCOREP_PublicTypes.h:188
Definition: SCOREP_PublicTypes.h:170
Definition: SCOREP_PublicTypes.h:184
SCOREP_LockType
Definition: SCOREP_PublicTypes.h:217
If the file does not exist, it will be created.
Definition: SCOREP_PublicTypes.h:667
Definition: SCOREP_PublicTypes.h:738
Enable signal-driven I/O.
Definition: SCOREP_PublicTypes.h:715
Definition: SCOREP_PublicTypes.h:742
Definition: SCOREP_PublicTypes.h:179
Definition: SCOREP_PublicTypes.h:595
Gives the advice that this will be the only active {IoHandle} of the {IoParadigmType} which will oper...
Definition: SCOREP_PublicTypes.h:695
Definition: SCOREP_PublicTypes.h:176
Definition: SCOREP_PublicTypes.h:211
Gives the advice that no reposition will happen on this I/O handle. E.g., no seek operation or simila...
Definition: SCOREP_PublicTypes.h:689
Definition: SCOREP_PublicTypes.h:288
SCOREP_IoAccessMode
Definition: SCOREP_PublicTypes.h:643
Definition: SCOREP_PublicTypes.h:225
No special semantics.
Definition: SCOREP_PublicTypes.h:773
Ensure that this call creates the file.
Definition: SCOREP_PublicTypes.h:673
Definition: SCOREP_PublicTypes.h:580
SCOREP_IoSeekOption
Definition: SCOREP_PublicTypes.h:735
The I/O operation was performed in a blocking mode (default).
Definition: SCOREP_PublicTypes.h:775
Definition: SCOREP_PublicTypes.h:186
Definition: SCOREP_PublicTypes.h:748
Definition: SCOREP_PublicTypes.h:178
Definition: SCOREP_PublicTypes.h:870
SCOREP_IoCreationFlag
Definition: SCOREP_PublicTypes.h:662
Definition: SCOREP_PublicTypes.h:352
File is a terminal device and should not be promoted to a controlling terminal, if none existed befor...
Definition: SCOREP_PublicTypes.h:676
SCOREP_IoStatusFlag
Definition: SCOREP_PublicTypes.h:702
Read access to a file won't update its last access time.
Definition: SCOREP_PublicTypes.h:727
Write operations on the file will complete according to the requirements of synchronized I/O file int...
Definition: SCOREP_PublicTypes.h:719
Definition: SCOREP_PublicTypes.h:187
The I/O operation was performed in a non-blocking mode.
Definition: SCOREP_PublicTypes.h:777
Definition: SCOREP_PublicTypes.h:474
uint32_t SCOREP_LineNo
Definition: SCOREP_PublicTypes.h:65
Definition: SCOREP_PublicTypes.h:173
SCOREP_SamplingSetClass
Class of locations which recorded a sampling set.
Definition: SCOREP_PublicTypes.h:576
Definition: SCOREP_PublicTypes.h:180
Execute-only access.
Definition: SCOREP_PublicTypes.h:654
If pathname is a symbolic link, then the open operation will fail.
Definition: SCOREP_PublicTypes.h:678
Definition: SCOREP_PublicTypes.h:174
Enable close-on-exec flag.
Definition: SCOREP_PublicTypes.h:707
SCOREP_Ipc_Operation
specifies an inter process communication operation for reduce function
Definition: SCOREP_PublicTypes.h:843
Definition: SCOREP_PublicTypes.h:353
SCOREP_Allocator_MovableMemory SCOREP_AnyHandle
Definition: SCOREP_PublicTypes.h:92
Create an unnamed temporary file.
Definition: SCOREP_PublicTypes.h:683
SCOREP_RmaAtomicType
specifies a RMA Atomic Operation Type.
Definition: SCOREP_PublicTypes.h:562
SCOREP_ParameterType
defines types to be used in defining a parameter for parameter based profiling (SCOREP_Definitions_Ne...
Definition: SCOREP_PublicTypes.h:349
Definition: SCOREP_PublicTypes.h:340
Definition: SCOREP_PublicTypes.h:181
No flag is set.
Definition: SCOREP_PublicTypes.h:705
Definition: SCOREP_PublicTypes.h:177
Definition: SCOREP_PublicTypes.h:591
The I/O operation was performed collectively over the communicator of the referenced {IoHandle} handl...
Definition: SCOREP_PublicTypes.h:780
Definition: SCOREP_PublicTypes.h:578
SCOREP_IoOperationMode
Definition: SCOREP_PublicTypes.h:754
SCOREP_ParadigmClass
defines classes of paradigms that are monitored Types:
Definition: SCOREP_PublicTypes.h:280
Write operations on the file will complete according to the requirements of synchronized I/O data int...
Definition: SCOREP_PublicTypes.h:722
Truncate file to length 0 if possible.
Definition: SCOREP_PublicTypes.h:669
Definition: SCOREP_PublicTypes.h:169
Unspecified access mode.
Definition: SCOREP_PublicTypes.h:646
uint64_t SCOREP_MpiRequestId
Definition: SCOREP_PublicTypes.h:239
SCOREP_IoOperationFlag
Definition: SCOREP_PublicTypes.h:770
Definition: SCOREP_PublicTypes.h:613
The I/O operation was performed in a non-collective mode. (default)
Definition: SCOREP_PublicTypes.h:782
SCOREP_Ipc_Datatype
specifies an inter process communication data types
Definition: SCOREP_PublicTypes.h:815
Definition: SCOREP_PublicTypes.h:746
Open operation will fail if pathname is not a directory.
Definition: SCOREP_PublicTypes.h:671
Definition: SCOREP_PublicTypes.h:189
Instruct I/O operations to reduce caching effects, e.g., direct file I/O.
Definition: SCOREP_PublicTypes.h:725
uint32_t SCOREP_Allocator_MovableMemory
Definition: SCOREP_PublicTypes.h:80
I/O operations (including the creation) will fail if they would block the issuing process...
Definition: SCOREP_PublicTypes.h:713
int64_t SCOREP_ExitStatus
Definition: SCOREP_PublicTypes.h:51
Definition: SCOREP_PublicTypes.h:167
Definition: SCOREP_PublicTypes.h:866
Definition: SCOREP_PublicTypes.h:351
SCOREP_AnyHandle SCOREP_RegionHandle
Definition: SCOREP_PublicTypes.h:135
Definition: SCOREP_PublicTypes.h:593
SCOREP_MetricScope
Types to be used in defining the scope of a scoped sampling set.
Definition: SCOREP_PublicTypes.h:588
Search-only access.
Definition: SCOREP_PublicTypes.h:656
Definition: SCOREP_PublicTypes.h:503
SCOREP_LocationType
Definition: SCOREP_PublicTypes.h:204
Write-only access.
Definition: SCOREP_PublicTypes.h:650
No flag is set.
Definition: SCOREP_PublicTypes.h:665
Definition: SCOREP_PublicTypes.h:172
SCOREP_MetricOccurrence
Types to be used in defining the occurrence of a sampling set.
Definition: SCOREP_PublicTypes.h:607
Definition: SCOREP_PublicTypes.h:175
Definition: SCOREP_PublicTypes.h:597
Read-only access.
Definition: SCOREP_PublicTypes.h:648
SCOREP_IoParadigmType
Definition: SCOREP_PublicTypes.h:629
SCOREP_RegionType
specifies a Region
Definition: SCOREP_PublicTypes.h:457