PLASMA: /home/mathieu/svn/plasma/trunk/tools/plasma_2.5.0/control/control.h Source File

PLASMA 2.4.6

- Main Page
- Modules
- Data Types List

All Data Structures Functions Groups
control.h
1
14 #ifndef _PLASMA_CONTROL_H_
15 #define _PLASMA_CONTROL_H_
16
17 #ifndef __cplusplus
18 extern int pthread_getconcurrency(void);
19 extern int pthread_setconcurrency(int);
20 #endif
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /***************************************************************************/
29 void plasma_barrier_init(plasma_context_t *plasma);
30 void plasma_barrier_finalize(plasma_context_t *plasma);
31 void plasma_barrier(plasma_context_t *plasma);
32 void plasma_barrier_bw_init(plasma_context_t *plasma);
33 void plasma_barrier_bw_finalize(plasma_context_t *plasma);
34 void plasma_barrier_bw(plasma_context_t *plasma);
35 void *plasma_parallel_section(void *plasma);
36 int plasma_setaffinity(int rank);
37 int plasma_unsetaffinity();
38 int plasma_yield();
39 void plasma_topology_init();
40 void plasma_topology_finalize();
41 int plasma_get_numthreads();
42 int plasma_get_numthreads_numa();
43 int plasma_get_affthreads(int *coresbind);
44
45 /***************************************************************************/
48 int PLASMA_Init(int cores);
49 int PLASMA_Init_Affinity(int cores, int *bindtab);
50 int PLASMA_Finalize();
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif