LLVM OpenMP 22.0.0git
kmp_task_depend_all.c File Reference
#include "callback.h"
#include <stdio.h>
#include <omp.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  DEP
struct  task
struct  ID

Macros

#define mysleep(n)
#define DELAY   100
#define DEP_ALL_MEM   0x80
#define TIED   1

Typedefs

typedef struct DEP dep
typedef struct task task_t
typedef int(* entry_t) (int, task_t *)
typedef struct ID id

Functions

int thunk_m (int gtid, task_t *ptask)
int thunk_s (int gtid, task_t *ptask)
int __kmpc_global_thread_num (id *)
task_t__kmpc_omp_task_alloc (id *loc, int gtid, int flags, size_t sz, size_t shar, entry_t rtn)
int __kmpc_omp_task_with_deps (id *loc, int gtid, task_t *task, int ndeps, dep *dep_lst, int nd_noalias, dep *noalias_lst)
int main ()

Variables

static int checker = 0
static int err = 0
static id loc = {0, 2, 0, 0, ";file;func;0;0;;"}

Macro Definition Documentation

◆ DELAY

#define DELAY   100

Definition at line 88 of file kmp_task_depend_all.c.

Referenced by main(), mutex_task(), thunk(), thunk_m(), and thunk_s().

◆ DEP_ALL_MEM

#define DEP_ALL_MEM   0x80

Definition at line 98 of file kmp_task_depend_all.c.

Referenced by main().

◆ mysleep

#define mysleep ( n)
Value:
usleep((n)*1000)

Definition at line 81 of file kmp_task_depend_all.c.

Referenced by main(), thunk_m(), and thunk_s().

◆ TIED

#define TIED   1

Definition at line 108 of file kmp_task_depend_all.c.

Referenced by main(), and main().

Typedef Documentation

◆ dep

typedef struct DEP dep

◆ entry_t

typedef int(* entry_t) (int, task_t *)

Definition at line 109 of file kmp_task_depend_all.c.

◆ id

void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type size_t void ITT_FORMAT p const __itt_domain __itt_id __itt_string_handle const wchar_t size_t ITT_FORMAT lu const __itt_domain __itt_id __itt_relation __itt_id ITT_FORMAT p const wchar_t int ITT_FORMAT __itt_group_mark d __itt_event ITT_FORMAT __itt_group_mark d void const wchar_t const wchar_t int ITT_FORMAT __itt_group_sync __itt_group_fsync x void const wchar_t int const wchar_t int int ITT_FORMAT __itt_group_sync __itt_group_fsync x void ITT_FORMAT __itt_group_sync __itt_group_fsync p void ITT_FORMAT __itt_group_sync __itt_group_fsync p void size_t ITT_FORMAT lu no args __itt_obj_prop_t __itt_obj_state_t ITT_FORMAT d const char ITT_FORMAT s const char ITT_FORMAT s __itt_frame ITT_FORMAT p __itt_counter ITT_FORMAT p __itt_counter unsigned long long ITT_FORMAT lu __itt_counter unsigned long long ITT_FORMAT lu __itt_counter __itt_clock_domain unsigned long long void ITT_FORMAT p const wchar_t ITT_FORMAT S __itt_mark_type const wchar_t ITT_FORMAT S __itt_mark_type const char ITT_FORMAT s __itt_mark_type ITT_FORMAT d __itt_caller ITT_FORMAT p __itt_caller ITT_FORMAT p no args const __itt_domain __itt_clock_domain unsigned long long __itt_id ITT_FORMAT lu const __itt_domain __itt_clock_domain unsigned long long __itt_id __itt_id void ITT_FORMAT p const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_clock_domain unsigned long long __itt_id __itt_string_handle __itt_scope ITT_FORMAT id

Definition at line 343 of file ittnotify_static.h.

◆ task_t

typedef struct task task_t

Function Documentation

◆ __kmpc_global_thread_num()

int __kmpc_global_thread_num ( id * )

Referenced by main().

◆ __kmpc_omp_task_alloc()

task_t * __kmpc_omp_task_alloc ( id * loc,
int gtid,
int flags,
size_t sz,
size_t shar,
entry_t rtn )

References loc.

Referenced by main().

◆ __kmpc_omp_task_with_deps()

int __kmpc_omp_task_with_deps ( id * loc,
int gtid,
task_t * task,
int ndeps,
dep * dep_lst,
int nd_noalias,
dep * noalias_lst )

References loc.

Referenced by main().

◆ main()

◆ thunk_m()

int thunk_m ( int gtid,
task_t * ptask )

Definition at line 118 of file kmp_task_depend_all.c.

References checker, DELAY, err, and mysleep.

Referenced by main().

◆ thunk_s()

int thunk_s ( int gtid,
task_t * ptask )

Definition at line 140 of file kmp_task_depend_all.c.

References checker, DELAY, err, and mysleep.

Referenced by main().

Variable Documentation

◆ checker

◆ err

int err = 0
static

