LLVM OpenMP 19.0.0git
Classes | Macros | Typedefs | Functions | Variables
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)   usleep((n)*1000)
 
#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 86 of file kmp_task_depend_all.c.

◆ DEP_ALL_MEM

#define DEP_ALL_MEM   0x80

Definition at line 96 of file kmp_task_depend_all.c.

◆ mysleep

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

Definition at line 79 of file kmp_task_depend_all.c.

◆ TIED

#define TIED   1

Definition at line 106 of file kmp_task_depend_all.c.

Typedef Documentation

◆ dep

typedef struct DEP dep

◆ entry_t

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

Definition at line 107 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 
)

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 
)

Referenced by main().

◆ main()

int main ( void  )

◆ thunk_m()

int thunk_m ( int  gtid,
task_t ptask 
)

Definition at line 116 of file kmp_task_depend_all.c.

References checker, DELAY, err, task::f_priv, and mysleep.

Referenced by main().

◆ thunk_s()

int thunk_s ( int  gtid,
task_t ptask 
)

Definition at line 138 of file kmp_task_depend_all.c.

References checker, DELAY, err, task::f_priv, and mysleep.

Referenced by main().

Variable Documentation

◆ checker

int checker = 0
static

◆ err

int err = 0
static

Definition at line 84 of file kmp_task_depend_all.c.

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

◆ loc

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

Definition at line 168 of file kmp_task_depend_all.c.

Referenced by __GOMP_taskloop(), __kmp_barrier_template(), __kmp_cleanup_user_locks(), __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_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_recur(), __kmp_team_static_init(), __kmp_teams_master(), __kmpc_barrier(), __kmpc_barrier_master(), __kmpc_barrier_master_nowait(), __kmpc_cancel_barrier(), __kmpc_copyprivate(), __kmpc_copyprivate_light(), __kmpc_critical(), __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_end_critical(), __kmpc_end_masked(), __kmpc_end_master(), __kmpc_end_ordered(), __kmpc_end_reduce(), __kmpc_end_reduce_nowait(), __kmpc_end_serialized_parallel(), __kmpc_end_taskgroup(), __kmpc_error(), __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_init_lock(), __kmpc_init_nest_lock(), __kmpc_masked(), __kmpc_master(), __kmpc_ok_to_fork(), __kmpc_ordered(), __kmpc_process_loop_nest_rectang(), __kmpc_push_num_teams(), __kmpc_push_num_teams_51(), __kmpc_push_num_threads(), __kmpc_push_proc_bind(), __kmpc_reduce(), __kmpc_reduce_nowait(), __kmpc_sections_init(), __kmpc_serialized_parallel(), __kmpc_single(), __kmpc_task_reduction_modifier_fini(), __kmpc_task_reduction_modifier_init(), __kmpc_taskgroup(), __kmpc_taskloop(), __kmpc_taskloop_5(), __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_threadprivate_cached(), 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(), main(), and kmp_hier_t< T >::next().