LLVM OpenMP 22.0.0git
teams-reduction.c File Reference
#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

Macro Definition Documentation

◆ N_TEAMS

#define N_TEAMS   4

Definition at line 12 of file teams-reduction.c.

◆ N_THR

#define N_THR   3

Definition at line 15 of file teams-reduction.c.

Function Documentation

◆ __kmpc_reduce()

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 )

References lck.

Referenced by outlined().

◆ main()

◆ 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().

Variable Documentation

◆ crit

◆ dummy_loc

ident_t dummy_loc = {0, 2, 0, 0, ";dummyFile;dummyFunc;0;0;;"}
static

Definition at line 31 of file teams-reduction.c.