LLVM OpenMP 20.0.0git
|
#include <stdio.h>
#include <omp.h>
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | ident_t |
union | kmp_critical_name |
Macros | |
#define | N_TEAMS 4 |
#define | N_THR 3 |
Functions | |
int32_t | __kmpc_global_thread_num (ident_t *) |
void | __kmpc_push_num_teams (ident_t *, int32_t global_tid, int32_t num_teams, int32_t num_threads) |
void | __kmpc_fork_teams (ident_t *, int32_t argc, void *microtask,...) |
int32_t | __kmpc_reduce (ident_t *, int32_t global_tid, int32_t num_vars, size_t reduce_size, void *reduce_data, void *reduce_func, kmp_critical_name *lck) |
void | __kmpc_end_reduce (ident_t *, int32_t global_tid, kmp_critical_name *lck) |
void | outlined (int32_t *gtid, int32_t *tid) |
int | main () |
Variables | |
static ident_t | dummy_loc = {0, 2, 0, 0, ";dummyFile;dummyFunc;0;0;;"} |
kmp_critical_name | crit |
#define N_TEAMS 4 |
Definition at line 12 of file teams-reduction.c.
#define N_THR 3 |
Definition at line 15 of file teams-reduction.c.
int32_t __kmpc_reduce | ( | ident_t * | , |
int32_t | global_tid, | ||
int32_t | num_vars, | ||
size_t | reduce_size, | ||
void * | reduce_data, | ||
void * | reduce_func, | ||
kmp_critical_name * | lck | ||
) |
Referenced by outlined().
Definition at line 60 of file teams-reduction.c.
References __kmpc_fork_teams(), __kmpc_global_thread_num(), __kmpc_push_num_teams(), dummy_loc, N_TEAMS, N_THR, and outlined().
void outlined | ( | int32_t * | gtid, |
int32_t * | tid | ||
) |
Definition at line 55 of file teams-reduction.c.
References __kmpc_end_reduce(), __kmpc_reduce(), crit, dummy_loc, and ret.
Referenced by main().
kmp_critical_name crit |
Definition at line 39 of file teams-reduction.c.
Referenced by __kmp_end_critical_section_reduce_block(), __kmp_enter_critical_section_reduce_block(), __kmp_get_critical_section_ptr(), __kmpc_critical(), __kmpc_end_critical(), and outlined().
|
static |
Definition at line 31 of file teams-reduction.c.
Referenced by main(), and outlined().