FasTensor  1.0.0
Transform Supercomputing for AI
Classes | Namespaces | Macros | Variables
ft_array.h File Reference
#include <assert.h>
#include <stdarg.h>
#include <regex>
#include "mpi.h"
#include "ft_endpoint.h"
#include "ft_stencil.h"
#include "ft_utility.h"
#include "ft_type.h"
#include "ft_endpoint_factory.h"
#include "ft_mpi.h"
#include "ft_merge.h"
#include "ft_output_vector.h"
#include "ft_vis.h"
#include "ft_array_transpose.h"

Go to the source code of this file.

Classes

class  FT::ArrayBase
 the object to the ArrayBase More...
 
class  FT::Array< T >
 

Namespaces

 FT
 

Macros

#define TRANSFORM(A_BASE_OBJECT, UDF, B, A_TYPE, UDF_OUT_TYPE)
 transform the ArrayBase object to one with the type A_TYPE can call the transform function More...
 

Variables

int ft_size
 
int ft_rank
 
std::vector< Endpoint * > endpoint_to_clean_vector
 

Macro Definition Documentation

◆ TRANSFORM

#define TRANSFORM (   A_BASE_OBJECT,
  UDF,
  B,
  A_TYPE,
  UDF_OUT_TYPE 
)
Value:
{ \
switch (A_TYPE) \
{ \
static_cast<FT::Array<short> *>(A_BASE_OBJECT)->Transform<UDF_OUT_TYPE>(UDF, B); \
break; \
static_cast<FT::Array<double> *>(A_BASE_OBJECT)->Transform<UDF_OUT_TYPE>(UDF, B); \
break; \
static_cast<FT::Array<float> *>(A_BASE_OBJECT)->Transform<UDF_OUT_TYPE>(UDF, B); \
break; \
static_cast<FT::Array<int> *>(A_BASE_OBJECT)->Transform<UDF_OUT_TYPE>(UDF, B); \
break; \
default: \
AU_EXIT("Not supported type yet in TRANSFORM macro !"); \
} \
}
@ AU_DOUBLE
Definition: ft_type.h:129
@ AU_FLOAT
Definition: ft_type.h:128
@ AU_INT
Definition: ft_type.h:121
@ AU_SHORT
Definition: ft_type.h:120

transform the ArrayBase object to one with the type A_TYPE can call the transform function

Examples
ft_example_base.cpp.

Variable Documentation

◆ endpoint_to_clean_vector

std::vector<Endpoint *> endpoint_to_clean_vector
extern

◆ ft_rank

int ft_rank
extern

◆ ft_size

int ft_size
extern

Author: Bin Dong dbin@.nosp@m.lbl..nosp@m.gov Web: https://crd.lbl.gov/bin-dong Scientific Data Management Research Group Lawrence Berkeley National Laboratory