geopm  3.1.1.dev214+gba4f9f6d
GEOPM - Global Extensible Open Power Manager
Macros | Functions
geopm_sched.h File Reference
#include <stdio.h>
#include "geopm_public.h"
#include <sched.h>
Include dependency graph for geopm_sched.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

int GEOPM_PUBLIC geopm_sched_num_cpu (void)
 
int GEOPM_PUBLIC geopm_sched_get_cpu (void)
 
int GEOPM_PUBLIC geopm_sched_proc_cpuset (int num_cpu, cpu_set_t *proc_cpuset)
 
int GEOPM_PUBLIC geopm_sched_proc_cpuset_pid (int pid, int num_cpu, cpu_set_t *cpuset)
 
int GEOPM_PUBLIC 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_PUBLIC geopm_sched_get_cpu ( void  )

◆ geopm_sched_num_cpu()

int GEOPM_PUBLIC geopm_sched_num_cpu ( void  )

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