LLVM OpenMP 19.0.0git
Classes | Macros | Typedefs | Functions | Variables
kmp_taskloop_5.c File Reference
#include <stdio.h>
#include <omp.h>
#include "omp_my_sleep.h"

Go to the source code of this file.

Classes

struct  ident
 The ident structure that describes a source location. More...
 
struct  shar
 
struct  task
 

Macros

#define N   4
 
#define ST   3
 
#define UB   118
 
#define LB   0
 

Typedefs

typedef struct ident ident_t
 
typedef struct sharpshareds
 
typedef struct taskptask
 
typedef struct task kmp_task_t
 
typedef int(* task_entry_t) (int, ptask)
 
typedef unsigned long long kmp_uint64
 
typedef long long kmp_int64
 

Functions

void __task_dup_entry (ptask task_dst, ptask task_src, int lastpriv)
 
void __kmpc_taskloop_5 (ident_t *loc, int gtid, kmp_task_t *task, int if_val, kmp_uint64 *lb, kmp_uint64 *ub, kmp_int64 st, int nogroup, int sched, kmp_int64 grainsize, int modifier, void *task_dup)
 
ptask __kmpc_omp_task_alloc (ident_t *loc, int gtid, int flags, size_t sizeof_kmp_task_t, size_t sizeof_shareds, task_entry_t task_entry)
 
void __kmpc_atomic_fixed4_add (void *id_ref, int gtid, int *lhs, int rhs)
 
int __kmpc_global_thread_num (void *id_ref)
 
int task_entry (int gtid, ptask task)
 
void task_loop (int sched_type, int sched_val, int modifier)
 
int main (int argc, char *argv[])
 

Variables

int counter
 
int task_count
 

Macro Definition Documentation

◆ LB

#define LB   0

Definition at line 11 of file kmp_taskloop_5.c.

◆ N

#define N   4

Definition at line 8 of file kmp_taskloop_5.c.

◆ ST

#define ST   3

Definition at line 9 of file kmp_taskloop_5.c.

◆ UB

#define UB   118

Definition at line 10 of file kmp_taskloop_5.c.

Typedef Documentation

◆ ident_t

typedef struct ident ident_t

◆ kmp_int64

typedef long long kmp_int64

Definition at line 53 of file kmp_taskloop_5.c.

◆ kmp_task_t

typedef struct task kmp_task_t

◆ kmp_uint64

typedef unsigned long long kmp_uint64

Definition at line 52 of file kmp_taskloop_5.c.

◆ pshareds

typedef struct shar * pshareds

◆ ptask

typedef struct task * ptask

◆ task_entry_t

typedef int(* task_entry_t) (int, ptask)

Definition at line 41 of file kmp_taskloop_5.c.

Function Documentation

◆ __kmpc_atomic_fixed4_add()

void __kmpc_atomic_fixed4_add ( void id_ref,
int  gtid,
int lhs,
int  rhs 
)

Referenced by task_entry().

◆ __kmpc_global_thread_num()

int __kmpc_global_thread_num ( void id_ref)

Referenced by task_loop().

◆ __kmpc_omp_task_alloc()

ptask __kmpc_omp_task_alloc ( ident_t loc,
int  gtid,
int  flags,
size_t  sizeof_kmp_task_t,
size_t  sizeof_shareds,
task_entry_t  task_entry 
)

Referenced by task_loop().

◆ __kmpc_taskloop_5()

void __kmpc_taskloop_5 ( ident_t loc,
int  gtid,
kmp_task_t task,
int  if_val,
kmp_uint64 lb,
kmp_uint64 ub,
kmp_int64  st,
int  nogroup,
int  sched,
kmp_int64  grainsize,
int  modifier,
void task_dup 
)

Referenced by task_loop().

◆ __task_dup_entry()

void __task_dup_entry ( ptask  task_dst,
ptask  task_src,
int  lastpriv 
)

Definition at line 44 of file kmp_taskloop_5.c.

References task::last.

Referenced by task_loop().

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 159 of file kmp_taskloop_5.c.

References task_loop().

◆ task_entry()

int task_entry ( int  gtid,
ptask  task 
)

◆ task_loop()

void task_loop ( int  sched_type,
int  sched_val,
int  modifier 
)

Variable Documentation

◆ counter

int counter

Definition at line 14 of file kmp_taskloop_5.c.

Referenced by task_loop().

◆ task_count

int task_count

Definition at line 15 of file kmp_taskloop_5.c.

Referenced by task_loop().