SRC/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.

Data Types

type  SuperLUStat_t
type  e_node
type  LU_stack_t

Defines

#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   6
#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)
#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


Define 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 CHECK_MALLOC ( pnum,
where   ) 

Value:

{                 \
    extern long int superlu_malloc_total;        \
    printf("(%d) %s: superlu_malloc_total (MB) %.2f\n", \
           pnum, where, superlu_malloc_total*1e-6); \
}

#define DoubleAlign ( addr   )     ( ((long)addr + 7) & ~7L )

#define EMPTY   (-1)

#define FALSE   (0)

#define FIRSTCOL_OF_SNODE (  )     (xsup[i])

#define GluIntArray (  )     (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   6

#define NotDoubleAlign ( addr   )     ( (long)addr & 7 )

#define Reduce ( alpha   )     ((alpha + 1) / 2)

#define StackFull (  )     ( 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 TIC (  ) 

#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


Generated on Tue Aug 30 14:36:33 2011 for SuperLUDistributed by  doxygen 1.5.5