LLVM OpenMP 20.0.0git
Macros | Functions
kmp-affinity-reset.c File Reference
#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 ()
 

Macro Definition Documentation

◆ CHECK_EQUAL

#define CHECK_EQUAL   0

Definition at line 11 of file kmp-affinity-reset.c.

◆ CHECK_NOT_EQUAL

#define CHECK_NOT_EQUAL   1

Definition at line 12 of file kmp-affinity-reset.c.

◆ CHECK_PRIMARY_THREAD_AFFINITY_EQUAL

#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.

◆ CHECK_PRIMARY_THREAD_AFFINITY_NOT_EQUAL

#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.

Function Documentation

◆ check_primary_thread_affinity()

void check_primary_thread_affinity ( int  line,
affinity_mask_t other_aff,
int  type 
)

◆ main()

int main ( void  )