#include <stdio.h>
#include "geopm_public.h"
#include <sched.h>
Go to the source code of this file.
◆ _GNU_SOURCE
◆ geopm_sched_get_cpu()
◆ geopm_sched_num_cpu()
◆ geopm_sched_proc_cpuset()
int GEOPM_PUBLIC geopm_sched_proc_cpuset |
( |
int |
num_cpu, |
|
|
cpu_set_t * |
proc_cpuset |
|
) |
| |
◆ geopm_sched_proc_cpuset_pid()
int GEOPM_PUBLIC geopm_sched_proc_cpuset_pid |
( |
int |
pid, |
|
|
int |
num_cpu, |
|
|
cpu_set_t * |
cpuset |
|
) |
| |
◆ geopm_sched_woomp()
int GEOPM_PUBLIC geopm_sched_woomp |
( |
int |
num_cpu, |
|
|
cpu_set_t * |
woomp |
|
) |
| |
Function that returns a cpuset that has bits set for all CPUs enabled for the process which are not used by OpenMP. Rather than returning an empty mask, if all CPUs allocated for the process are used by OpenMP, then the woomp mask will have all bits set.