geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
Macros | Functions
geopm_sched.c File Reference
#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"
Include dependency graph for geopm_sched.c:

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)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Function Documentation

◆ geopm_sched_get_cpu()

int geopm_sched_get_cpu ( void  )

◆ geopm_sched_num_cpu()

int geopm_sched_num_cpu ( void  )

◆ geopm_sched_proc_cpuset()

int geopm_sched_proc_cpuset ( int  num_cpu,
cpu_set_t *  proc_cpuset 
)

◆ geopm_sched_proc_cpuset_helper()

int geopm_sched_proc_cpuset_helper ( int  num_cpu,
uint32_t *  proc_cpuset,
FILE *  fid 
)

◆ geopm_sched_proc_cpuset_pid()

int geopm_sched_proc_cpuset_pid ( int  pid,
int  num_cpu,
cpu_set_t *  cpuset 
)

◆ geopm_sched_woomp()

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.