00001
00014 #ifndef _PLASMA_CONTROL_H_
00015 #define _PLASMA_CONTROL_H_
00016
00017 #ifndef __cplusplus
00018 extern int pthread_getconcurrency(void);
00019 extern int pthread_setconcurrency(int);
00020 #endif
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00026
00029 void plasma_barrier_init(plasma_context_t *plasma);
00030 void plasma_barrier(plasma_context_t *plasma);
00031 void *plasma_parallel_section(void *plasma);
00032 int plasma_setaffinity(int rank);
00033 int plasma_yield();
00034 void plasma_topology_init();
00035 void plasma_topology_finalize();
00036 int plasma_get_numthreads();
00037 int plasma_get_numthreads_numa();
00038 int plasma_get_affthreads(int *coresbind);
00039
00040
00043 int PLASMA_Init(int cores);
00044 int PLASMA_Init_Affinity(int cores, int *bindtab);
00045 int PLASMA_Finalize();
00046
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050
00051 #endif