Dynamic Load Balance 3.6.1+32-59d1
dlbf_drom.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
20 interface
21 function dlb_drom_attach() result (ierr) &
22 & bind(c, name='DLB_DROM_Attach')
23 use iso_c_binding
24 integer(kind=c_int) :: ierr
25 end function dlb_drom_attach
26
27 function dlb_drom_detach() result (ierr) &
28 & bind(c, name='DLB_DROM_Detach')
29 use iso_c_binding
30 integer(kind=c_int) :: ierr
31 end function dlb_drom_detach
32
33 function dlb_drom_getnumcpus(ncpus) result (ierr) &
34 & bind(c, name='DLB_DROM_GetNumCpus')
35 use iso_c_binding
36 integer(kind=c_int) :: ierr
37 integer(kind=c_int), intent(in) :: ncpus
38 end function dlb_drom_getnumcpus
39
40 function dlb_drom_setprocessmaskstr(pid, mask, flags) &
41 & result (ierr) &
42 & bind(c, name='DLB_DROM_SetProcessMaskStr')
43 use iso_c_binding
44 integer(kind=c_int) :: ierr
45 integer(kind=c_int), value, intent(in) :: pid
46 character(kind=c_char), intent(in) :: mask(*)
47 integer(kind=c_int), value, intent(in) :: flags
48 end function dlb_drom_setprocessmaskstr
49 end interface
50
51! -*- fortran -*- vim: set ft=fortran:
int DLB_DROM_SetProcessMaskStr(int pid, const char *mask, dlb_drom_flags_t flags)
Set the process mask of the given PID.
Definition: DLB_interface_drom.c:96
int DLB_DROM_GetNumCpus(int *ncpus)
Get the number of CPUs in the node.
Definition: DLB_interface_drom.c:62
int DLB_DROM_Detach(void)
Detach current process from DLB system.
Definition: DLB_interface_drom.c:55
!Copyright Barcelona Supercomputing Center !This file is part of the DLB library !DLB is free either version of the !but WITHOUT ANY WARRANTY
Definition: dlbf_drom.h:12
!Copyright Barcelona Supercomputing Center !This file is part of the DLB library !DLB is free either version of the or(at your option) any later version. ! ! ! ! DLB is distributed in the hope that it will be useful
without even the implied warranty of !MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE See the !GNU Lesser General Public License for more details !You should have received a copy of the GNU Lesser General Public License !along with DLB If not
Definition: dlbf_drom.h:17
!Copyright Barcelona Supercomputing Center !This file is part of the DLB library !DLB is free either version of the License
Definition: dlbf_drom.h:8
!Copyright Barcelona Supercomputing Center !This file is part of the DLB library !DLB is free software
Definition: dlbf_drom.h:8