LLVM OpenMP 22.0.0git
task_teams_stress_test.cpp File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>

Go to the source code of this file.

Macros

#define NTIMES   5

Functions

void task_inc_a (int *a)
void task_inc_split_a (int *a, int low, int high)
void task_inc_a_detached (int *a, omp_event_handle_t handle)
void check_a (int *a, int expected)
void test_tasks (omp_event_handle_t *handles, int expected, int *a)
void test_base (int nthreads)
void test_nest (int first, int second)
void test_nest2 (int first, int second, int third)
void test_nest3 (int first, int second, int third, int fourth)
void test_nest4 (int first, int second, int third, int fourth, int fifth)
void test_tasks_split (omp_event_handle_t *handles, int expected, int *a)
void test_base_split (int nthreads)
void test_nest_split (int first, int second)
void test_nest2_split (int first, int second, int third)
template<typename... Args>
void run_ntimes (int n, void(*func)(Args...), Args... args)
int main ()

Macro Definition Documentation

◆ NTIMES

#define NTIMES   5

Definition at line 30 of file task_teams_stress_test.cpp.

Function Documentation

◆ check_a()

void check_a ( int * a,
int expected )

Definition at line 77 of file task_teams_stress_test.cpp.

References a.

Referenced by test_tasks(), and test_tasks_split().

◆ main()

◆ run_ntimes()

template<typename... Args>
void run_ntimes ( int n,
void(* func )(Args...),
Args... args )

Definition at line 251 of file task_teams_stress_test.cpp.

References args, func(), and i.

Referenced by main().

◆ task_inc_a()

void task_inc_a ( int * a)

Definition at line 33 of file task_teams_stress_test.cpp.

References a.

Referenced by test_tasks().

◆ task_inc_a_detached()

void task_inc_a_detached ( int * a,
omp_event_handle_t handle )

Definition at line 67 of file task_teams_stress_test.cpp.

References a.

Referenced by test_tasks(), and test_tasks_split().

◆ task_inc_split_a()

void task_inc_split_a ( int * a,
int low,
int high )

Definition at line 42 of file task_teams_stress_test.cpp.

References a, and task_inc_split_a().

Referenced by task_inc_split_a(), and test_tasks_split().

◆ test_base()

void test_base ( int nthreads)

Definition at line 114 of file task_teams_stress_test.cpp.

References a, and test_tasks().

Referenced by test_nest().

◆ test_base_split()

void test_base_split ( int nthreads)

Definition at line 212 of file task_teams_stress_test.cpp.

References a, and test_tasks_split().

Referenced by main(), and test_nest_split().

◆ test_nest()

void test_nest ( int first,
int second )

Definition at line 130 of file task_teams_stress_test.cpp.

References test_base().

Referenced by test_nest2().

◆ test_nest2()

void test_nest2 ( int first,
int second,
int third )

Definition at line 143 of file task_teams_stress_test.cpp.

References test_nest().

Referenced by main(), and test_nest3().

◆ test_nest2_split()

void test_nest2_split ( int first,
int second,
int third )

Definition at line 241 of file task_teams_stress_test.cpp.

References test_nest_split().

Referenced by main().

◆ test_nest3()

void test_nest3 ( int first,
int second,
int third,
int fourth )

Definition at line 157 of file task_teams_stress_test.cpp.

References test_nest2().

Referenced by main(), and test_nest4().

◆ test_nest4()

void test_nest4 ( int first,
int second,
int third,
int fourth,
int fifth )

Definition at line 172 of file task_teams_stress_test.cpp.

References test_nest3().

Referenced by main().

◆ test_nest_split()

void test_nest_split ( int first,
int second )

Definition at line 228 of file task_teams_stress_test.cpp.

References test_base_split().

Referenced by main(), and test_nest2_split().

◆ test_tasks()

void test_tasks ( omp_event_handle_t * handles,
int expected,
int * a )

Definition at line 88 of file task_teams_stress_test.cpp.

References a, check_a(), task_inc_a(), and task_inc_a_detached().

◆ test_tasks_split()

void test_tasks_split ( omp_event_handle_t * handles,
int expected,
int * a )

Definition at line 184 of file task_teams_stress_test.cpp.

References a, check_a(), task_inc_a_detached(), and task_inc_split_a().

Referenced by test_base_split().