LLVM OpenMP 20.0.0git
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
#include "libomp_test_affinity.h"
Go to the source code of this file.
Macros | |
#define | CHECK_EQUAL 0 |
#define | CHECK_NOT_EQUAL 1 |
#define | CHECK_PRIMARY_THREAD_AFFINITY_EQUAL(other_aff) check_primary_thread_affinity(__LINE__, other_aff, CHECK_EQUAL) |
#define | CHECK_PRIMARY_THREAD_AFFINITY_NOT_EQUAL(other_aff) check_primary_thread_affinity(__LINE__, other_aff, CHECK_NOT_EQUAL) |
Functions | |
void | check_primary_thread_affinity (int line, affinity_mask_t *other_aff, int type) |
int | main () |
#define CHECK_EQUAL 0 |
Definition at line 11 of file kmp-affinity-reset.c.
#define CHECK_NOT_EQUAL 1 |
Definition at line 12 of file kmp-affinity-reset.c.
#define CHECK_PRIMARY_THREAD_AFFINITY_EQUAL | ( | other_aff | ) | check_primary_thread_affinity(__LINE__, other_aff, CHECK_EQUAL) |
Definition at line 32 of file kmp-affinity-reset.c.
#define CHECK_PRIMARY_THREAD_AFFINITY_NOT_EQUAL | ( | other_aff | ) | check_primary_thread_affinity(__LINE__, other_aff, CHECK_NOT_EQUAL) |
Definition at line 34 of file kmp-affinity-reset.c.
void check_primary_thread_affinity | ( | int | line, |
affinity_mask_t * | other_aff, | ||
int | type | ||
) |
Definition at line 14 of file kmp-affinity-reset.c.
References affinity_mask_alloc(), affinity_mask_equal(), affinity_mask_free(), CHECK_EQUAL, CHECK_NOT_EQUAL, get_thread_affinity(), and type.
Definition at line 37 of file kmp-affinity-reset.c.
References affinity_mask_alloc(), affinity_mask_free(), CHECK_PRIMARY_THREAD_AFFINITY_EQUAL, CHECK_PRIMARY_THREAD_AFFINITY_NOT_EQUAL, get_thread_affinity(), i, and omp_set_max_active_levels.