LLVM OpenMP 22.0.0git
omp51_task_dep_inoutset.c File Reference
#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 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 nd, dep *dep_lst, int nd_noalias, dep *noalias_dep_lst)
int main ()

Variables

static int volatile 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 35 of file omp51_task_dep_inoutset.c.

◆ mysleep

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

Definition at line 28 of file omp51_task_dep_inoutset.c.

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

◆ TIED

#define TIED   1

Definition at line 54 of file omp51_task_dep_inoutset.c.

Typedef Documentation

◆ dep

typedef struct DEP dep

◆ entry_t

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

Definition at line 55 of file omp51_task_dep_inoutset.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 * )

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 )
extern

References loc.

Referenced by main().

◆ __kmpc_omp_task_with_deps()

int __kmpc_omp_task_with_deps ( id * loc,
int gtid,
task_t * task,
int nd,
dep * dep_lst,
int nd_noalias,
dep * noalias_dep_lst )

References loc.

Referenced by main().

◆ main()

◆ thunk_m()

int thunk_m ( int gtid,
task_t * ptask )

Definition at line 64 of file omp51_task_dep_inoutset.c.

References checker, DELAY, err, and mysleep.

◆ thunk_s()

int thunk_s ( int gtid,
task_t * ptask )

Definition at line 83 of file omp51_task_dep_inoutset.c.

References checker, DELAY, err, and mysleep.

Variable Documentation

◆ checker

int volatile checker = 0
static

Definition at line 32 of file omp51_task_dep_inoutset.c.

◆ err

int err = 0
static

Definition at line 33 of file omp51_task_dep_inoutset.c.

◆ loc

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

Definition at line 111 of file omp51_task_dep_inoutset.c.