LLVM OpenMP 20.0.0git
Macros | Functions
teams-affinity.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libomp_test_affinity.h"
#include "libomp_test_topology.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 
#define _STR(X)   #X
 
#define STR(X)   _STR(X)
 
#define MAX_NTEAMS   256
 

Functions

static void set_default_max_nteams ()
 
static int get_max_nteams ()
 
static omp_proc_bind_t get_teams_proc_bind ()
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 16 of file teams-affinity.c.

◆ _STR

#define _STR (   X)    #X

Definition at line 24 of file teams-affinity.c.

◆ MAX_NTEAMS

#define MAX_NTEAMS   256

Definition at line 28 of file teams-affinity.c.

◆ STR

#define STR (   X)    _STR(X)

Definition at line 25 of file teams-affinity.c.

Function Documentation

◆ get_max_nteams()

static int get_max_nteams ( )
static

Definition at line 36 of file teams-affinity.c.

References MAX_NTEAMS, and value.

Referenced by main().

◆ get_teams_proc_bind()

static omp_proc_bind_t get_teams_proc_bind ( )
static

Definition at line 52 of file teams-affinity.c.

References value.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ set_default_max_nteams()

static void set_default_max_nteams ( )
static

Definition at line 31 of file teams-affinity.c.

References MAX_NTEAMS, and STR.

Referenced by main().