PLASMA
2.4.5
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
|
Go to the source code of this file.
Data Structures | |
struct | plasma_context_struct |
struct | plasma_context_map_struct |
Typedefs | |
typedef struct plasma_context_struct | plasma_context_t |
typedef struct plasma_context_map_struct | plasma_context_map_t |
Functions | |
plasma_context_t * | plasma_context_create () |
int | plasma_context_insert (plasma_context_t *context, pthread_t thread_id) |
int | plasma_context_remove (plasma_context_t *context, pthread_t thread_id) |
plasma_context_t * | plasma_context_self () |
PLASMA auxiliary routines PLASMA is a software package provided by Univ. of Tennessee, Univ. of California Berkeley and Univ. of Colorado Denver
Definition in file context.h.
typedef struct plasma_context_map_struct plasma_context_map_t |
Threads contexts map
typedef struct plasma_context_struct plasma_context_t |
PLASMA context
plasma_context_t* plasma_context_create | ( | ) |
Internal routines
Create new context
Definition at line 36 of file context.c.
References plasma_context_struct::action, plasma_context_struct::action_condt, plasma_context_struct::action_mutex, plasma_context_struct::autotuning_enabled, context_map_lock, plasma_context_struct::dynamic_section, plasma_context_struct::errors_enabled, plasma_context_struct::householder, plasma_context_struct::ib, plasma_context_struct::ibnbsize, plasma_context_struct::nb, plasma_context_struct::nbnbsize, plasma_context_struct::parallel_func_ptr, PLASMA_ACT_STAND_BY, PLASMA_FALSE, plasma_fatal_error(), PLASMA_FLAT_HOUSEHOLDER, PLASMA_OUTOFPLACE, PLASMA_STATIC_SCHEDULING, PLASMA_TRUE, pthread_cond_init(), pthread_mutex_init(), plasma_context_struct::rhblock, plasma_context_struct::scheduling, plasma_context_struct::translation, and plasma_context_struct::warnings_enabled.
int plasma_context_insert | ( | plasma_context_t * | context, |
pthread_t | thread_id | ||
) |
Insert a (context, thread_id) tuple in the context map
Definition at line 75 of file context.c.
References plasma_context_map_struct::context, context_map_lock, CONTEXTS_MAX, PLASMA_ERR_INTERNAL_LIMIT, plasma_fatal_error(), PLASMA_SUCCESS, pthread_mutex_lock(), pthread_mutex_unlock(), and plasma_context_map_struct::thread_id.
int plasma_context_remove | ( | plasma_context_t * | context, |
pthread_t | thread_id | ||
) |
Remove a (context, thread_id) tuple from the context map
Definition at line 101 of file context.c.
References plasma_context_map_struct::context, context_map_lock, CONTEXTS_MAX, PLASMA_ERR_NOT_FOUND, PLASMA_ERR_UNEXPECTED, plasma_fatal_error(), PLASMA_SUCCESS, pthread_equal(), pthread_mutex_lock(), and pthread_mutex_unlock().
plasma_context_t* plasma_context_self | ( | ) |
Return context for a thread