SuperLU_DIST  4.0
superlu_dist on CPU and GPU clusters
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Typedefs
util_dist.h File Reference

Header for utilities. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "superlu_enum_consts.h"

Go to the source code of this file.

Classes

struct  SuperLUStat_t
 
struct  e_node
 
struct  LU_stack_t
 

Macros

#define USER_ABORT(msg)   superlu_abort_and_exit_dist(msg)
 
#define ABORT(err_msg)
 
#define USER_MALLOC(size)   superlu_malloc_dist(size)
 
#define SUPERLU_MALLOC(size)   USER_MALLOC(size)
 
#define USER_FREE(addr)   superlu_free_dist(addr)
 
#define SUPERLU_FREE(addr)   USER_FREE(addr)
 
#define CHECK_MALLOC(pnum, where)
 
#define SUPERLU_MAX(x, y)   ( (x) > (y) ? (x) : (y) )
 
#define SUPERLU_MIN(x, y)   ( (x) < (y) ? (x) : (y) )
 
#define EMPTY   (-1)
 
#define FALSE   (0)
 
#define TRUE   (1)
 
#define GluIntArray(n)   (5 * (n) + 5)
 
#define NO_MEMTYPE
 
#define StackFull(x)   ( x + stack.used >= stack.size )
 
#define NotDoubleAlign(addr)   ( (long)addr & 7 )
 
#define DoubleAlign(addr)   ( ((long)addr + 7) & ~7L )
 
#define TempSpace(n, w)
 
#define Reduce(alpha)   ((alpha + 1) / 2) /* i.e. (alpha-1)/2 + 1 */
 
#define FIRSTCOL_OF_SNODE(i)   (xsup[i])
 
#define TIC(t)
 
#define TOC(t2, t1)
 
#define L_SUB_START(col)   ( Lstore->rowind_colptr[col] )
 
#define L_SUB(ptr)   ( Lstore->rowind[ptr] )
 
#define L_NZ_START(col)   ( Lstore->nzval_colptr[col] )
 
#define L_FST_SUPC(superno)   ( Lstore->sup_to_col[superno] )
 
#define U_NZ_START(col)   ( Ustore->colptr[col] )
 
#define U_SUB(ptr)   ( Ustore->rowind[ptr] )
 

Typedefs

typedef float flops_t
 
typedef unsigned char Logical
 
typedef struct e_node ExpHeader
 

Detailed Description

Header for utilities.

Macro Definition Documentation

#define ABORT (   err_msg)
Value:
{ char msg[256];\
sprintf(msg,"%s at line %d in file %s\n",err_msg,__LINE__, __FILE__);\
USER_ABORT(msg); }
#define USER_ABORT(msg)
Definition: util_dist.h:18
#define CHECK_MALLOC (   pnum,
  where 
)
Value:
{ \
extern long int superlu_malloc_total; \
printf("(%d) %s: superlu_malloc_total (MB) %.6f\n", \
pnum, where, superlu_malloc_total*1e-6); \
}
long int superlu_malloc_total
Definition: memory.c:43
#define DoubleAlign (   addr)    ( ((long)addr + 7) & ~7L )
#define EMPTY   (-1)
#define FALSE   (0)
#define FIRSTCOL_OF_SNODE (   i)    (xsup[i])
#define GluIntArray (   n)    (5 * (n) + 5)
#define L_FST_SUPC (   superno)    ( Lstore->sup_to_col[superno] )
#define L_NZ_START (   col)    ( Lstore->nzval_colptr[col] )
#define L_SUB (   ptr)    ( Lstore->rowind[ptr] )
#define L_SUB_START (   col)    ( Lstore->rowind_colptr[col] )
#define NO_MEMTYPE
Value:
6 /* 0: lusup;
1: ucol;
2: lsub;
3: usub
4: llvl; level number in L for ILU(k)
5: ulvl; level number in U for ILU(k)
*/
#define NotDoubleAlign (   addr)    ( (long)addr & 7 )
#define Reduce (   alpha)    ((alpha + 1) / 2) /* i.e. (alpha-1)/2 + 1 */
#define StackFull (   x)    ( x + stack.used >= stack.size )
#define SUPERLU_FREE (   addr)    USER_FREE(addr)
#define SUPERLU_MALLOC (   size)    USER_MALLOC(size)
#define SUPERLU_MAX (   x,
 
)    ( (x) > (y) ? (x) : (y) )
#define SUPERLU_MIN (   x,
 
)    ( (x) < (y) ? (x) : (y) )
#define TempSpace (   n,
 
)
Value:
( (2*w + 4 + NO_MARKER)*m*sizeof(int) + \
(w + 1)*n*sizeof(double) )
#define NO_MARKER
Definition: superlu_defs.h:148
#define TIC (   t)
#define TOC (   t2,
  t1 
)
#define TRUE   (1)
#define U_NZ_START (   col)    ( Ustore->colptr[col] )
#define U_SUB (   ptr)    ( Ustore->rowind[ptr] )
#define USER_ABORT (   msg)    superlu_abort_and_exit_dist(msg)
#define USER_FREE (   addr)    superlu_free_dist(addr)
#define USER_MALLOC (   size)    superlu_malloc_dist(size)

Typedef Documentation

typedef struct e_node ExpHeader
typedef float flops_t
typedef unsigned char Logical