QUARK
0.9.0
QUARK-QUeuingAndRuntimeforKernels
|
Go to the source code of this file.
Macros | |
#define | QUARK_SUCCESS 0 |
#define | QUARK_ERR -1 |
#define | QUARK_ERR_UNEXPECTED -1 |
#define | CONTEXT_THREADS_MAX 256 |
#define | QUARK_GETENV(var, str) envstr = getenv(var); |
#define | QUARK_CLEANENV(str) |
Functions/Subroutines | |
void | quark_warning (const char *func_name, char *msg_text) |
void | quark_topology_init () |
void | quark_topology_finalize () |
int | quark_setaffinity (int rank) |
int | quark_unsetaffinity (int rank) |
int | quark_yield () |
int | quark_get_numthreads () |
int * | quark_get_affthreads () |
int | quark_getenv_int (char *name, int defval) |
This file handles the mapping from pthreads calls to windows threads QUARK is a software package provided by Univ. of Tennessee, Univ. of California Berkeley and Univ. of Colorado Denver
Note : this file is a copy of a PLASMA file for use of QUARK alone
Definition in file quarkos.c.
int* quark_get_affthreads | ( | ) |
Definition at line 329 of file quarkos.c.
References CONTEXT_THREADS_MAX, QUARK_CLEANENV, and QUARK_GETENV.
int quark_get_numthreads | ( | ) |
Definition at line 306 of file quarkos.c.
References QUARK_CLEANENV, and QUARK_GETENV.
int quark_getenv_int | ( | char * | name, |
int | defval | ||
) |
Definition at line 384 of file quarkos.c.
References QUARK_CLEANENV, and QUARK_GETENV.
int quark_setaffinity | ( | int | rank | ) |
This routine will set affinity for the calling thread that has rank 'rank'. Ranks start with 0.
If there are multiple instances of QUARK then affinity will be wrong: all ranks 0 will be pinned to core 0.
Also, affinity is not resotred when QUARK_Finalize() is called.
Definition at line 129 of file quarkos.c.
References QUARK_ERR_NOT_SUPPORTED, QUARK_ERR_UNEXPECTED, and QUARK_SUCCESS.
void quark_topology_finalize | ( | ) |
Definition at line 115 of file quarkos.c.
References quark_unsetaffinity().
void quark_topology_init | ( | ) |
Definition at line 79 of file quarkos.c.
References pthread_mutex_lock(), and pthread_mutex_unlock().
int quark_unsetaffinity | ( | int | rank | ) |
This routine will set affinity for the calling thread that has rank 'rank'. Ranks start with 0.
If there are multiple instances of QUARK then affinity will be wrong: all ranks 0 will be pinned to core 0.
Also, affinity is not resotred when QUARK_Finalize() is called.
Definition at line 196 of file quarkos.c.
References QUARK_ERR_NOT_SUPPORTED, QUARK_ERR_UNEXPECTED, QUARK_SUCCESS, and quark_warning().
void quark_warning | ( | const char * | func_name, |
char * | msg_text | ||
) |
int quark_yield | ( | ) |
Definition at line 271 of file quarkos.c.
References QUARK_ERR_NOT_SUPPORTED.