LLVM OpenMP 22.0.0git
kmp_task_reduction_nest.cpp File Reference
#include <cstdio>
#include <cmath>
#include <cassert>
#include <omp.h>

Go to the source code of this file.

Classes

struct  _task_red_item

Macros

#define N   10000
#define FLG   0

Typedefs

typedef struct _task_red_item _task_red_item_t

Functions

void__kmpc_task_reduction_get_th_data (int gtid, void *tg, void *item)
void__kmpc_task_reduction_init (int gtid, int num, void *data)
int __kmpc_global_thread_num (void *)
void __red_int_add_comb (void *lhs, void *rhs)
void __red_llong_add_comb (void *lhs, void *rhs)
void __red_dbl_mul_init (void *data)
void __red_dbl_mul_comb (void *lhs, void *rhs)
void __red_dbl_add_comb (void *lhs, void *rhs)
void calc_serial (int *pi, long long *pj, double *px, long long *pk, double *py)
int main ()

Macro Definition Documentation

◆ FLG

#define FLG   0

Definition at line 15 of file kmp_task_reduction_nest.cpp.

Referenced by main().

◆ N

#define N   10000

Definition at line 11 of file kmp_task_reduction_nest.cpp.

Typedef Documentation

◆ _task_red_item_t

Function Documentation

◆ __kmpc_global_thread_num()

int __kmpc_global_thread_num ( void * )
extern

Referenced by main().

◆ __red_dbl_add_comb()

void __red_dbl_add_comb ( void * lhs,
void * rhs )

Definition at line 110 of file kmp_task_reduction_nest.cpp.

Referenced by main().

◆ __red_dbl_mul_comb()

void __red_dbl_mul_comb ( void * lhs,
void * rhs )

Definition at line 106 of file kmp_task_reduction_nest.cpp.

Referenced by main().

◆ __red_dbl_mul_init()

void __red_dbl_mul_init ( void * data)

Definition at line 104 of file kmp_task_reduction_nest.cpp.

References data.

Referenced by main().

◆ __red_int_add_comb()

void __red_int_add_comb ( void * lhs,
void * rhs )

Definition at line 96 of file kmp_task_reduction_nest.cpp.

Referenced by main().

◆ __red_llong_add_comb()

void __red_llong_add_comb ( void * lhs,
void * rhs )

Definition at line 100 of file kmp_task_reduction_nest.cpp.

Referenced by main().

◆ calc_serial()

void calc_serial ( int * pi,
long long * pj,
double * px,
long long * pk,
double * py )

Definition at line 115 of file kmp_task_reduction_nest.cpp.

References double, and N.

Referenced by main().

◆ main()