LLVM OpenMP 19.0.0git
Macros | Functions | Variables
omp_testsuite.h File Reference
#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__
 

Macro Definition Documentation

◆ LOOPCOUNT

#define LOOPCOUNT   1000 /* Number of iterations to slit amongst threads */

Definition at line 12 of file omp_testsuite.h.

◆ MAX_TASKS_PER_THREAD

#define MAX_TASKS_PER_THREAD   5

Definition at line 21 of file omp_testsuite.h.

◆ NUM_TASKS

#define NUM_TASKS   25

Definition at line 20 of file omp_testsuite.h.

◆ REPETITIONS

#define REPETITIONS   10 /* Number of times to run each test */

Definition at line 13 of file omp_testsuite.h.

◆ SLEEPTIME

#define SLEEPTIME   1

Definition at line 16 of file omp_testsuite.h.

Function Documentation

◆ get_exit_value()

static int get_exit_value ( )
inlinestatic

Definition at line 73 of file omp_testsuite.h.

References g_counter__.

Referenced by main().

◆ go_parallel()

static void go_parallel ( )
static

Definition at line 28 of file omp_testsuite.h.

References g_counter__.

Referenced by main().

◆ go_parallel_close()

static void go_parallel_close ( )
static

Definition at line 55 of file omp_testsuite.h.

References g_counter__.

Referenced by main().

◆ go_parallel_master()

static void go_parallel_master ( )
static

Definition at line 64 of file omp_testsuite.h.

References g_counter__.

Referenced by main().

◆ go_parallel_nthreads()

static void go_parallel_nthreads ( int  nthreads)
static

Definition at line 37 of file omp_testsuite.h.

References g_counter__.

Referenced by main().

◆ go_parallel_spread()

static void go_parallel_spread ( )
static

Definition at line 46 of file omp_testsuite.h.

References g_counter__.

Referenced by main().

Variable Documentation

◆ g_counter__

volatile int g_counter__