Dynamic Load Balance 3.6.1+32-59d1
lewi_async.h
Go to the documentation of this file.
1/*********************************************************************************/
2/* Copyright 2009-2024 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#ifndef LEWI_ASYNC_H
20#define LEWI_ASYNC_H
21
22#include "LB_core/spd.h"
23
26
29
32
34int lewi_async_LendCpus(const subprocess_descriptor_t *spd, int ncpus);
36int lewi_async_AcquireCpus(const subprocess_descriptor_t *spd, int ncpus);
38int lewi_async_BorrowCpus(const subprocess_descriptor_t *spd, int ncpus);
39
40#endif /* LEWI_ASYNC_H */
int lewi_async_Reclaim(const subprocess_descriptor_t *spd)
Definition: lewi_async.c:229
int lewi_async_Borrow(const subprocess_descriptor_t *spd)
Definition: lewi_async.c:294
int lewi_async_Disable(const subprocess_descriptor_t *spd)
Definition: lewi_async.c:144
int lewi_async_LendCpus(const subprocess_descriptor_t *spd, int ncpus)
Definition: lewi_async.c:196
int lewi_async_Init(subprocess_descriptor_t *spd)
Definition: lewi_async.c:85
int lewi_async_BorrowCpus(const subprocess_descriptor_t *spd, int ncpus)
Definition: lewi_async.c:298
int lewi_async_OutOfBlockingCall(const subprocess_descriptor_t *spd)
Definition: lewi_async.c:185
int lewi_async_IntoBlockingCall(const subprocess_descriptor_t *spd)
Definition: lewi_async.c:174
int lewi_async_Finalize(subprocess_descriptor_t *spd)
Definition: lewi_async.c:106
int lewi_async_AcquireCpus(const subprocess_descriptor_t *spd, int ncpus)
Definition: lewi_async.c:253
int lewi_async_Enable(const subprocess_descriptor_t *spd)
Definition: lewi_async.c:128
int lewi_async_Lend(const subprocess_descriptor_t *spd)
Definition: lewi_async.c:191
Definition: spd.h:33