Barrelfish
Functions
bomp_init.c File Reference

API to use the bomp library. More...

Functions

int bomp_init_cores (void *coresbm, size_t stack_size)
 initializes the BOMP library using the indicated cores of the BM More...
 
int bomp_init_varstack (unsigned int nthreads, size_t stack_size)
 initializes the BOMP library with the given stack sizes More...
 

Detailed Description

API to use the bomp library.

Function Documentation

int bomp_init_cores ( void *  coresbm,
size_t  stack_size 
)

initializes the BOMP library using the indicated cores of the BM

Parameters
coresbmbitmap representing the cores to run on
stack_sizesize of the thread's stack in bytes
Returns
0 on SUCCESS non-zero on FAILURE
int bomp_init_varstack ( unsigned int  nthreads,
size_t  stack_size 
)

initializes the BOMP library with the given stack sizes

Parameters
stack_sizesize of the thread's stack in bytes
Returns
0 on SUCCESS non-zero on FAILURE

This function will use the first nthreads cores to run on

get the maximum number of cores