Dynamic Load Balance 3.6.1+32-59d1
lewi.h
Go to the documentation of this file.
1/*********************************************************************************/
2/* Copyright 2009-2021 Barcelona Supercomputing Center */
3/* */
4/* This file is part of the DLB library. */
5/* */
6/* DLB is free software: you can redistribute it and/or modify */
7/* it under the terms of the GNU Lesser General Public License as published by */
8/* the Free Software Foundation, either version 3 of the License, or */
9/* (at your option) any later version. */
10/* */
11/* DLB is distributed in the hope that it will be useful, */
12/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14/* GNU Lesser General Public License for more details. */
15/* */
16/* You should have received a copy of the GNU Lesser General Public License */
17/* along with DLB. If not, see <https://www.gnu.org/licenses/>. */
18/*********************************************************************************/
19
20#ifndef LEWI_H
21#define LEWI_H
22
23#include "LB_core/spd.h"
24
29int lewi_SetMaxParallelism(const subprocess_descriptor_t *spd, int max);
31
34
36
38
40int lewi_BorrowCpus(const subprocess_descriptor_t *spd, int ncpus);
41
42#endif /* LEWI_H */
int lewi_BorrowCpus(const subprocess_descriptor_t *spd, int ncpus)
Definition: lewi.c:158
int lewi_UnsetMaxParallelism(const subprocess_descriptor_t *spd)
Definition: lewi.c:102
int lewi_SetMaxParallelism(const subprocess_descriptor_t *spd, int max)
Definition: lewi.c:93
int lewi_EnableDLB(const subprocess_descriptor_t *spd)
Definition: lewi.c:77
int lewi_Lend(const subprocess_descriptor_t *spd)
Definition: lewi.c:140
int lewi_Init(subprocess_descriptor_t *spd)
Definition: lewi.c:45
int lewi_DisableDLB(const subprocess_descriptor_t *spd)
Definition: lewi.c:83
int lewi_Borrow(const subprocess_descriptor_t *spd)
Definition: lewi.c:154
int lewi_OutOfBlockingCall(const subprocess_descriptor_t *spd)
Definition: lewi.c:125
int lewi_Reclaim(const subprocess_descriptor_t *spd)
Definition: lewi.c:147
int lewi_IntoBlockingCall(const subprocess_descriptor_t *spd)
Definition: lewi.c:107
int lewi_Finalize(subprocess_descriptor_t *spd)
Definition: lewi.c:72
Definition: spd.h:33