LLVM OpenMP 20.0.0git
|
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | affinity_mask_t |
Macros | |
#define | _GNU_SOURCE |
#define | AFFINITY_MAX_CPUS (32 * 64) |
Typedefs | |
typedef struct affinity_mask_t | affinity_mask_t |
Functions | |
static void | affinity_mask_zero (affinity_mask_t *mask) |
static affinity_mask_t * | affinity_mask_alloc () |
static void | affinity_mask_free (affinity_mask_t *mask) |
static void | affinity_mask_copy (affinity_mask_t *dest, const affinity_mask_t *src) |
static void | affinity_mask_set (affinity_mask_t *mask, int cpu) |
static void | affinity_mask_clr (affinity_mask_t *mask, int cpu) |
static int | affinity_mask_isset (const affinity_mask_t *mask, int cpu) |
static int | affinity_mask_count (const affinity_mask_t *mask) |
static int | affinity_mask_equal (const affinity_mask_t *mask1, const affinity_mask_t *mask2) |
static void | get_thread_affinity (affinity_mask_t *mask) |
static void | set_thread_affinity (const affinity_mask_t *mask) |
static void | affinity_update_snprintf_values (char **ptr, size_t *remaining, size_t n, size_t *retval) |
static size_t | affinity_mask_snprintf (char *buf, size_t bufsize, const affinity_mask_t *mask) |
#define _GNU_SOURCE |
Definition at line 5 of file libomp_test_affinity.h.
#define AFFINITY_MAX_CPUS (32 * 64) |
Definition at line 21 of file libomp_test_affinity.h.
typedef struct affinity_mask_t affinity_mask_t |
|
static |
Definition at line 29 of file libomp_test_affinity.h.
References affinity_mask_zero(), AFFINITY_MAX_CPUS, affinity_mask_t::set, and affinity_mask_t::setsize.
Referenced by check_primary_thread_affinity(), main(), place_and_affinity_match(), set_subset_affinity(), thread_func(), topology_alloc_openmp_partition(), topology_alloc_openmp_places(), topology_alloc_type_places(), topology_get_mask_from_file(), and topology_using_full_mask().
|
static |
Definition at line 50 of file libomp_test_affinity.h.
References mask.
Referenced by set_subset_affinity().
|
static |
Definition at line 41 of file libomp_test_affinity.h.
References affinity_mask_t::set.
Referenced by set_subset_affinity().
|
static |
Definition at line 58 of file libomp_test_affinity.h.
References mask.
Referenced by compare_abs_hw_subset_places(), compare_hw_subset_places(), main(), and topology_alloc_openmp_partition().
|
static |
Definition at line 62 of file libomp_test_affinity.h.
References affinity_mask_t::set, and affinity_mask_t::setsize.
Referenced by check_primary_thread_affinity(), compare_places(), main(), thread_func(), and topology_alloc_type_places().
|
static |
Definition at line 39 of file libomp_test_affinity.h.
References mask.
Referenced by check_primary_thread_affinity(), main(), place_and_affinity_match(), set_subset_affinity(), thread_func(), topology_alloc_type_places(), topology_free_places(), topology_get_mask_from_file(), and topology_using_full_mask().
|
static |
Definition at line 54 of file libomp_test_affinity.h.
References mask.
Referenced by affinity_mask_snprintf(), place_and_affinity_match(), set_subset_affinity(), and topology_using_full_mask().
|
static |
Definition at line 46 of file libomp_test_affinity.h.
References mask.
Referenced by topology_alloc_openmp_partition(), topology_alloc_openmp_places(), topology_alloc_type_places(), and topology_get_mask_from_file().
|
static |
Definition at line 93 of file libomp_test_affinity.h.
References affinity_mask_isset(), AFFINITY_MAX_CPUS, affinity_update_snprintf_values(), begin, buf, end, and mask.
Referenced by main(), place_and_affinity_match(), thread_func(), and topology_print_places().
|
static |
Definition at line 25 of file libomp_test_affinity.h.
References mask.
Referenced by affinity_mask_alloc().
|
static |
Definition at line 81 of file libomp_test_affinity.h.
Referenced by affinity_mask_snprintf().
|
static |
Definition at line 67 of file libomp_test_affinity.h.
References mask.
Referenced by check_primary_thread_affinity(), main(), place_and_affinity_match(), thread_func(), and topology_using_full_mask().
|
static |
Definition at line 74 of file libomp_test_affinity.h.
References mask.
Referenced by set_subset_affinity().