LLVM OpenMP 22.0.0git
|
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#include <pthread.h>
Go to the source code of this file.
Macros | |
#define | LOOPCOUNT 1000 /* Number of iterations to slit amongst threads */ |
#define | REPETITIONS 10 /* Number of times to run each test */ |
#define | SLEEPTIME 1 |
#define | NUM_TASKS 25 |
#define | MAX_TASKS_PER_THREAD 5 |
Functions | |
static void | go_parallel () |
static void | go_parallel_nthreads (int nthreads) |
static void | go_parallel_spread () |
static void | go_parallel_close () |
static void | go_parallel_master () |
static int | get_exit_value () |
Variables | |
volatile int | g_counter__ |
#define LOOPCOUNT 1000 /* Number of iterations to slit amongst threads */ |
Definition at line 12 of file omp_testsuite.h.
Referenced by test_omp_atomic(), test_omp_for_auto(), test_omp_for_firstprivate(), test_omp_for_lastprivate(), test_omp_for_private(), test_omp_for_reduction(), test_omp_for_runtime(), test_omp_for_schedule_static_3(), test_omp_lock(), test_omp_nest_lock(), test_omp_parallel_default(), test_omp_parallel_for_firstprivate(), test_omp_parallel_for_if(), test_omp_parallel_for_lastprivate(), test_omp_parallel_for_private(), test_omp_parallel_for_reduction(), test_omp_parallel_if(), test_omp_parallel_reduction(), test_omp_parallel_shared(), test_omp_single(), test_omp_single_copyprivate(), test_omp_single_private(), test_omp_task_firstprivate(), test_omp_task_private(), test_omp_test_lock(), test_omp_test_nest_lock(), test_omp_threadprivate(), and test_omp_threadprivate_for().
#define MAX_TASKS_PER_THREAD 5 |
Definition at line 21 of file omp_testsuite.h.
#define NUM_TASKS 25 |
Definition at line 20 of file omp_testsuite.h.
Referenced by main(), test_omp_task(), test_omp_task_final(), test_omp_task_firstprivate(), test_omp_task_imp_firstprivate(), test_omp_task_imp_shared(), test_omp_task_private(), test_omp_taskwait(), and test_omp_taskyield().
Definition at line 13 of file omp_testsuite.h.
Referenced by main(), main(), and test_omp_barrier().
#define SLEEPTIME 1 |
Definition at line 16 of file omp_testsuite.h.
Referenced by test_omp_barrier(), test_omp_flush(), test_omp_for_schedule_guided(), test_omp_for_schedule_static(), test_omp_for_schedule_static_3(), test_omp_task(), test_omp_task_final(), test_omp_task_if(), test_omp_taskwait(), and test_omp_taskyield().
|
inlinestatic |
Definition at line 73 of file omp_testsuite.h.
References g_counter__.
|
static |
Definition at line 28 of file omp_testsuite.h.
References g_counter__.
|
static |
|
static |
Definition at line 37 of file omp_testsuite.h.
References g_counter__.
|
static |
volatile int g_counter__ |
Definition at line 25 of file omp_testsuite.h.
Referenced by get_exit_value(), go_parallel(), go_parallel_close(), go_parallel_master(), go_parallel_nthreads(), and go_parallel_spread().