LLVM OpenMP 20.0.0git
|
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#include <pthread.h>
#include <unistd.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/syscall.h>
#include "libomp_test_affinity.h"
Go to the source code of this file.
Macros | |
#define | _GNU_SOURCE |
Functions | |
int | __kmpc_global_thread_num (void *) |
int | get_os_thread_id () |
int | place_and_affinity_match () |
void * | thread_func (void *arg) |
int | main (int argc, char **argv) |
Variables | |
volatile int | entry_flag = 0 |
volatile int | flag = 0 |
volatile int | num_roots_arrived = 0 |
int | num_roots |
int | spawner = 0 |
pthread_mutex_t | lock |
int | register_workers = 0 |
affinity_mask_t * | full_mask |
#define _GNU_SOURCE |
Definition at line 12 of file root-threads-affinity.c.
Referenced by thread_func().
int get_os_thread_id | ( | ) |
Definition at line 34 of file root-threads-affinity.c.
Referenced by thread_func().
Definition at line 154 of file root-threads-affinity.c.
References affinity_mask_alloc(), full_mask, get_thread_affinity(), i, lock, num_roots, register_workers, spawner, status, and thread_func().
int place_and_affinity_match | ( | ) |
Definition at line 38 of file root-threads-affinity.c.
References affinity_mask_alloc(), affinity_mask_free(), affinity_mask_isset(), affinity_mask_snprintf(), AFFINITY_MAX_CPUS, buf, get_thread_affinity(), i, j, and mask.
Referenced by thread_func().
Definition at line 78 of file root-threads-affinity.c.
References __kmpc_global_thread_num(), affinity_mask_alloc(), affinity_mask_equal(), affinity_mask_free(), affinity_mask_snprintf(), buf, entry_flag, flag, full_mask, get_os_thread_id(), get_thread_affinity(), lock, mask, num_roots, num_roots_arrived, omp_get_num_threads(), omp_set_num_threads, place_and_affinity_match(), register_workers, and spawner.
Referenced by main().
volatile int entry_flag = 0 |
Definition at line 23 of file root-threads-affinity.c.
Referenced by thread_func().
volatile int flag = 0 |
Definition at line 24 of file root-threads-affinity.c.
Referenced by __kmp_atomic_execute_tasks_64(), __kmp_atomic_resume_64(), __kmp_atomic_suspend_64(), __kmp_check_deps(), __kmp_env_toPrint(), __kmp_execute_tasks_32(), __kmp_execute_tasks_64(), __kmp_execute_tasks_oncore(), __kmp_execute_tasks_template(), __kmp_hierarchical_barrier_gather(), __kmp_hierarchical_barrier_release(), __kmp_hyper_barrier_release(), __kmp_linear_barrier_gather_template(), __kmp_linear_barrier_release_template(), __kmp_null_resume_wrapper(), __kmp_reap_thread(), __kmp_release_64(), __kmp_release_template(), __kmp_resize_dist_barrier(), __kmp_resume_32(), __kmp_resume_64(), __kmp_resume_oncore(), __kmp_resume_template(), __kmp_suspend_32(), __kmp_suspend_64(), __kmp_suspend_oncore(), __kmp_suspend_template(), __kmp_task_team_wait(), __kmp_tasking_barrier(), __kmp_tree_barrier_gather(), __kmp_tree_barrier_release(), __kmp_wait_64(), __kmp_wait_template(), __kmp_win32_cond_wait(), __kmpc_doacross_post(), __kmpc_doacross_wait(), __kmpc_end_taskgroup(), __kmpc_omp_taskwait_deps_51(), __kmpc_omp_taskwait_template(), FTN_SET_DYNAMIC(), FTN_SET_NESTED(), main(), kmp_flag_oncore::notdone_check(), ompc_set_dynamic(), ompc_set_nested(), ompt_multiplex_callback_parallel_begin(), ompt_multiplex_callback_parallel_end(), on_ompt_callback_parallel_begin(), on_ompt_callback_parallel_end(), thread_func(), and wait_on_flag().
affinity_mask_t* full_mask |
Definition at line 30 of file root-threads-affinity.c.
Referenced by main(), and thread_func().
pthread_mutex_t lock |
Definition at line 28 of file root-threads-affinity.c.
Referenced by main(), and thread_func().
int num_roots |
Definition at line 26 of file root-threads-affinity.c.
Referenced by main(), and thread_func().
volatile int num_roots_arrived = 0 |
Definition at line 25 of file root-threads-affinity.c.
Referenced by thread_func().
int register_workers = 0 |
Definition at line 29 of file root-threads-affinity.c.
Referenced by main(), and thread_func().
int spawner = 0 |
Definition at line 27 of file root-threads-affinity.c.
Referenced by main(), and thread_func().