LLVM OpenMP 20.0.0git
Classes | Typedefs | Enumerations | Functions
libomp_test_topology.h File Reference
#include "libomp_test_affinity.h"
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <errno.h>
#include <ctype.h>
#include <omp.h>
#include <stdarg.h>

Go to the source code of this file.

Classes

struct  place_list_t
 

Typedefs

typedef enum topology_obj_type_t topology_obj_type_t
 
typedef struct place_list_t place_list_t
 

Enumerations

enum  topology_obj_type_t { TOPOLOGY_OBJ_THREAD , TOPOLOGY_OBJ_CORE , TOPOLOGY_OBJ_SOCKET , TOPOLOGY_OBJ_MAX }
 

Functions

static int get_first_nonspace_from_file (FILE *f)
 
static int get_integer_from_file (FILE *f, int *number)
 
static affinity_mask_ttopology_get_mask_from_file (const char *filename)
 
static int topology_get_num_cpus ()
 
static int topology_using_full_mask ()
 
static place_list_ttopology_alloc_type_places (topology_obj_type_t type)
 
static place_list_ttopology_alloc_openmp_places ()
 
static place_list_ttopology_alloc_openmp_partition ()
 
static void topology_free_places (place_list_t *places)
 
static void topology_print_places (const place_list_t *p)
 
static void proc_bind_die (omp_proc_bind_t proc_bind, int T, int P, const char *format,...)
 
static void proc_bind_check (omp_proc_bind_t proc_bind, const place_list_t *parent, place_list_t **children, int nchildren)
 

Typedef Documentation

◆ place_list_t

typedef struct place_list_t place_list_t

◆ topology_obj_type_t

Enumeration Type Documentation

◆ topology_obj_type_t

Enumerator
TOPOLOGY_OBJ_THREAD 
TOPOLOGY_OBJ_CORE 
TOPOLOGY_OBJ_SOCKET 
TOPOLOGY_OBJ_MAX 

Definition at line 13 of file libomp_test_topology.h.

Function Documentation

◆ get_first_nonspace_from_file()

static int get_first_nonspace_from_file ( FILE *  f)
static

Definition at line 29 of file libomp_test_topology.h.

References f().

Referenced by topology_get_mask_from_file().

◆ get_integer_from_file()

static int get_integer_from_file ( FILE *  f,
int number 
)
static

Definition at line 41 of file libomp_test_topology.h.

References f().

Referenced by topology_get_mask_from_file().

◆ proc_bind_check()

static void proc_bind_check ( omp_proc_bind_t  proc_bind,
const place_list_t parent,
place_list_t **  children,
int  nchildren 
)
static

◆ proc_bind_die()

static void proc_bind_die ( omp_proc_bind_t  proc_bind,
int  T,
int  P,
const char format,
  ... 
)
static

Definition at line 280 of file libomp_test_topology.h.

References args.

Referenced by proc_bind_check().

◆ topology_alloc_openmp_partition()

static place_list_t * topology_alloc_openmp_partition ( )
static

◆ topology_alloc_openmp_places()

static place_list_t * topology_alloc_openmp_places ( )
static

◆ topology_alloc_type_places()

static place_list_t * topology_alloc_type_places ( topology_obj_type_t  type)
static

◆ topology_free_places()

static void topology_free_places ( place_list_t places)
static

◆ topology_get_mask_from_file()

static affinity_mask_t * topology_get_mask_from_file ( const char filename)
static

◆ topology_get_num_cpus()

static int topology_get_num_cpus ( )
static

Definition at line 112 of file libomp_test_topology.h.

References buf.

Referenced by topology_alloc_type_places(), and topology_using_full_mask().

◆ topology_print_places()

static void topology_print_places ( const place_list_t p)
static

◆ topology_using_full_mask()

static int topology_using_full_mask ( )
static