|
LLVM OpenMP 22.0.0git
|
#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_t * | topology_get_mask_from_file (const char *filename) |
| static int | topology_get_num_cpus () |
| static int | topology_using_full_mask () |
| static place_list_t * | topology_alloc_type_places (topology_obj_type_t type) |
| static place_list_t * | topology_alloc_openmp_places () |
| static place_list_t * | topology_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 struct place_list_t place_list_t |
| typedef enum topology_obj_type_t topology_obj_type_t |
| enum 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.
|
static |
Definition at line 29 of file libomp_test_topology.h.
References f().
Referenced by topology_get_mask_from_file().
Definition at line 41 of file libomp_test_topology.h.
References f().
Referenced by topology_get_mask_from_file().
|
static |
Definition at line 321 of file libomp_test_topology.h.
References count, place_list_t::current_place, i, j, place_list_t::num_places, parent, place_list_t::place_nums, and proc_bind_die().
Referenced by main().
Definition at line 280 of file libomp_test_topology.h.
References args.
Referenced by proc_bind_check().
|
static |
Definition at line 225 of file libomp_test_topology.h.
References affinity_mask_alloc(), affinity_mask_count(), affinity_mask_set(), place_list_t::current_place, i, mask, place_list_t::masks, place_list_t::num_places, p, and place_list_t::place_nums.
Referenced by main().
|
static |
Definition at line 201 of file libomp_test_topology.h.
References affinity_mask_alloc(), affinity_mask_set(), place_list_t::current_place, i, mask, place_list_t::masks, place_list_t::num_places, and place_list_t::place_nums.
Referenced by check_places(), check_places(), check_places(), check_places(), and main().
|
static |
Definition at line 150 of file libomp_test_topology.h.
References affinity_mask_alloc(), affinity_mask_equal(), affinity_mask_free(), affinity_mask_set(), buf, place_list_t::current_place, i, mask, place_list_t::masks, place_list_t::num_places, place_list_t::place_nums, topology_get_mask_from_file(), topology_get_num_cpus(), TOPOLOGY_OBJ_CORE, TOPOLOGY_OBJ_SOCKET, TOPOLOGY_OBJ_THREAD, and type.
Referenced by check_places(), check_places(), check_places(), and check_places().
|
static |
Definition at line 260 of file libomp_test_topology.h.
References affinity_mask_free(), i, place_list_t::masks, place_list_t::num_places, and place_list_t::place_nums.
Referenced by check_places(), check_places(), check_places(), check_places(), and main().
|
static |
Definition at line 52 of file libomp_test_topology.h.
References affinity_mask_alloc(), affinity_mask_free(), affinity_mask_set(), f(), get_first_nonspace_from_file(), get_integer_from_file(), i, mask, and status.
Referenced by topology_alloc_type_places().
|
static |
Definition at line 112 of file libomp_test_topology.h.
References buf.
Referenced by topology_alloc_type_places(), and topology_using_full_mask().
|
static |
Definition at line 269 of file libomp_test_topology.h.
References affinity_mask_snprintf(), buf, i, and p.
Referenced by compare_abs_hw_subset_places(), compare_hw_subset_places(), compare_places(), and compare_places().
|
static |
Definition at line 132 of file libomp_test_topology.h.
References affinity_mask_alloc(), affinity_mask_free(), affinity_mask_isset(), get_thread_affinity(), mask, and topology_get_num_cpus().