Blender V2.61 - r43446
|
Go to the source code of this file.
Classes | |
struct | e_node |
struct | LU_stack_t |
Defines | |
#define | NO_MEMTYPE 4 |
#define | GluIntArray(n) (5 * (n) + 5) |
#define | StackFull(x) ( x + stack.used >= stack.size ) |
#define | NotDoubleAlign(addr) ( (intptr_t)addr & 7 ) |
#define | DoubleAlign(addr) ( ((intptr_t)addr + 7) & ~7L ) |
#define | TempSpace(m, w) |
#define | Reduce(alpha) ((alpha + 1) / 2) |
Typedefs | |
typedef struct e_node | ExpHeader |
Functions | |
void * | sexpand (int *, MemType, int, int, GlobalLU_t *) |
int | sLUWorkInit (int, int, int, int **, float **, LU_space_t) |
void | copy_mem_float (int, void *, void *) |
void | sStackCompress (GlobalLU_t *) |
void | sSetupSpace (void *, int, LU_space_t *) |
void * | suser_malloc (int, int) |
void | suser_free (int, int) |
void | copy_mem_int (int, void *, void *) |
void | user_bcopy (char *, char *, int) |
int | sQuerySpace (SuperMatrix *L, SuperMatrix *U, mem_usage_t *mem_usage) |
int | sLUMemInit (fact_t fact, void *work, int lwork, int m, int n, int annz, int panel_size, SuperMatrix *L, SuperMatrix *U, GlobalLU_t *Glu, int **iwork, float **dwork) |
void | sSetRWork (int m, int panel_size, float *dworkptr, float **dense, float **tempv) |
void | sLUWorkFree (int *iwork, float *dwork, GlobalLU_t *Glu) |
int | sLUMemXpand (int jcol, int next, MemType mem_type, int *maxlen, GlobalLU_t *Glu) |
void | sallocateA (int n, int nnz, float **a, int **asub, int **xa) |
float * | floatMalloc (int n) |
float * | floatCalloc (int n) |
int | smemory_usage (const int nzlmax, const int nzumax, const int nzlumax, const int n) |
Variables | |
static ExpHeader * | expanders = 0 |
static LU_stack_t | stack |
static int | no_expand |
Definition in file smemory.c.
#define DoubleAlign | ( | addr | ) | ( ((intptr_t)addr + 7) & ~7L ) |
Definition at line 58 of file smemory.c.
Referenced by sexpand(), and sLUWorkInit().
#define GluIntArray | ( | n | ) | (5 * (n) + 5) |
Definition at line 21 of file smemory.c.
Referenced by sLUMemInit().
#define NO_MEMTYPE 4 |
Definition at line 17 of file smemory.c.
Referenced by sLUMemInit().
#define NotDoubleAlign | ( | addr | ) | ( (intptr_t)addr & 7 ) |
Definition at line 57 of file smemory.c.
Referenced by sexpand(), and sLUWorkInit().
#define Reduce | ( | alpha | ) | ((alpha + 1) / 2) |
#define StackFull | ( | x | ) | ( x + stack.used >= stack.size ) |
Definition at line 56 of file smemory.c.
Referenced by sexpand(), and suser_malloc().
#define TempSpace | ( | m, | |
w | |||
) |
void copy_mem_float | ( | int | howmany, |
void * | old, | ||
void * | new | ||
) |
Definition at line 446 of file smemory.c.
References i.
Referenced by sexpand(), and sStackCompress().
void copy_mem_int | ( | int | , |
void * | , | ||
void * | |||
) |
float* floatCalloc | ( | int | n | ) |
Definition at line 656 of file smemory.c.
References ABORT, i, and SUPERLU_MALLOC.
Referenced by sgstrs(), and sp_strsv().
float* floatMalloc | ( | int | n | ) |
Definition at line 646 of file smemory.c.
References ABORT, and SUPERLU_MALLOC.
Referenced by sallocateA(), sCompRow_to_CompCol(), and sgstrs().
void sallocateA | ( | int | n, |
int | nnz, | ||
float ** | a, | ||
int ** | asub, | ||
int ** | xa | ||
) |
Definition at line 638 of file smemory.c.
References floatMalloc(), and intMalloc().
void * sexpand | ( | int * | prev_len, |
MemType | type, | ||
int | len_to_copy, | ||
int | keep_prev, | ||
GlobalLU_t * | Glu | ||
) |
Definition at line 458 of file smemory.c.
References LU_stack_t::array, copy_mem_float(), copy_mem_int(), DoubleAlign, EXPAND, HEAD, GlobalLU_t::lsub, LSUB, LUSUP, e_node::mem, GlobalLU_t::MemModel, no_expand, NotDoubleAlign, NULL, Reduce, e_node::size, StackFull, SUPERLU_FREE, SUPERLU_MALLOC, suser_malloc(), SYSTEM, LU_stack_t::top1, GlobalLU_t::ucol, UCOL, LU_stack_t::used, user_bcopy(), GlobalLU_t::usub, and USUB.
Referenced by sLUMemInit(), and sLUMemXpand().
int sLUMemInit | ( | fact_t | fact, |
void * | work, | ||
int | lwork, | ||
int | m, | ||
int | n, | ||
int | annz, | ||
int | panel_size, | ||
SuperMatrix * | L, | ||
SuperMatrix * | U, | ||
GlobalLU_t * | Glu, | ||
int ** | iwork, | ||
float ** | dwork | ||
) |
Definition at line 164 of file smemory.c.
References ABORT, SCformat::col_to_sup, NCformat::colptr, GluIntArray, HEAD, intMalloc(), GlobalLU_t::lsub, LSUB, GlobalLU_t::lusup, LUSUP, e_node::mem, GlobalLU_t::MemModel, GlobalLU_t::n, no_expand, NO_MEMTYPE, GlobalLU_t::nzlmax, GlobalLU_t::nzlumax, GlobalLU_t::nzumax, NCformat::nzval, SCformat::nzval, SCformat::nzval_colptr, NCformat::rowind, SCformat::rowind, SCformat::rowind_colptr, SamePattern_SameRowPerm, sexpand(), LU_stack_t::size, e_node::size, sLUWorkInit(), smemory_usage(), sp_ienv(), sSetupSpace(), SuperMatrix::Store, SCformat::sup_to_col, SUPERLU_FREE, SUPERLU_MALLOC, SUPERLU_MAX, GlobalLU_t::supno, suser_free(), suser_malloc(), SYSTEM, TempSpace, LU_stack_t::top2, UCOL, GlobalLU_t::ucol, USER, USUB, GlobalLU_t::usub, GlobalLU_t::xlsub, GlobalLU_t::xlusup, GlobalLU_t::xsup, and GlobalLU_t::xusub.
Referenced by sgstrf().
int sLUMemXpand | ( | int | jcol, |
int | next, | ||
MemType | mem_type, | ||
int * | maxlen, | ||
GlobalLU_t * | Glu | ||
) |
Definition at line 393 of file smemory.c.
References GlobalLU_t::lsub, LSUB, GlobalLU_t::lusup, LUSUP, GlobalLU_t::n, GlobalLU_t::nzlmax, GlobalLU_t::nzlumax, GlobalLU_t::nzumax, sexpand(), smemory_usage(), UCOL, GlobalLU_t::ucol, USUB, and GlobalLU_t::usub.
Referenced by scolumn_bmod(), scolumn_dfs(), scopy_to_ucol(), sgstrf(), and ssnode_dfs().
void sLUWorkFree | ( | int * | iwork, |
float * | dwork, | ||
GlobalLU_t * | Glu | ||
) |
Definition at line 373 of file smemory.c.
References GlobalLU_t::MemModel, LU_stack_t::size, SUPERLU_FREE, SYSTEM, LU_stack_t::top2, and LU_stack_t::used.
Referenced by sgstrf().
int sLUWorkInit | ( | int | m, |
int | n, | ||
int | panel_size, | ||
int ** | iworkptr, | ||
float ** | dworkptr, | ||
LU_space_t | MemModel | ||
) |
Definition at line 307 of file smemory.c.
References DoubleAlign, intCalloc(), NO_MARKER, NotDoubleAlign, NUM_TEMPV, sp_ienv(), SUPERLU_MALLOC, suser_malloc(), SYSTEM, TAIL, LU_stack_t::top2, and LU_stack_t::used.
Referenced by sLUMemInit().
int smemory_usage | ( | const int | nzlmax, |
const int | nzumax, | ||
const int | nzlumax, | ||
const int | n | ||
) |
Definition at line 670 of file smemory.c.
Referenced by sLUMemInit(), and sLUMemXpand().
int sQuerySpace | ( | SuperMatrix * | L, |
SuperMatrix * | U, | ||
mem_usage_t * | mem_usage | ||
) |
Definition at line 127 of file smemory.c.
References NCformat::colptr, mem_usage_t::expansions, mem_usage_t::for_lu, SuperMatrix::ncol, no_expand, NO_MARKER, SCformat::nzval_colptr, SCformat::rowind_colptr, sp_ienv(), SuperMatrix::Store, and mem_usage_t::total_needed.
void sSetRWork | ( | int | m, |
int | panel_size, | ||
float * | dworkptr, | ||
float ** | dense, | ||
float ** | tempv | ||
) |
void sSetupSpace | ( | void * | work, |
int | lwork, | ||
LU_space_t * | MemModel | ||
) |
Definition at line 71 of file smemory.c.
References LU_stack_t::array, LU_stack_t::size, SYSTEM, LU_stack_t::top1, LU_stack_t::top2, LU_stack_t::used, and USER.
Referenced by sLUMemInit().
void sStackCompress | ( | GlobalLU_t * | Glu | ) |
Definition at line 581 of file smemory.c.
References LU_stack_t::array, copy_mem_float(), copy_mem_int(), GlobalLU_t::lsub, GlobalLU_t::lusup, GlobalLU_t::n, LU_stack_t::top1, GlobalLU_t::ucol, LU_stack_t::used, GlobalLU_t::usub, GlobalLU_t::xlsub, GlobalLU_t::xlusup, and GlobalLU_t::xusub.
void suser_free | ( | int | bytes, |
int | which_end | ||
) |
Definition at line 106 of file smemory.c.
References HEAD, LU_stack_t::top1, LU_stack_t::top2, and LU_stack_t::used.
Referenced by sLUMemInit().
void * suser_malloc | ( | int | bytes, |
int | which_end | ||
) |
Definition at line 87 of file smemory.c.
References LU_stack_t::array, HEAD, NULL, StackFull, LU_stack_t::top1, LU_stack_t::top2, and LU_stack_t::used.
Referenced by sexpand(), sLUMemInit(), and sLUWorkInit().
void user_bcopy | ( | char * | , |
char * | , | ||
int | |||
) |
int no_expand [static] |
Definition at line 53 of file smemory.c.
Referenced by sexpand(), sLUMemInit(), and sQuerySpace().
LU_stack_t stack [static] |
Definition at line 52 of file smemory.c.
Referenced by BLI_kdtree_find_n_nearest(), BLI_kdtree_find_nearest(), BLI_kdtree_range_search(), boxsample(), bvh_node_stack_raycast(), clipx_rctf_swap(), clipy_rctf_swap(), btDbvt::clone(), btDbvt::collideKDOP(), btDbvt::collideOCL(), btDbvt::collideTU(), btDbvt::collideTV(), draw_brackets(), ED_undo_paint_valid(), meshdeform_bind_floodfill(), ntreeExecGPUNodes(), occ_lookup(), p_connect_pairs(), QBVH::pack_nodes(), RegularBVH::pack_nodes(), btDbvt::rayTest(), btDbvt::rayTestInternal(), select_linked(), and svm_eval_nodes().