SuperLU_DIST
4.0
superlu_dist on CPU and GPU clusters
|
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 |
Header for utilities.
#define ABORT | ( | err_msg | ) |
#define CHECK_MALLOC | ( | pnum, | |
where | |||
) |
#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 |
#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, | |
y | |||
) | ( (x) > (y) ? (x) : (y) ) |
#define SUPERLU_MIN | ( | x, | |
y | |||
) | ( (x) < (y) ? (x) : (y) ) |
#define TempSpace | ( | n, | |
w | |||
) |
#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 float flops_t |
typedef unsigned char Logical |