text
stringlengths
494
1.02k
cancellation is disabled and the cancel construct and cancellation points are effectively ignored. 11 The behavior of the program is implementation defined if OMP_CANCELLATION is set to neither 12 true nor false. 13 Cross References 14 • cancel directive, see Section 16.1 15 • cancel-var ICV, see Table 2.1 16 21.2.7 OMP...
g, see 25 Section 1.3 and Chapter 12. 26 In parallel regions, references by the primary thread are to the copy of the variable in the thread 27 that encountered the parallel region. 28 During a sequential part, references are to the initial thread’s copy of the variable. The values of 29 data in the initial thread’s co...
task_reduction clause or a reduction clause with task as 1 the reduction-modifier that is specified on a construct that corresponds to a region in which the 2 region of the participating task is closely nested must match each list item. The construct that 3 corresponds to the innermost enclosing region that meets this c...
atisfied if the operators in expr have precedence greater than binop, or by using parentheses 9 around expr or subexpressions of expr. 10 • The expression expr binop x must be numerically equivalent to (expr) binop x. This requirement 11 is satisfied if the operators in expr have precedence equal to or greater than binop...
base language. 26 program order An ordering of operations performed by the same thread as determined by the 27 execution sequence of operations specified by the base language. 28 2 OpenMP API – Version 5.2 November 2021 COMMENT: For versions of C and C++ that include base language 1 support for threading, program order ...
cifiers (see Section 3.1). 3 • The omp_all_memory reserved locator was added (see Section 3.1), and the depend clause 4 was extended to allow its use (see Section 15.9.5). 5 • Support for private and firstprivate as an argument to the default clause in C and 6 C++ was added (see Section 5.4.1). 7 • Support was added so ...
near-modifier(list) was deprecated and the step modifier 16 was added for specifying the linear step (see Section 5.4.6). 17 • The minus (-) operator for reductions was deprecated (see Section 5.5.5). 18 • The syntax of modifiers without comma separators in the map clause was deprecated (see 19 Section 5.8.3). 20 • To sup...
se flush, and it will load any value of a shared variable propagated by a 11 release flush that synchronizes with it into its temporary view so that it may be subsequently read. 12 Therefore, release and acquire flushes may also be used to guarantee that a value written to a 13 variable by one thread may be read by a seco...
ialized with the value ompt_data_none. 3 This runtime entry point is async signal safe. 4 Between a parallel-begin event and an implicit-task-begin event, a call to 5 ompt_get_parallel_info(0,...) may return information about the outer parallel team or 6 the new parallel team. 7 If a thread is in the state ompt_state_w...
ved. 17 • The definition of the nest-var, dyn-var, nthreads-var and run-sched-var internal control variables 18 (ICVs) were modified to provide one copy of these ICVs per task instead of one copy for the 19 whole program (see Chapter 2). The omp_set_num_threads, omp_set_nested, and 20 omp_set_dynamic runtime library rout...
e variable passed 32 by reference in callback and ompt_get_callback returns 1; otherwise, it returns 0. If 33 ompt_get_callback returns 0, the value of the variable passed by reference as callback is 34 undefined. 35 514 OpenMP API – Version 5.2 November 2021 Description of Arguments 1 The event argument indicates the e...
eger. 24 The stride must evaluate to a positive integer. 25 When the size of the array dimension is not known, the length must be specified explicitly. 26 When the stride is absent it defaults to 1. 27 When the length is absent it defaults to ⌈⌈(size − lower-bound)/stride⌉⌉, where size is the size of the 28 array dimens...
17 range-decl of each associated loop has the value that it would have if the set of the associated loops 18 was executed sequentially. 19 When an if clause is present and the if clause expression evaluates to false, undeferred tasks are 20 generated. The use of a variable in an if clause expression causes an implicit...
Clauses 23 Clause groups 24 Properties: unique, inarguable Members: simd, threads 25 Directives 26 ordered 27 Semantics 28 The parallelization-level clause grouping defines a set of clauses that indicate the level of 29 parallelization with which to associate a construct. 30 Cross References 31 • ordered directive, see ...
indirect Clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 8 Informational and Utility Directives 210 8.1 at Clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 8.2 requires Directive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 8.2.1 requireme...
Fortran Variables with predetermined data-sharing attributes may not be listed in data-sharing attribute 15 clauses, except for the cases listed below. For these exceptions only, listing a predetermined 16 variable in a data-sharing attribute clause is allowed and overrides the variable’s predetermined 17 data-sharing ...
lay_affinity, 370 OMP_DISPLAY_ENV, 615 omp_display_env, 438 OMP_DYNAMIC, 600 omp_free, 430 omp_fulfill_event, 414 omp_get_active_level, 362 omp_get_affinity_format, 369 omp_get_ancestor_thread_num, 360 omp_get_cancellation, 353 omp_get_default_allocator, 428 omp_get_default_device, 382 omp_get_device_num, 384 omp_get_d...
performed. 24 Fortran The omp_target_memcpy_rect_async routine requires an explicit interface and so might 25 not be provided in omp_lib.h. 26 Fortran Execution Model Events 27 The target-data-op-begin event occurs before a thread initiates a data transfer in the 28 omp_target_memcpy_rect_async region. 29 The target-d...
pe signature ompt_callback_masked_t. 31 Cross References 32 • ompt_callback_masked_t, see Section 19.5.2.12 33 • ompt_scope_endpoint_t, see Section 19.4.4.11 34 • filter clause, see Section 10.5.1 35 238 OpenMP API – Version 5.2 November 2021 10.5.1 filter Clause 1 Name: filter Properties: unique 2 Arguments 3 Name Typ...
t item type default 11 Directives 12 scan 13 Semantics 14 The inclusive clause is used on a separating directive that separates a structured block into two 15 structured block sequences. The clause determines the association of the structured block sequence 16 that precedes the directive on which the clause appears to ...
on-identifier. 22 After the end of the region, the original list item is updated with the values of the private copies 23 using the combiner associated with the reduction-identifier. 24 If reduction-modifier is not present or the default reduction-modifier is present, the behavior is 25 as follows. For parallel and worksha...
em that appears in a reduction clause of a teams construct must not appear in a 25 firstprivate clause on a distribute construct if any of the distribute regions that 26 arise from the distribute construct ever bind to any of the teams regions that arise from the 27 teams construct. 28 • A list item that appears in a r...
n unit, 21 omp_alloc and omp_aligned_alloc invocations that appear in target regions must not 22 pass omp_null_allocator as the allocator argument, which must be a constant expression 23 that evaluates to one of the predefined memory allocator values. The alignment argument to 24 omp_aligned_alloc must be a power of two...
sk exists that modifies it. 22 As another example, if a lock acquire and release happen in different parts of a task region, no 23 attempt should be made to acquire the same lock in any part of another task that the executing 24 thread may schedule. Otherwise, a deadlock is possible. A similar situation can occur when a ...
or routine creates a new allocator that is associated with the 25 memspace memory space and returns a handle to it. All allocations through the created allocator 26 will behave according to the allocator traits specified in the traits argument. The number of traits in 27 the traits argument is specified by the ntraits ar...
out min omp_priv = Maximal representable number in the reduction list item type omp_out = omp_in < omp_out ? omp_in : omp_out C / C++ Fortran Table 5.2 lists each reduction identifier that is implicitly declared for numeric and logical types and 1 its semantic initializer value. The actual initializer value is that valu...
Section 6.5 5 Fortran 6.8 uses_allocators Clause 6 Name: uses_allocators Properties: data-environment attribute, data- sharing attribute 7 Arguments 8 Name Type Properties allocator expression of allocator_handle type default 9 Modifiers 10 Name Modifies Type Properties mem-space Generic Complex, name: memspace Arguments...
callback for each 30 occurrence of a taskwait-complete event. This callback has the type signature 31 ompt_callback_task_schedule_t with ompt_taskwait_complete as its 32 prior_task_status argument. 33 Restrictions 34 Restrictions to the taskwait construct are as follows: 35 • The mutexinoutset dependence-type may not a...
h returns the place number of the place to which the current thread is 33 bound. 34 CHAPTER 19. OMPT INTERFACE 517 Format 1 C / C++ typedef int (*ompt_get_place_num_t) (void); 2 C / C++ Semantics 3 When the current thread is bound to a place, ompt_get_place_num returns the place number 4 associated with the thread. The...
hint_t omp_lock_hint_t; 9 C / C++ Fortran integer, parameter :: omp_lock_hint_kind = omp_sync_hint_kind 10 11 integer (kind=omp_sync_hint_kind), & 12 parameter :: omp_sync_hint_none = & 13 int(Z’0’, kind=omp_sync_hint_kind) 14 integer (kind=omp_lock_hint_kind), & 15 parameter :: omp_lock_hint_none = omp_sync_hint_none ...
r ICV. 22 Cross References 23 • place-partition-var ICV, see Table 2.1 24 CHAPTER 18. RUNTIME LIBRARY ROUTINES 367 18.3.7 omp_get_partition_place_nums 1 Summary 2 The omp_get_partition_place_nums routine returns the list of place numbers 3 corresponding to the places in the place-partition-var ICV of the innermost impl...
the numerical identifiers of each processor 11 associated with the place numbered place_num. The numerical identifiers are non-negative and 12 their meaning is implementation defined. The numerical identifiers are returned in the array ids and 13 their order in the array is implementation defined. The array must be sufficient...
cation and that includes a 14 442 OpenMP API – Version 5.2 November 2021 definition of ompt_start_tool. 1 If the value of tool-var is enabled, the OpenMP implementation must check if a tool has provided 2 an implementation of ompt_start_tool. The OpenMP implementation first checks if a 3 tool-provided implementation of o...
ion 17.1 for the restrictions on nesting. 2 closely nested region A region nested inside another region with no parallel region nested between 3 them. 4 strictly nested region A region nested inside another region with no other explicit region nested between 5 them. 6 all threads All OpenMP threads participating in the...
alue of 5 max-active-levels-var is set to 1. The behavior of the program is implementation defined if the 6 value of OMP_NESTED is neither true nor false. 7 If both the OMP_NESTED and OMP_MAX_ACTIVE_LEVELS environment variables are set, the 8 value of OMP_NESTED is false, and the value of OMP_MAX_ACTIVE_LEVELS is greate...
oyed with omp_destroy_allocator results in unspecified 12 behavior. 13 Cross References 14 • Memory Allocators, see Section 6.2 15 • omp_destroy_allocator, see Section 18.13.3 16 18.13.8 omp_calloc and omp_aligned_calloc 17 Summary 18 The omp_calloc and omp_aligned_calloc routines request a zero initialized memory 19 al...
in 3 the program unit. 4 • If a threadprivate variable or a threadprivate common block is declared with the BIND attribute, 5 the corresponding C entities must also be specified in a threadprivate directive in the C 6 program. 7 • A variable may only appear as an argument in a threadprivate directive in the scope in 8 w...
ICV is a list. The runtime call omp_set_num_threads sets 4 the value of the first element of this list, and omp_get_max_threads retrieves the value of 5 the first element of this list. 6 • Detailed values in the place-partition-var ICV are retrieved using the listed runtime calls. 7 CHAPTER 2. INTERNAL CONTROL VARIABLES ...
API – Version 5.2 November 2021 • nogroup clause, see Section 15.7 1 • num_tasks clause, see Section 12.6.2 2 • priority clause, see Section 12.4 3 • private clause, see Section 5.4.3 4 • reduction clause, see Section 5.5.8 5 • shared clause, see Section 5.4.2 6 • task directive, see Section 12.5 7 • taskgroup directi...
5 7.6.2 nocontext Clause 16 Name: nocontext Properties: unique 17 Arguments 18 Name Type Properties do-not-update-context expression of logical type default 19 Directives 20 dispatch 21 Semantics 22 If do-not-update-context evaluates to true, the construct on which the nocontext clause appears 23 is not added to the co...
1 • ompd_rc_callback if a callback returned an unexpected error, which leads to a failure of the 1 query; 2 • ompd_rc_needs_state_tracking if the information cannot be provided while the 3 debug-var is disabled; 4 • ompd_rc_ok on success; or 5 • ompd_rc_error for any other error. 6 20.5.1 Per OMPD Library Initializatio...
evenly, the exact number of threads in a particular 6 subpartition is implementation defined. 7 The determination of whether the affinity request can be fulfilled is implementation defined. If the 8 affinity request cannot be fulfilled, then the affinity of threads in the team is implementation defined. 9 10 Note – Wrap around i...
ent loop schedules, 95 construct syntax, 48 constructs allocators, 180 atomic, 311 barrier, 301 cancel, 332 cancellation constructs, 332 cancellation point, 336 combined constructs, 343 composite constructs, 343 642 OpenMP API – Version 5.2 November 2021 critical, 299 depobj, 322 device constructs, 275 dispatch, 200 di...
n is 16 implementation defined (see Section 5.2). 17 Fortran • is_device_ptr clause: Support for pointers created outside of the OpenMP device data 18 management routines is implementation defined (see Section 5.4.7). 19 Chapter 6: 20 • Memory spaces: The actual storage resources that each memory space defined in Table 6....
11 Table 2.4 shows the override relationships among construct clauses and ICVs. The table only lists 12 ICVs that can be overridden by a clause. 13 TABLE 2.4: ICV Override Relationships ICV construct clause, if used bind-var proc_bind def-allocator-var allocate, allocator nteams-var num_teams nthreads-var num_threads ...
ression evaluated to false, and the previous constraints are already met, the task is executed 10 immediately after generation of the task. 11 A program that relies on any other assumption about task scheduling is non-conforming. 12 13 Note – Task scheduling points dynamically divide task regions into parts. Each part ...
opriate, 16 codeptr_ra may be NULL. 17 Cross References 18 • ompt_data_t, see Section 19.4.4.4 19 • flush directive, see Section 15.8.5 20 19.5.2.18 ompt_callback_cancel_t 21 Summary 22 The ompt_callback_cancel_t type is used for callbacks that are dispatched for cancellation, 23 cancel and discarded-task events. 24 Fo...
cs 13 The full clause specifies that the associated loop is fully unrolled. The construct is replaced by a 14 structured block that only contains n instances of its loop body, one for each of the n logical 15 iterations of the associated loop and in their logical iteration order. 16 Restrictions 17 Restrictions to the f...
. . . . . 540 20.2 Activating a Third-Party Tool . . . . . . . . . . . . . . . . . . . . . . . . . . 540 20.2.1 Enabling Runtime Support for OMPD . . . . . . . . . . . . . . . . . . . . . 540 20.2.2 ompd_dll_locations . . . . . . . . . . . . . . . . . . . . . . . . . . 540 20.2.3 ompd_dll_locations_valid . . . . . . ....
.1 8 • teams directive, see Section 10.2 9 21.6.2 OMP_TEAMS_THREAD_LIMIT 10 The OMP_TEAMS_THREAD_LIMIT environment variable sets the maximum number of OpenMP 11 threads to use in each contention group created by a teams construct by setting the 12 teams-thread-limit-var ICV. The value of this environment variable must ...
e current team. The binding region of the 12 cancel region is the innermost enclosing region of the type that corresponds to 13 cancel-directive-name. 14 Semantics 15 The cancel construct activates cancellation of the innermost enclosing region of the type 16 specified by cancel-directive-name, which must be the directi...
fies a wait on completion of the taskgroup set associated with the 2 taskgroup region. When a thread encounters a taskgroup construct, it starts executing the 3 region. 4 An implicit task scheduling point occurs at the end of the taskgroup region. The current task is 5 suspended at the task scheduling point until all ta...
loop transformation construct that appears inside a loop nest is replaced according to its 22 semantics before any loop can be associated with a loop-associated directive that is applied to the 23 loop nest. The depth of the loop nest is determined according to the loops in the loop nest, after any 24 such replacement...
17 implementation-specific one. For the schedule kinds static, dynamic, and guided, the 18 chunk_size is set to the value of the second argument, or to the default chunk_size if the value of the 19 second argument is less than 1; for the schedule kind auto, the second argument has no meaning; 20 for implementation-speci...
askloop-chunk-begin event in that thread. 11 The callback binds to the explicit task executing the iterations. The callback has type signature 12 ompt_callback_dispatch_t. 13 Restrictions 14 Restrictions to the taskloop construct are as follows: 15 • The reduction-modifier must be default. 16 • The conditional lastpriva...
ection 19.6.2.6 11 • ompt_stop_trace_t, see Section 19.6.2.9 12 • ompt_translate_time_t, see Section 19.6.2.3 13 19.3 Finalizing a First-Party Tool 14 If the OMPT interface state is active, the tool finalizer, which has type signature 15 ompt_finalize_t and is specified by the finalize field in the 16 ompt_start_tool_resul...
• use clause, see Section 14.1.3 35 292 OpenMP API – Version 5.2 November 2021 14.1.1 OpenMP Foreign Runtime Identifiers 1 An OpenMP foreign runtime identifier, foreign-runtime-id, is a base language string literal or a 2 compile-time constant OpenMP integer expression. Allowed values for foreign-runtime-id include 3 th...
ked region. 7 • A barrier region may not be closely nested inside a worksharing, task, taskloop, 8 critical, ordered, atomic, or masked region. 9 • A masked region may not be closely nested inside a worksharing, atomic, task, or 10 taskloop region. 11 • An ordered region that corresponds to an ordered construct without...
e equivalent (the first line represents the position of the first 9 columns): 15 c23456789 16 !$ 10 iam = omp_get_thread_num() + 17 !$ & index 18 19 #ifdef _OPENMP 20 10 iam = omp_get_thread_num() + 21 & index 22 #endif 23 24 25 Fortran 70 OpenMP API – Version 5.2 November 2021 Fortran 3.3.2 Free Source Form Conditional ...
nt and the if clause expression 16 evaluates to false. 17 The teams construct creates a league of teams, where each team is an initial team that comprises 18 an initial thread that executes the teams region. Each initial thread executes sequentially, as if the 19 code encountered is part of an initial task region that ...
a reduction-scoping or lastprivate clause, the final values of 1 the list items that appeared in those clauses are undefined. 2 When an if clause is present on a cancel construct and the if expression evaluates to false, the 3 cancel construct does not activate cancellation. The cancellation point associated with the 4 ...
thread as its parent 5 thread with respect to any resources associated with an OpenMP thread. 6 child thread When a thread encounters a parallel construct, each of the threads in the 7 generated parallel region’s team are child threads of the encountering thread. 8 The target or teams region’s initial thread is not a ...
T: An array is a containing array of itself. For the array section 14 (*p0).x0[k1].p1->p2[k2].x1[k3].x2[4][0:n], where identifiers pi have a 15 pointer type declaration and identifiers xi have an array type declaration, 16 the containing arrays are: (*p0).x0[k1].p1->p2[k2].x1 and 17 (*p0).x0[k1].p1->p2[k2].x1[k3].x2. 18 ...
or more blanks or horizontal tabs are optional to separate adjacent keywords in 1 directive-names unless otherwise specified. 2 3 Note – In the following example the three formats for specifying the directive are equivalent (the 4 first line represents the position of the first 9 columns): 5 !23456789 6 !$omp parallel do ...
OpenMP Application Programming Interface Version 5.2 November 2021 Copyright c⃝1997-2021 OpenMP Architecture Review Board. Permission to copy without fee all or part of this material is granted, provided the OpenMP Architecture Review Board copyright notice and the title of this document appear. Notice is given that co...
. . . . . . 301 15.3.1 barrier Construct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 15.3.2 Implicit Barriers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 15.3.3 Implementation-Specific Barriers . . . . . . . . . . . . . . . . . . . . . . . 304 15.4 taskgroup Construct . . . . ...
d ICV of the device with the corresponding device 21 number. If the corresponding environment variable that includes the _DEV suffix but no device 22 number is set, then the setting of that environment variable is used to set the value of the associated 23 ICV of any non-host device for which the device-number-specific co...
11 omp_ifr_name, where name is the name of the foreign runtime environment. Available names 12 include those that are listed in the OpenMP Additional Definitions document; 13 implementation-defined names may also be supported. The value of omp_ifr_last is defined as 14 one greater than the value of the highest supported ...
etadirective. 21 Restrictions 22 Restrictions to metadirectives are as follows: 23 • Replacement of the metadirective with the directive variant associated with any of the dynamic 24 replacement candidates must result in a conforming OpenMP program. 25 • Insertion of user code at the location of a metadirective must be...
es that a directive accepts may form sets. These sets may imply restrictions on their use 22 on that directive or may otherwise capture properties for the clauses on the directive. While specific 23 properties may be defined for a clause set on a particular directive, the following clause-set 24 properties have general m...
ch callback for each occurrence of a 19 distribute-chunk-begin event in that thread. The callback occurs in the context of the initial task. 20 The callback has type signature ompt_callback_dispatch_t. 21 Restrictions 22 Restrictions to the distribute construct are as follows: 23 • The logical iteration space of the lo...
. . . . . . . . . . . . 607 21.2.5 OMP_AFFINITY_FORMAT . . . . . . . . . . . . . . . . . . . . . . . . . . 608 21.2.6 OMP_CANCELLATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610 21.2.7 OMP_DEFAULT_DEVICE . . . . . . . . . . . . . . . . . . . . . . . . . . 610 21.2.8 OMP_TARGET_OFFLOAD . . . . . . . . ....
is set to true, the thread affinity policy is implementation defined but 26 must conform to the previous paragraph. The behavior of the program is implementation defined if 27 the value in the OMP_PROC_BIND environment variable is not true, false, or a comma 28 604 OpenMP API – Version 5.2 November 2021 separated list of p...
allback_nest_lock_t, see Section 19.5.2.16 18 18.10 Timing Routines 19 This section describes routines that support a portable wall clock timer. 20 18.10.1 omp_get_wtime 21 Summary 22 The omp_get_wtime routine returns elapsed wall clock time in seconds. 23 Format 24 C / C++ double omp_get_wtime(void); 25 C / C++ Fortra...
for fixed source form Fortran to accommodate character 4 position requirements (see Section 3.1.1). Reserved clause names that begin with the ompx_ 5 prefix for implementation-defined clauses on OpenMP directives (see Section 3.2). Reserved 6 names in the base language that start with the omp_ and ompx_ prefix and reserved...
30 • Cross-iteration dependences across different logical iterations must not exist, except for 31 dependences for the list items specified in an inclusive or exclusive clause. 32 • Intra-iteration dependences from a statement in the structured block sequence that precede a 33 scan directive to a statement in the structu...
ffect of the map clauses on a construct would assign the value of a corresponding list item to 12 an original list item more than once, then an implementation is allowed to ignore additional 13 assignments of the same value to the original list item. 14 In all cases on exit from the region, concurrent reads or updates o...
not be encountered during execution of a target region. 23 • The result of an omp_set_default_device, omp_get_default_device, or 24 omp_get_num_devices routine called within a target region is unspecified. 25 • The effect of an access to a threadprivate variable in a target region is unspecified. 26 • If a list item in a ...
tine are as follows. 2 • Freeing the storage returned by omp_target_alloc with any routine other than 3 omp_target_free results in unspecified behavior. 4 • When called from within a target region the effect is unspecified. 5 C / C++ • Unless the unified_address clause appears on a requires directive in the compilation 6 ...
n, OpenMP mapper identifiers specify the name of a user-defined mapper, and 14 OpenMP foreign runtime identifiers specify the name of a foreign runtime. 15 Generic OpenMP types specify the type of expression or variable that is used in OpenMP contexts 16 regardless of the base language. These types support the definition o...
_callback_thread_begin callback for the 13 initial-thread-begin event in an initial thread. The callback occurs in the context of the initial 14 thread. The callback has type signature ompt_callback_thread_begin_t. The callback 15 receives ompt_thread_initial as its thread_type argument. 16 A thread dispatches a regist...
a corresponding list of their respective sizes. 7 Format 8 C ompd_rc_t ompd_get_device_thread_id_kinds( 9 ompd_address_space_handle_t *device_handle, 10 ompd_thread_id_t **kinds, 11 ompd_size_t **thread_id_sizes, 12 int *count 13 ); 14 C Semantics 15 The ompd_get_device_thread_id_kinds function returns an array of sup...
hes a registered ompt_callback_implicit_task callback with 1 ompt_scope_begin as its endpoint argument for each occurrence of an implicit-task-begin 2 event in that thread. Similarly, a thread dispatches a registered 3 ompt_callback_implicit_task callback with ompt_scope_end as its endpoint 4 argument for each occurren...
emi_t and 21 ompt_callback_target_data_op_t 22 Summary 23 The ompt_callback_target_data_op_emi_t and 24 ompt_callback_target_data_op_t types are used for callbacks that are dispatched when 25 a thread maps data to a device. 26 Format 27 C / C++ typedef void (*ompt_callback_target_data_op_emi_t) ( 28 ompt_scope_endpoint...
format that is used to 12 summarize native device trace records. 13 Format 14 C / C++ typedef struct ompt_record_abstract_t { 15 ompt_record_native_t rclass; 16 const char *type; 17 ompt_device_time_t start_time; 18 ompt_device_time_t end_time; 19 ompt_hwid_t hwid; 20 } ompt_record_abstract_t; 21 C / C++ Semantics 22 A...
; 27 332 • at the end of a worksharing-loop construct with a nowait clause and for which the same list 1 item appears in both firstprivate and lastprivate clauses; and 2 • implicit barrier regions. 3 When a thread reaches one of the above cancellation points and if the cancel-var ICV is true, then: 4 • If the thread is...
ive. 28 198 OpenMP API – Version 5.2 November 2021 If a declare variant directive appears between a begin declare variant directive and its 1 paired end directive, the effective context selectors of the outer directive are appended to the 2 context selector of the inner directive to form the effective context selector of...
ding to a parallel construct or a task region 26 corresponding to a task construct. 27 COMMENTS: 28 A sequential part is enclosed by an implicit parallel region. 29 Executable statements in called routines may be in both a sequential part 30 and any number of explicit parallel regions at different points in the 31 progr...
Arguments 10 Name Type Properties list list of variable list item type default 11 Directives 12 dispatch, target 13 Semantics 14 The is_device_ptr clause indicates that its list items are device pointers. Support for device 15 pointers created outside of OpenMP, specifically outside of any OpenMP mechanism that returns...
er that uses OMPD should be able to 14 debug a 64-bit OpenMP program by loading a 32-bit OMPD implementation that can manage a 15 64-bit OpenMP runtime. 16 The ompd_dll_locations variable points to a NULL-terminated vector of zero or more 17 null-terminated pathname strings that do not have any filename conventions. Thi...
t, a colon (:) or an 25 asterisk (*). 26 • If a type with deferred or assumed length parameter is specified in a declare reduction 27 directive, no other declare reduction directive with the same type, the same kind 28 parameters and the same reduction-identifier is allowed in the same scope. 29 Fortran 140 OpenMP API – ...
vars argument is the vector of display control variables to be released. 6 Description of Return Codes 7 This routine must return any of the general return codes listed at the beginning of Section 20.5. 8 Cross References 9 • Return Code Types, see Section 20.3.12 10 • ompd_get_display_control_vars, see Section 20.5.9....
libraries, separated by an implementation specific, platform typical separator. Whether the value of 5 this environment variable is case sensitive is implementation defined. 6 If the tool-var ICV is not enabled, the value of tool-libraries-var is ignored. Otherwise, if 7 ompt_start_tool is not visible in the address spac...
evices or both the host device and non-host devices. If 11 host is specified then only a host device version of the procedure or variable is made available. If 12 any is specified then both host device and non-host device versions of the procedure or variable are 13 made available. If nohost is specified for a procedure t...
containing structures. 28 For the array section (*p0).x0[k1].p1->p2[k2].x1[k3].x2[4][0:n], where 29 identifiers pi have a pointer type declaration and identifiers xi have an 30 array type declaration, the containing structures are: *(*p0).x0[k1].p1, 31 (*(*p0).x0[k1].p1).p2[k2] and (*(*p0).x0[k1].p1).p2[k2].x1[k3] 32 bas...
ime API in its corresponding region, referred to as 12 intervening code. If intervening code is present, then a loop at the same depth within 13 the loop nest is not a perfectly nested loop. 14 C / C++ It must not contain iteration statements, continue statements or break statements 15 that apply to the enclosing loop....
ration or definition 11 enables the creation of corresponding SIMD versions of the associated function that can be used to 12 process multiple arguments from a single invocation in a SIMD loop concurrently. 13 If a SIMD version is created and the simdlen clause is not specified, the number of concurrent 14 arguments for ...
edule(omp_sched_t *kind, int *chunk_size); 34 C / C++ 356 OpenMP API – Version 5.2 November 2021 Fortran subroutine omp_get_schedule(kind, chunk_size) 1 integer (kind=omp_sched_kind) kind 2 integer chunk_size 3 Fortran Binding 4 The binding task set for an omp_get_schedule region is the generating task. 5 Effect 6 This...
ment is relaxed. For 31 any other effective memory ordering, the default argument is equal to that effective memory 32 ordering. The weak clause specifies that the comparison performed by a conditional atomic update 33 may spuriously fail, evaluating to not equal even when the values are equal. 34 310 OpenMP API – Version...
t are dispatched when masked 32 regions start and end. 33 486 OpenMP API – Version 5.2 November 2021 Format 1 C / C++ typedef void (*ompt_callback_masked_t) ( 2 ompt_scope_endpoint_t endpoint, 3 ompt_data_t *parallel_data, 4 ompt_data_t *task_data, 5 const void *codeptr_ra 6 ); 7 C / C++ Trace Record 8 C / C++ typedef ...