LLVM OpenMP 19.0.0git
Classes | Macros | Typedefs | Enumerations | Functions | Variables
kmp_sch_simd_guided.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  id
 

Macros

#define delay()   usleep(10);
 
#define SIMD_LEN   4
 

Typedefs

typedef unsigned u32
 
typedef long long i64
 
typedef unsigned long long u64
 

Enumerations

enum  sched {
  kmp_sch_static_balanced_chunked = 45 , kmp_sch_guided_simd = 46 , kmp_sch_runtime_simd = 47 , kmp_sch_static_balanced_chunked = 45 ,
  kmp_sch_guided_simd = 46 , kmp_sch_runtime_simd = 47 , kmp_sch_static_balanced_chunked = 45 , kmp_sch_guided_simd = 46 ,
  kmp_sch_runtime_simd = 47 , 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 *)
 
int run_loop_64 (i64 loop_lb, i64 loop_ub, i64 loop_st, int loop_chunk)
 
int run_loop_32 (int loop_lb, int loop_ub, int loop_st, int loop_chunk)
 
int run_64 (int num_th)
 
int run_32 (int num_th)
 
int main ()
 

Variables

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

Macro Definition Documentation

◆ delay

#define delay ( )    usleep(10);

Definition at line 16 of file kmp_sch_simd_guided.c.

◆ SIMD_LEN

#define SIMD_LEN   4

Definition at line 22 of file kmp_sch_simd_guided.c.

Typedef Documentation

◆ i64

typedef long long i64

Definition at line 32 of file kmp_sch_simd_guided.c.

◆ u32

typedef unsigned u32

Definition at line 31 of file kmp_sch_simd_guided.c.

◆ u64

typedef unsigned long long u64

Definition at line 33 of file kmp_sch_simd_guided.c.

Enumeration Type Documentation

◆ sched

enum sched
Enumerator
kmp_sch_static_balanced_chunked 
kmp_sch_guided_simd 
kmp_sch_runtime_simd 
kmp_sch_static_balanced_chunked 
kmp_sch_guided_simd 
kmp_sch_runtime_simd 
kmp_sch_static_balanced_chunked 
kmp_sch_guided_simd 
kmp_sch_runtime_simd 
kmp_sch_static_balanced_chunked 
kmp_sch_guided_simd 
kmp_sch_runtime_simd 

Definition at line 26 of file kmp_sch_simd_guided.c.

Function Documentation

◆ __kmpc_barrier()

void __kmpc_barrier ( id ,
int  gtid 
)

Referenced by run_loop_32(), and run_loop_64().

◆ __kmpc_dispatch_init_4()

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

Referenced by run_loop_32().

◆ __kmpc_dispatch_init_8()

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

Referenced by run_loop_64().

◆ __kmpc_dispatch_next_4()

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

Referenced by run_loop_32().

◆ __kmpc_dispatch_next_8()

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

Referenced by run_loop_64().

◆ __kmpc_global_thread_num()

int __kmpc_global_thread_num ( id )

◆ main()

int main ( void  )

Definition at line 408 of file kmp_sch_simd_guided.c.

References __kmp_hidden_helper_threads_num, err, run_32(), and run_64().

◆ run_32()

int run_32 ( int  num_th)

Definition at line 387 of file kmp_sch_simd_guided.c.

References err, run_loop_32(), and SIMD_LEN.

Referenced by main().

◆ run_64()

int run_64 ( int  num_th)

Definition at line 366 of file kmp_sch_simd_guided.c.

References err, run_loop_64(), and SIMD_LEN.

Referenced by main().

◆ run_loop_32()

int run_loop_32 ( int  loop_lb,
int  loop_ub,
int  loop_st,
int  loop_chunk 
)

◆ run_loop_64()

int run_loop_64 ( i64  loop_lb,
i64  loop_ub,
i64  loop_st,
int  loop_chunk 
)

Variable Documentation

◆ __kmp_hidden_helper_threads_num

int __kmp_hidden_helper_threads_num = 0
static

Definition at line 53 of file kmp_sch_simd_guided.c.

Referenced by main(), run_loop_32(), and run_loop_64().

◆ loc

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

Definition at line 50 of file kmp_sch_simd_guided.c.

Referenced by run_loop_32(), and run_loop_64().