LLVM OpenMP 20.0.0git
Classes | Macros | Typedefs | Functions | Variables
omp_task_depend_all.c File Reference
#include <omp.h>
#include <stdio.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 43 of file omp_task_depend_all.c.

◆ DEP_ALL_MEM

#define DEP_ALL_MEM   0x80

Definition at line 53 of file omp_task_depend_all.c.

◆ mysleep

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

Definition at line 36 of file omp_task_depend_all.c.

◆ TIED

#define TIED   1

Definition at line 63 of file omp_task_depend_all.c.

Typedef Documentation

◆ dep

typedef struct DEP dep

◆ entry_t

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

Definition at line 64 of file omp_task_depend_all.c.

◆ id

typedef struct ID id

◆ task_t

typedef struct task task_t

Function Documentation

◆ __kmpc_global_thread_num()

int __kmpc_global_thread_num ( id )

◆ __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 
)

◆ __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 
)

◆ main()

int main ( void  )

◆ thunk_m()

int thunk_m ( int  gtid,
task_t ptask 
)

Definition at line 73 of file omp_task_depend_all.c.

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

◆ thunk_s()

int thunk_s ( int  gtid,
task_t ptask 
)

Definition at line 95 of file omp_task_depend_all.c.

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

Variable Documentation

◆ checker

int checker = 0
static

Definition at line 40 of file omp_task_depend_all.c.

◆ err

int err = 0
static

Definition at line 41 of file omp_task_depend_all.c.

◆ loc

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

Definition at line 125 of file omp_task_depend_all.c.