LLVM OpenMP 20.0.0git
|
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 | GRAIN 10 |
#define | STRIDE 3 |
Typedefs | |
typedef struct ident | ident_t |
typedef struct shar * | pshareds |
typedef struct task * | ptask |
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 (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, 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) |
int | main () |
Variables | |
int | th_counter [N] |
int | counter |
#define GRAIN 10 |
Definition at line 8 of file kmp_taskloop.c.
#define N 4 |
Definition at line 7 of file kmp_taskloop.c.
#define STRIDE 3 |
Definition at line 9 of file kmp_taskloop.c.
typedef long long kmp_int64 |
Definition at line 54 of file kmp_taskloop.c.
typedef struct task kmp_task_t |
typedef unsigned long long kmp_uint64 |
Definition at line 53 of file kmp_taskloop.c.
Definition at line 41 of file kmp_taskloop.c.
Referenced by task_entry().
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 main().
void __kmpc_taskloop | ( | 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, | ||
void * | task_dup | ||
) |
Referenced by main().
Definition at line 91 of file kmp_taskloop.c.
References __kmpc_global_thread_num(), __kmpc_omp_task_alloc(), __kmpc_taskloop(), __task_dup_entry(), counter, GRAIN, i, j, task::lb, N, omp_set_dynamic, shar::pcounter, shar::pj, shar::pth_counter, task::shareds, task::st, STRIDE, task_entry(), th_counter, and task::ub.
Definition at line 75 of file kmp_taskloop.c.
References __kmpc_atomic_fixed4_add(), task::i, task::j, task::last, task::lb, my_sleep(), shar::pcounter, shar::pj, shar::pth_counter, task::shareds, task::st, task::th, and task::ub.
Referenced by main().
int counter |
Definition at line 13 of file kmp_taskloop.c.
Referenced by __kmp_push_task(), __kmp_reset_stats(), __kmp_task_finish(), __kmpc_omp_task_begin_if0_template(), main(), test_omp_for_schedule_static(), test_omp_for_schedule_static_3(), and test_omp_nested().
Definition at line 12 of file kmp_taskloop.c.
Referenced by main().