18 #define USER_ABORT(msg) superlu_abort_and_exit_dist(msg)
21 #define ABORT(err_msg) \
23 sprintf(msg,"%s at line %d in file %s\n",err_msg,__LINE__, __FILE__);\
28 #define USER_MALLOC(size) superlu_malloc_dist(size)
31 #define SUPERLU_MALLOC(size) USER_MALLOC(size)
34 #define USER_FREE(addr) superlu_free_dist(addr)
37 #define SUPERLU_FREE(addr) USER_FREE(addr)
39 #define CHECK_MALLOC(pnum, where) { \
40 extern long int superlu_malloc_total; \
41 printf("(%d) %s: superlu_malloc_total (MB) %.2f\n", \
42 pnum, where, superlu_malloc_total*1e-6); \
45 #define SUPERLU_MAX(x, y) ( (x) > (y) ? (x) : (y) )
46 #define SUPERLU_MIN(x, y) ( (x) < (y) ? (x) : (y) )
95 #define GluIntArray(n) (5 * (n) + 5)
105 #define StackFull(x) ( x + stack.used >= stack.size )
106 #define NotDoubleAlign(addr) ( (long)addr & 7 )
107 #define DoubleAlign(addr) ( ((long)addr + 7) & ~7L )
108 #define TempSpace(n, w) ( (2*w + 4 + NO_MARKER)*m*sizeof(int) + \
109 (w + 1)*n*sizeof(double) )
110 #define Reduce(alpha) ((alpha + 1) / 2)
112 #define FIRSTCOL_OF_SNODE(i) (xsup[i])
115 #define TIC(t) t = SuperLU_timer_()
116 #define TOC(t2, t1) t2 = SuperLU_timer_() - t1
125 #define L_SUB_START(col) ( Lstore->rowind_colptr[col] )
126 #define L_SUB(ptr) ( Lstore->rowind[ptr] )
127 #define L_NZ_START(col) ( Lstore->nzval_colptr[col] )
128 #define L_FST_SUPC(superno) ( Lstore->sup_to_col[superno] )
129 #define U_NZ_START(col) ( Ustore->colptr[col] )
130 #define U_SUB(ptr) ( Ustore->rowind[ptr] )
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
std::array< T, N > array
Definition: EmulateArray.h:231
enum constants header file
float flops_t
Definition: slu_util.h:114
Definition: slu_util.h:282
Definition: slu_util.h:290
int num_look_aheads
Definition: util_dist.h:77
Headers for 4 types of dynamatically managed memory.
Definition: slu_util.h:277
int size
Definition: slu_util.h:278
void * mem
Definition: slu_util.h:279
unsigned char Logical
Definition: util_dist.h:63
float flops_t
Definition: util_dist.h:62