LLVM OpenMP 22.0.0git
kmp_sch_simd_runtime_static.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  id

Macros

#define delay()
#define seten(a, b, c)
#define SIMD_LEN   4

Enumerations

enum  sched { kmp_sch_static_balanced_chunked = 45 , kmp_sch_guided_simd = 46 , kmp_sch_runtime_simd = 47 }

Functions

int __kmpc_global_thread_num (id *)
void __kmpc_barrier (id *, int gtid)
void __kmpc_dispatch_init_4 (id *, int, enum sched, int, int, int, int)
void __kmpc_dispatch_init_8 (id *, int, enum sched, i64, i64, i64, i64)
int __kmpc_dispatch_next_4 (id *, int, void *, void *, void *, void *)
int __kmpc_dispatch_next_8 (id *, int, void *, void *, void *, void *)
void run_loop (int loop_lb, int loop_ub, int loop_st, int lchunk)
int main (int argc, char *argv[])

Variables

int err = 0
static id loc = {0, 2, 0, 0, ";file;func;0;0;;"}

Macro Definition Documentation

◆ delay

#define delay ( )
Value:
usleep(10);

Definition at line 17 of file kmp_sch_simd_runtime_static.c.

◆ seten

#define seten ( a,
b,
c )
Value:
setenv((a),(b),(c))
int a

Definition at line 18 of file kmp_sch_simd_runtime_static.c.

Referenced by main().

◆ SIMD_LEN

#define SIMD_LEN   4

Definition at line 21 of file kmp_sch_simd_runtime_static.c.

Enumeration Type Documentation

◆ sched

enum sched
Enumerator
kmp_sch_static_balanced_chunked 
kmp_sch_guided_simd 
kmp_sch_runtime_simd 

Definition at line 26 of file kmp_sch_simd_runtime_static.c.

Function Documentation

◆ __kmpc_barrier()

void __kmpc_barrier ( id * ,
int gtid )

Referenced by run_loop().

◆ __kmpc_dispatch_init_4()

void __kmpc_dispatch_init_4 ( id * ,
int ,
enum sched,
int ,
int ,
int ,
int  )

Referenced by run_loop().

◆ __kmpc_dispatch_init_8()

void __kmpc_dispatch_init_8 ( id * ,
int ,
enum sched,
i64 ,
i64 ,
i64 ,
i64  )

◆ __kmpc_dispatch_next_4()

int __kmpc_dispatch_next_4 ( id * ,
int ,
void * ,
void * ,
void * ,
void *  )

Referenced by run_loop().

◆ __kmpc_dispatch_next_8()

int __kmpc_dispatch_next_8 ( id * ,
int ,
void * ,
void * ,
void * ,
void *  )

◆ __kmpc_global_thread_num()

int __kmpc_global_thread_num ( id * )

Referenced by run_loop().

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 178 of file kmp_sch_simd_runtime_static.c.

References buf, err, run_loop(), and seten.

◆ run_loop()

void run_loop ( int loop_lb,
int loop_ub,
int loop_st,
int lchunk )

Variable Documentation

◆ err

int err = 0

Definition at line 22 of file kmp_sch_simd_runtime_static.c.

◆ loc

id loc = {0, 2, 0, 0, ";file;func;0;0;;"}
static

Definition at line 56 of file kmp_sch_simd_runtime_static.c.