Definition at line 86 of file kmp_task_depend_all.c.

◆ loc

id loc = {0, 2, 0, 0, ";file;func;0;0;;"}
static

Definition at line 170 of file kmp_task_depend_all.c.

Referenced by __GOMP_taskloop(), __kmp_barrier_template(), __kmp_cleanup_user_locks(), __kmp_determine_reduction_method(), __kmp_dispatch_finish(), __kmp_dispatch_init(), __kmp_dispatch_init_algorithm(), __kmp_dispatch_init_hierarchy(), __kmp_dispatch_next(), __kmp_dist_for_static_init(), __kmp_dist_get_bounds(), __kmp_end_critical_section_reduce_block(), __kmp_enter_critical_section_reduce_block(), __kmp_for_static_init(), __kmp_fork_call(), __kmp_fork_in_teams(), __kmp_get_critical_section_ptr(), __kmp_get_monotonicity(), __kmp_GOMP_doacross_post< long, false >(), __kmp_GOMP_doacross_post< long, true >(), __kmp_GOMP_doacross_wait(), __kmp_GOMP_fork_call(), __kmp_GOMP_parallel_microtask_wrapper(), __kmp_initialize_team(), __kmp_join_barrier(), __kmp_join_call(), __kmp_reinitialize_team(), __kmp_serial_fork_call(), __kmp_serialized_parallel(), __kmp_set_drdpa_lock_location(), __kmp_set_nesting_mode_threads(), __kmp_set_queuing_lock_location(), __kmp_set_strict_num_threads(), __kmp_set_ticket_lock_location(), __kmp_set_user_lock_location(), __kmp_setup_icv_copy(), __kmp_str_loc_free(), __kmp_str_loc_init(), __kmp_task_reduction_modifier_init(), __kmp_taskloop(), __kmp_taskloop_linear(), __kmp_taskloop_recur(), __kmp_team_static_init(), __kmp_teams_master(), __kmpc_atomic_bool_1_cas(), __kmpc_atomic_bool_1_cas_cpt(), __kmpc_atomic_bool_2_cas(), __kmpc_atomic_bool_2_cas_cpt(), __kmpc_atomic_bool_4_cas(), __kmpc_atomic_bool_4_cas_cpt(), __kmpc_atomic_bool_8_cas(), __kmpc_atomic_bool_8_cas_cpt(), __kmpc_atomic_cmplx10_div_cpt(), __kmpc_atomic_cmplx10_rd(), __kmpc_atomic_cmplx4_rd(), __kmpc_atomic_cmplx8_rd(), __kmpc_atomic_fixed1_rd(), __kmpc_atomic_fixed2_rd(), __kmpc_atomic_fixed4_rd(), __kmpc_atomic_fixed8_rd(), __kmpc_atomic_float10_rd(), __kmpc_atomic_float4_rd(), __kmpc_atomic_float8_rd(), __kmpc_atomic_val_1_cas(), __kmpc_atomic_val_1_cas_cpt(), __kmpc_atomic_val_2_cas(), __kmpc_atomic_val_2_cas_cpt(), __kmpc_atomic_val_4_cas(), __kmpc_atomic_val_4_cas_cpt(), __kmpc_atomic_val_8_cas(), __kmpc_atomic_val_8_cas_cpt(), __kmpc_barrier(), __kmpc_barrier_master(), __kmpc_barrier_master_nowait(), __kmpc_begin(), __kmpc_bound_num_threads(), __kmpc_bound_thread_num(), __kmpc_calc_original_ivs_rectang(), __kmpc_cancel_barrier(), __kmpc_copyprivate(), __kmpc_copyprivate_light(), __kmpc_critical(), __kmpc_critical_with_hint(), __kmpc_destroy_lock(), __kmpc_destroy_nest_lock(), __kmpc_dispatch_deinit(), __kmpc_dispatch_fini_4(), __kmpc_dispatch_fini_4u(), __kmpc_dispatch_fini_8(), __kmpc_dispatch_fini_8u(), __kmpc_dispatch_init_4(), __kmpc_dispatch_init_4u(), __kmpc_dispatch_init_8(), __kmpc_dispatch_init_8u(), __kmpc_dispatch_next_4(), __kmpc_dispatch_next_4u(), __kmpc_dispatch_next_8(), __kmpc_dispatch_next_8u(), __kmpc_dist_dispatch_init_4(), __kmpc_dist_dispatch_init_4u(), __kmpc_dist_dispatch_init_8(), __kmpc_dist_dispatch_init_8u(), __kmpc_dist_for_static_init_4(), __kmpc_dist_for_static_init_4u(), __kmpc_dist_for_static_init_8(), __kmpc_dist_for_static_init_8u(), __kmpc_doacross_fini(), __kmpc_doacross_fini(), __kmpc_doacross_init(), __kmpc_doacross_init(), __kmpc_doacross_post(), __kmpc_doacross_post(), __kmpc_doacross_wait(), __kmpc_doacross_wait(), __kmpc_end(), __kmpc_end_barrier_master(), __kmpc_end_critical(), __kmpc_end_masked(), __kmpc_end_master(), __kmpc_end_ordered(), __kmpc_end_reduce(), __kmpc_end_reduce_nowait(), __kmpc_end_scope(), __kmpc_end_sections(), __kmpc_end_serialized_parallel(), __kmpc_end_single(), __kmpc_end_taskgroup(), __kmpc_error(), __kmpc_flush(), __kmpc_for_collapsed_init(), __kmpc_for_static_fini(), __kmpc_for_static_init_4(), __kmpc_for_static_init_4u(), __kmpc_for_static_init_8(), __kmpc_for_static_init_8u(), __kmpc_fork_call(), __kmpc_fork_call_if(), __kmpc_fork_teams(), __kmpc_global_num_threads(), __kmpc_global_thread_num(), __kmpc_global_thread_num(), __kmpc_in_parallel(), __kmpc_init_lock(), __kmpc_init_lock_with_hint(), __kmpc_init_nest_lock(), __kmpc_init_nest_lock_with_hint(), __kmpc_masked(), __kmpc_master(), __kmpc_next_section(), __kmpc_ok_to_fork(), __kmpc_omp_task(), __kmpc_omp_task(), __kmpc_omp_task_alloc(), __kmpc_omp_task_alloc(), __kmpc_omp_task_alloc(), __kmpc_omp_task_alloc(), __kmpc_omp_task_with_deps(), __kmpc_omp_task_with_deps(), __kmpc_omp_task_with_deps(), __kmpc_omp_task_with_deps(), __kmpc_omp_task_with_deps(), __kmpc_omp_task_with_deps(), __kmpc_omp_wait_deps(), __kmpc_ordered(), __kmpc_pop_num_threads(), __kmpc_process_loop_nest_rectang(), __kmpc_push_num_teams(), __kmpc_push_num_teams_51(), __kmpc_push_num_threads(), __kmpc_push_num_threads_list(), __kmpc_push_num_threads_list(), __kmpc_push_num_threads_list_strict(), __kmpc_push_num_threads_list_strict(), __kmpc_push_num_threads_strict(), __kmpc_push_num_threads_strict(), __kmpc_push_proc_bind(), __kmpc_push_proc_bind(), __kmpc_reduce(), __kmpc_reduce_nowait(), __kmpc_scope(), __kmpc_sections_init(), __kmpc_serialized_parallel(), __kmpc_set_lock(), __kmpc_set_nest_lock(), __kmpc_set_thread_limit(), __kmpc_single(), __kmpc_task_reduction_modifier_fini(), __kmpc_task_reduction_modifier_fini(), __kmpc_task_reduction_modifier_init(), __kmpc_task_reduction_modifier_init(), __kmpc_taskgroup(), __kmpc_taskloop(), __kmpc_taskloop(), __kmpc_taskloop(), __kmpc_taskloop_5(), __kmpc_taskloop_5(), __kmpc_taskloop_5(), __kmpc_taskred_modifier_init(), __kmpc_taskred_modifier_init(), __kmpc_team_static_init_4(), __kmpc_team_static_init_4u(), __kmpc_team_static_init_8(), __kmpc_team_static_init_8u(), __kmpc_test_lock(), __kmpc_test_nest_lock(), __kmpc_threadprivate(), __kmpc_threadprivate_cached(), __kmpc_threadprivate_register(), __kmpc_threadprivate_register_vec(), __kmpc_unset_lock(), __kmpc_unset_nest_lock(), KMP_API_NAME_GOMP_BARRIER(), KMP_API_NAME_GOMP_CRITICAL_END(), KMP_API_NAME_GOMP_CRITICAL_NAME_END(), KMP_API_NAME_GOMP_CRITICAL_NAME_START(), KMP_API_NAME_GOMP_CRITICAL_START(), KMP_API_NAME_GOMP_DOACROSS_ULL_POST(), KMP_API_NAME_GOMP_ORDERED_END(), KMP_API_NAME_GOMP_ORDERED_START(), KMP_API_NAME_GOMP_PARALLEL_END(), KMP_API_NAME_GOMP_PARALLEL_REDUCTIONS(), KMP_API_NAME_GOMP_PARALLEL_START(), KMP_API_NAME_GOMP_SINGLE_COPY_START(), KMP_API_NAME_GOMP_SINGLE_START(), KMP_API_NAME_GOMP_TASKWAIT_DEPEND(), KMP_API_NAME_GOMP_TEAMS_REG(), KMP_API_NAME_GOMP_WORKSHARE_TASK_REDUCTION_UNREGISTER(), kmp_canonicalize_loop_nest(), kmp_canonicalize_one_loop_XX(), KMPC_FOR_STATIC_INIT(), KMPC_SET_NESTED(), main(), main(), kmp_hier_t< T >::next(), run_loop(), run_loop_32(), and run_loop_64().