geopm
3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
|
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
#include <limits.h>
#include "geopm_sched.h"
#include "geopm_error.h"
Macros | |
#define | _GNU_SOURCE |
Functions | |
int | geopm_sched_num_cpu (void) |
int | geopm_sched_get_cpu (void) |
int | geopm_sched_proc_cpuset_helper (int num_cpu, uint32_t *proc_cpuset, FILE *fid) |
int | geopm_sched_proc_cpuset_pid (int pid, int num_cpu, cpu_set_t *cpuset) |
int | geopm_sched_proc_cpuset (int num_cpu, cpu_set_t *proc_cpuset) |
int | geopm_sched_woomp (int num_cpu, cpu_set_t *woomp) |
#define _GNU_SOURCE |
int geopm_sched_get_cpu | ( | void | ) |
int geopm_sched_num_cpu | ( | void | ) |
int geopm_sched_proc_cpuset | ( | int | num_cpu, |
cpu_set_t * | proc_cpuset | ||
) |
int geopm_sched_proc_cpuset_helper | ( | int | num_cpu, |
uint32_t * | proc_cpuset, | ||
FILE * | fid | ||
) |
int geopm_sched_proc_cpuset_pid | ( | int | pid, |
int | num_cpu, | ||
cpu_set_t * | cpuset | ||
) |
int 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.