38 #ifndef SCOREP_PUBLICTYPES_H
39 #define SCOREP_PUBLICTYPES_H
50 #define SCOREP_INVALID_PID 0
55 #define SCOREP_INVALID_TID 0
68 #define SCOREP_INVALID_EXIT_STATUS ( ( int64_t )( ~( ( ~( ( uint64_t )0u ) ) >> 1 ) ) )
83 #define SCOREP_INVALID_LINE_NO 0
97 #define SCOREP_MOVABLE_NULL 0
114 #define SCOREP_INVALID_SOURCE_FILE SCOREP_MOVABLE_NULL
126 #define SCOREP_INVALID_METRIC SCOREP_MOVABLE_NULL
138 #define SCOREP_INVALID_SAMPLING_SET SCOREP_MOVABLE_NULL
150 #define SCOREP_INVALID_REGION SCOREP_MOVABLE_NULL
162 #define SCOREP_INVALID_PARADIGM SCOREP_MOVABLE_NULL
167 #define SCOREP_IO_UNKNOWN_OFFSET UINT64_MAX
211 #define SCOREP_LOCATION_TYPES \
212 SCOREP_LOCATION_TYPE( CPU_THREAD, "CPU thread" ) \
213 SCOREP_LOCATION_TYPE( GPU, "GPU" ) \
214 SCOREP_LOCATION_TYPE( METRIC, "metric location" ) \
219 #define SCOREP_LOCATION_TYPE( NAME, name_string ) SCOREP_LOCATION_TYPE_ ## NAME,
221 #undef SCOREP_LOCATION_TYPE
223 SCOREP_NUMBER_OF_LOCATION_TYPES,
260 #define SCOREP_ALL_TARGET_RANKS -1
266 #define SCOREP_INVALID_ROOT_RANK -1
286 #define SCOREP_PARADIGM_CLASSES \
287 SCOREP_PARADIGM_CLASS( MPP, "multi-process", PROCESS ) \
288 SCOREP_PARADIGM_CLASS( THREAD_FORK_JOIN, "fork/join", THREAD_FORK_JOIN ) \
289 SCOREP_PARADIGM_CLASS( THREAD_CREATE_WAIT, "create/wait", THREAD_CREATE_WAIT ) \
290 SCOREP_PARADIGM_CLASS( ACCELERATOR, "accelerator", ACCELERATOR )
295 #define SCOREP_PARADIGM_CLASS( NAME, name, OTF2_NAME ) \
296 SCOREP_PARADIGM_CLASS_ ## NAME,
297 SCOREP_PARADIGM_CLASSES
299 #undef SCOREP_PARADIGM_CLASS
327 #define SCOREP_PARADIGMS \
328 SCOREP_PARADIGM( MEASUREMENT, "measurement", MEASUREMENT_SYSTEM ) \
329 SCOREP_PARADIGM( USER, "user", USER ) \
330 SCOREP_PARADIGM( COMPILER, "compiler", COMPILER ) \
331 SCOREP_PARADIGM( SAMPLING, "sampling", SAMPLING ) \
332 SCOREP_PARADIGM( MEMORY, "memory", NONE ) \
333 SCOREP_PARADIGM( LIBWRAP, "libwrap", NONE ) \
334 SCOREP_PARADIGM( MPI, "mpi", MPI ) \
335 SCOREP_PARADIGM( SHMEM, "shmem", SHMEM ) \
336 SCOREP_PARADIGM( OPENMP, "openmp", OPENMP ) \
337 SCOREP_PARADIGM( PTHREAD, "pthread", PTHREAD ) \
338 SCOREP_PARADIGM( ORPHAN_THREAD, "orphan thread", UNKNOWN ) \
339 SCOREP_PARADIGM( CUDA, "cuda", CUDA ) \
340 SCOREP_PARADIGM( OPENCL, "opencl", OPENCL ) \
341 SCOREP_PARADIGM( OPENACC, "openacc", OPENACC ) \
342 SCOREP_PARADIGM( IO, "io", NONE ) \
343 SCOREP_PARADIGM( KOKKOS, "kokkos", KOKKOS )
348 #define SCOREP_PARADIGM( NAME, name_str, OTF2_NAME ) \
349 SCOREP_PARADIGM_ ## NAME,
352 #undef SCOREP_PARADIGM
431 #define SCOREP_REGION_TYPES \
432 SCOREP_REGION_TYPE( COLL_ONE2ALL, "one2all" ) \
433 SCOREP_REGION_TYPE( COLL_ALL2ONE, "all2one" ) \
434 SCOREP_REGION_TYPE( COLL_ALL2ALL, "all2all" ) \
435 SCOREP_REGION_TYPE( COLL_OTHER, "other collective" ) \
436 SCOREP_REGION_TYPE( POINT2POINT, "point2point" ) \
437 SCOREP_REGION_TYPE( PARALLEL, "parallel" ) \
438 SCOREP_REGION_TYPE( SECTIONS, "sections" ) \
439 SCOREP_REGION_TYPE( SECTION, "section" ) \
440 SCOREP_REGION_TYPE( WORKSHARE, "workshare" ) \
441 SCOREP_REGION_TYPE( SINGLE, "single" ) \
442 SCOREP_REGION_TYPE( MASTER, "master" ) \
443 SCOREP_REGION_TYPE( CRITICAL, "critical" ) \
444 SCOREP_REGION_TYPE( ATOMIC, "atomic" ) \
445 SCOREP_REGION_TYPE( BARRIER, "barrier" ) \
446 SCOREP_REGION_TYPE( IMPLICIT_BARRIER, "implicit barrier" ) \
447 SCOREP_REGION_TYPE( FLUSH, "flush" ) \
448 SCOREP_REGION_TYPE( CRITICAL_SBLOCK, "critical sblock" ) \
449 SCOREP_REGION_TYPE( SINGLE_SBLOCK, "single sblock" ) \
450 SCOREP_REGION_TYPE( WRAPPER, "wrapper" ) \
451 SCOREP_REGION_TYPE( TASK, "task" ) \
452 SCOREP_REGION_TYPE( TASK_UNTIED, "untied task" ) \
453 SCOREP_REGION_TYPE( TASK_WAIT, "taskwait" ) \
454 SCOREP_REGION_TYPE( TASK_CREATE, "task create" ) \
455 SCOREP_REGION_TYPE( ORDERED, "ordered" ) \
456 SCOREP_REGION_TYPE( ORDERED_SBLOCK, "ordered sblock" ) \
457 SCOREP_REGION_TYPE( ARTIFICIAL, "artificial" ) \
458 SCOREP_REGION_TYPE( RMA, "rma" ) \
459 SCOREP_REGION_TYPE( THREAD_CREATE, "thread create" ) \
460 SCOREP_REGION_TYPE( THREAD_WAIT, "thread wait" ) \
461 SCOREP_REGION_TYPE( ALLOCATE, "allocate" ) \
462 SCOREP_REGION_TYPE( DEALLOCATE, "deallocate" ) \
463 SCOREP_REGION_TYPE( REALLOCATE, "reallocate" ) \
464 SCOREP_REGION_TYPE( FILE_IO, "file_io" ) \
465 SCOREP_REGION_TYPE( FILE_IO_METADATA, "file_io metadata" )
468 #define SCOREP_REGION_TYPE( NAME, name_str ) \
469 SCOREP_REGION_ ## NAME,
473 SCOREP_REGION_UNKNOWN = 0,
474 SCOREP_REGION_FUNCTION,
480 SCOREP_REGION_DYNAMIC,
481 SCOREP_REGION_DYNAMIC_PHASE,
482 SCOREP_REGION_DYNAMIC_LOOP,
483 SCOREP_REGION_DYNAMIC_FUNCTION,
484 SCOREP_REGION_DYNAMIC_LOOP_PHASE,
491 #undef SCOREP_REGION_TYPE
506 #define SCOREP_RMA_SYNC_TYPES \
507 SCOREP_RMA_SYNC_TYPE( MEMORY, memory, "memory" ) \
508 SCOREP_RMA_SYNC_TYPE( NOTIFY_IN, notify_in, "notify in" ) \
509 SCOREP_RMA_SYNC_TYPE( NOTIFY_OUT, notify_out, "notify out" )
513 #define SCOREP_RMA_SYNC_TYPE( upper, lower, name ) SCOREP_RMA_SYNC_TYPE_ ## upper,
514 SCOREP_RMA_SYNC_TYPES
515 #undef SCOREP_RMA_SYNC_TYPE
533 #define SCOREP_RMA_SYNC_LEVELS \
534 SCOREP_RMA_SYNC_LEVEL( NONE, none, "none", 0 ) \
535 SCOREP_RMA_SYNC_LEVEL( PROCESS, process, "process", 1 << 0 ) \
536 SCOREP_RMA_SYNC_LEVEL( MEMORY, memory, "memory", 1 << 1 )
540 #define SCOREP_RMA_SYNC_LEVEL( upper, lower, name, value ) \
541 SCOREP_RMA_SYNC_LEVEL_ ## upper = value,
543 SCOREP_RMA_SYNC_LEVELS
544 #undef SCOREP_RMA_SYNC_LEVEL
565 #define SCOREP_RMA_ATOMIC_TYPES \
566 SCOREP_RMA_ATOMIC_TYPE( ACCUMULATE, accumulate, "accumulate" ) \
567 SCOREP_RMA_ATOMIC_TYPE( INCREMENT, increment, "increment" ) \
568 SCOREP_RMA_ATOMIC_TYPE( TEST_AND_SET, test_and_set, "test and set" ) \
569 SCOREP_RMA_ATOMIC_TYPE( COMPARE_AND_SWAP, compare_and_swap, "compare and swap" ) \
570 SCOREP_RMA_ATOMIC_TYPE( SWAP, swap, "swap" ) \
571 SCOREP_RMA_ATOMIC_TYPE( FETCH_AND_ADD, fetch_and_add, "fetch and add" ) \
572 SCOREP_RMA_ATOMIC_TYPE( FETCH_AND_INCREMENT, fetch_and_increment, "fetch and increment" ) \
573 SCOREP_RMA_ATOMIC_TYPE( ADD, add, "add" ) \
574 SCOREP_RMA_ATOMIC_TYPE( FETCH_AND_ACCUMULATE, fetch_and_op, "fetch and accumulate with user-specified operator" )
578 #define SCOREP_RMA_ATOMIC_TYPE( upper, lower, name ) SCOREP_RMA_ATOMIC_TYPE_ ## upper,
579 SCOREP_RMA_ATOMIC_TYPES
580 #undef SCOREP_RMA_ATOMIC_TYPE
582 SCOREP_INVALID_RMA_ATOMIC_TYPE
635 #define SCOREP_IO_PARADIGMS \
636 SCOREP_IO_PARADIGM( POSIX, posix, "POSIX" ) \
637 SCOREP_IO_PARADIGM( ISOC, isoc, "ISOC" ) \
638 SCOREP_IO_PARADIGM( MPI, mpi, "MPI-IO" )
645 #define SCOREP_IO_PARADIGM( upper, lower, id_name ) SCOREP_IO_PARADIGM_ ## upper,
647 #undef SCOREP_IO_PARADIGM
648 SCOREP_INVALID_IO_PARADIGM_TYPE
652 #define SCOREP_NUM_IO_PARADIGMS SCOREP_INVALID_IO_PARADIGM_TYPE
817 #define SCOREP_IPC_DATATYPES \
818 SCOREP_IPC_DATATYPE( BYTE ) \
819 SCOREP_IPC_DATATYPE( CHAR ) \
820 SCOREP_IPC_DATATYPE( UNSIGNED_CHAR ) \
821 SCOREP_IPC_DATATYPE( INT ) \
822 SCOREP_IPC_DATATYPE( UNSIGNED ) \
823 SCOREP_IPC_DATATYPE( INT32_T ) \
824 SCOREP_IPC_DATATYPE( UINT32_T ) \
825 SCOREP_IPC_DATATYPE( INT64_T ) \
826 SCOREP_IPC_DATATYPE( UINT64_T ) \
827 SCOREP_IPC_DATATYPE( DOUBLE )
831 #define SCOREP_IPC_DATATYPE( datatype ) \
832 SCOREP_IPC_ ## datatype,
834 #undef SCOREP_IPC_DATATYPE
835 SCOREP_IPC_NUMBER_OF_DATATYPES
850 #define SCOREP_IPC_OPERATIONS \
851 SCOREP_IPC_OPERATION( BAND ) \
852 SCOREP_IPC_OPERATION( BOR ) \
853 SCOREP_IPC_OPERATION( MIN ) \
854 SCOREP_IPC_OPERATION( MAX ) \
855 SCOREP_IPC_OPERATION( SUM )
859 #define SCOREP_IPC_OPERATION( op ) \
861 SCOREP_IPC_OPERATIONS
862 #undef SCOREP_IPC_OPERATION
863 SCOREP_IPC_NUMBER_OF_OPERATIONS
SCOREP_AnyHandle SCOREP_RegionHandle
Definition: SCOREP_PublicTypes.h:145
Definition: SCOREP_PublicTypes.h:199
Definition: SCOREP_PublicTypes.h:186
Write operations on the file will complete according to the requirements of synchronized I/O data int...
Definition: SCOREP_PublicTypes.h:736
SCOREP_RmaAtomicType
specifies a RMA Atomic Operation Type.
Definition: SCOREP_PublicTypes.h:576
Read access to a file won't update its last access time.
Definition: SCOREP_PublicTypes.h:741
Execute-only access.
Definition: SCOREP_PublicTypes.h:668
Open file in append mode which means I/O write operations are automatically performed at the end of t...
Definition: SCOREP_PublicTypes.h:724
Open operation will fail if pathname is not a directory.
Definition: SCOREP_PublicTypes.h:685
SCOREP_RegionType
specifies a Region
Definition: SCOREP_PublicTypes.h:471
Definition: SCOREP_PublicTypes.h:201
uint32_t SCOREP_LineNo
Definition: SCOREP_PublicTypes.h:75
Definition: SCOREP_PublicTypes.h:607
Definition: SCOREP_PublicTypes.h:190
The I/O operation was performed in a non-blocking mode.
Definition: SCOREP_PublicTypes.h:791
Definition: SCOREP_PublicTypes.h:194
Definition: SCOREP_PublicTypes.h:367
Gives the advice that no reposition will happen on this I/O handle. E.g., no seek operation or simila...
Definition: SCOREP_PublicTypes.h:703
Definition: SCOREP_PublicTypes.h:884
Definition: SCOREP_PublicTypes.h:192
struct SCOREP_Task * SCOREP_TaskHandle
Definition: SCOREP_PublicTypes.h:172
No flag is set.
Definition: SCOREP_PublicTypes.h:679
SCOREP_IoOperationMode
Definition: SCOREP_PublicTypes.h:768
If the file does not exist, it will be created.
Definition: SCOREP_PublicTypes.h:681
Definition: SCOREP_PublicTypes.h:224
Delete the file when closing the {IoHandle}.
Definition: SCOREP_PublicTypes.h:743
SCOREP_LockType
Definition: SCOREP_PublicTypes.h:230
Definition: SCOREP_PublicTypes.h:198
Definition: SCOREP_PublicTypes.h:365
Write operation.
Definition: SCOREP_PublicTypes.h:773
Ensure that the file size can be represented by a 64-bit datatype.
Definition: SCOREP_PublicTypes.h:699
Definition: SCOREP_PublicTypes.h:627
Definition: SCOREP_PublicTypes.h:354
Definition: SCOREP_PublicTypes.h:234
Definition: SCOREP_PublicTypes.h:881
Definition: SCOREP_PublicTypes.h:756
Definition: SCOREP_PublicTypes.h:754
SCOREP_AnyHandle SCOREP_SourceFileHandle
Definition: SCOREP_PublicTypes.h:108
Definition: SCOREP_PublicTypes.h:760
Definition: SCOREP_PublicTypes.h:191
Definition: SCOREP_PublicTypes.h:238
Create an unnamed temporary file.
Definition: SCOREP_PublicTypes.h:697
SCOREP_SamplingSetClass
Class of locations which recorded a sampling set.
Definition: SCOREP_PublicTypes.h:590
Synchronization/flush operation (request and completion).
Definition: SCOREP_PublicTypes.h:775
Definition: SCOREP_PublicTypes.h:182
SCOREP_AnyHandle SCOREP_ParadigmHandle
Definition: SCOREP_PublicTypes.h:157
Definition: SCOREP_PublicTypes.h:240
uint32_t SCOREP_Allocator_MovableMemory
Definition: SCOREP_PublicTypes.h:90
SCOREP_Allocator_MovableMemory SCOREP_AnyHandle
Definition: SCOREP_PublicTypes.h:102
Definition: SCOREP_PublicTypes.h:301
Unspecified access mode.
Definition: SCOREP_PublicTypes.h:660
Definition: SCOREP_PublicTypes.h:188
SCOREP_AnyHandle SCOREP_MetricHandle
Definition: SCOREP_PublicTypes.h:120
Search-only access.
Definition: SCOREP_PublicTypes.h:670
Definition: SCOREP_PublicTypes.h:369
No special semantics.
Definition: SCOREP_PublicTypes.h:787
Enable close-on-exec flag.
Definition: SCOREP_PublicTypes.h:721
Definition: SCOREP_PublicTypes.h:202
SCOREP_RmaSyncLevel
specifies a RMA synchronization level, used by RMA records to be passed to SCOREP_Rma*() functions...
Definition: SCOREP_PublicTypes.h:538
SCOREP_Ipc_Datatype
specifies an inter process communication data types
Definition: SCOREP_PublicTypes.h:829
Definition: SCOREP_PublicTypes.h:197
Definition: SCOREP_PublicTypes.h:200
Definition: SCOREP_PublicTypes.h:193
SCOREP_ParadigmClass
defines classes of paradigms that are monitored Types:
Definition: SCOREP_PublicTypes.h:293
Definition: SCOREP_PublicTypes.h:593
Definition: SCOREP_PublicTypes.h:189
Definition: SCOREP_PublicTypes.h:187
Definition: SCOREP_PublicTypes.h:752
Definition: SCOREP_PublicTypes.h:632
Truncate file to length 0 if possible.
Definition: SCOREP_PublicTypes.h:683
Definition: SCOREP_PublicTypes.h:181
Definition: SCOREP_PublicTypes.h:366
No flag is set.
Definition: SCOREP_PublicTypes.h:719
Definition: SCOREP_PublicTypes.h:594
Definition: SCOREP_PublicTypes.h:605
Definition: SCOREP_PublicTypes.h:613
SCOREP_IoSeekOption
Definition: SCOREP_PublicTypes.h:749
Definition: SCOREP_PublicTypes.h:592
Write operations on the file will complete according to the requirements of synchronized I/O file int...
Definition: SCOREP_PublicTypes.h:733
Definition: SCOREP_PublicTypes.h:624
Enable signal-driven I/O.
Definition: SCOREP_PublicTypes.h:729
Definition: SCOREP_PublicTypes.h:611
SCOREP_IoAccessMode
Definition: SCOREP_PublicTypes.h:657
SCOREP_Ipc_Operation
specifies an inter process communication operation for reduce function
Definition: SCOREP_PublicTypes.h:857
I/O operations (including the creation) will fail if they would block the issuing process...
Definition: SCOREP_PublicTypes.h:727
SCOREP_IoStatusFlag
Definition: SCOREP_PublicTypes.h:716
Definition: SCOREP_PublicTypes.h:609
Read-only access.
Definition: SCOREP_PublicTypes.h:662
File is only a location in the filesystem tree and is not suitable for reading and writing...
Definition: SCOREP_PublicTypes.h:695
SCOREP_IoParadigmType
Definition: SCOREP_PublicTypes.h:643
SCOREP_Substrates_RequirementFlag
Definition: SCOREP_PublicTypes.h:878
SCOREP_AnyHandle SCOREP_SamplingSetHandle
Definition: SCOREP_PublicTypes.h:133
Definition: SCOREP_PublicTypes.h:762
#define SCOREP_LOCATION_TYPES
Definition: SCOREP_PublicTypes.h:211
Read-write access.
Definition: SCOREP_PublicTypes.h:666
The I/O operation was performed collectively over the communicator of the referenced {IoHandle} handl...
Definition: SCOREP_PublicTypes.h:794
Ensure that this call creates the file.
Definition: SCOREP_PublicTypes.h:687
Instruct I/O operations to reduce caching effects, e.g., direct file I/O.
Definition: SCOREP_PublicTypes.h:739
int SCOREP_MpiRank
Definition: SCOREP_PublicTypes.h:246
SCOREP_IoCreationFlag
Definition: SCOREP_PublicTypes.h:676
Definition: SCOREP_PublicTypes.h:517
uint64_t SCOREP_MpiRequestId
Definition: SCOREP_PublicTypes.h:252
Definition: SCOREP_PublicTypes.h:880
Definition: SCOREP_PublicTypes.h:196
Definition: SCOREP_PublicTypes.h:180
Definition: SCOREP_PublicTypes.h:183
SCOREP_IoOperationFlag
Definition: SCOREP_PublicTypes.h:784
SCOREP_CollectiveType
Types to specify the used collectives in calls to SCOREP_MpiCollectiveBegin and SCOREP_RmaCollectiveB...
Definition: SCOREP_PublicTypes.h:178
int64_t SCOREP_ExitStatus
Definition: SCOREP_PublicTypes.h:61
Write-only access.
Definition: SCOREP_PublicTypes.h:664
Definition: SCOREP_PublicTypes.h:630
Gives the advice that this will be the only active {IoHandle} of the {IoParadigmType} which will oper...
Definition: SCOREP_PublicTypes.h:709
If pathname is a symbolic link, then the open operation will fail.
Definition: SCOREP_PublicTypes.h:692
Read operation.
Definition: SCOREP_PublicTypes.h:771
Definition: SCOREP_PublicTypes.h:185
Definition: SCOREP_PublicTypes.h:488
File is a terminal device and should not be promoted to a controlling terminal, if none existed befor...
Definition: SCOREP_PublicTypes.h:690
SCOREP_MetricScope
Types to be used in defining the scope of a scoped sampling set.
Definition: SCOREP_PublicTypes.h:602
Definition: SCOREP_PublicTypes.h:758
SCOREP_RmaSyncType
Type of direct RMA synchronization call.
Definition: SCOREP_PublicTypes.h:511
Definition: SCOREP_PublicTypes.h:882
The I/O operation was performed in a non-collective mode. (default)
Definition: SCOREP_PublicTypes.h:796
The I/O operation was performed in a blocking mode (default).
Definition: SCOREP_PublicTypes.h:789
SCOREP_ParadigmType
defines paradigms that are be monitored
Definition: SCOREP_PublicTypes.h:346
SCOREP_ParameterType
defines types to be used in defining a parameter for parameter based profiling (SCOREP_Definitions_Ne...
Definition: SCOREP_PublicTypes.h:363
Definition: SCOREP_PublicTypes.h:195
Definition: SCOREP_PublicTypes.h:184
SCOREP_MetricOccurrence
Types to be used in defining the occurrence of a sampling set.
Definition: SCOREP_PublicTypes.h:621
SCOREP_LocationType
Definition: SCOREP_PublicTypes.h:217