LLVM OpenMP 20.0.0git
Classes | Macros | Typedefs | Functions
kmp_num_teams.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>

Go to the source code of this file.

Classes

struct  ident
 The ident structure that describes a source location. More...
 

Macros

#define NT   8
 

Typedefs

typedef int kmp_int32
 
typedef struct ident ident_t
 

Functions

int __kmpc_global_thread_num (ident_t *)
 
void __kmpc_push_num_teams_51 (ident_t *, kmp_int32, kmp_int32, kmp_int32, kmp_int32)
 
void check_num_teams (int num_teams_lb, int num_teams_ub, int thread_limit)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ NT

#define NT   8

Definition at line 10 of file kmp_num_teams.c.

Typedef Documentation

◆ ident_t

typedef struct ident ident_t

◆ kmp_int32

typedef int kmp_int32

Definition at line 15 of file kmp_num_teams.c.

Function Documentation

◆ check_num_teams()

void check_num_teams ( int  num_teams_lb,
int  num_teams_ub,
int  thread_limit 
)

Definition at line 30 of file kmp_num_teams.c.

References __kmpc_global_thread_num(), __kmpc_push_num_teams_51(), a, and omp_get_num_threads().

Referenced by main().

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 79 of file kmp_num_teams.c.

References check_num_teams(), NT, and omp_set_num_threads.