Brick Library 0.1
Performance-portable stencil datalayout & codegen
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
base.CodeGen Class Reference

Public Member Functions

def __init__ (self, backend, layout, *dag_msize=5, K=2, klimit=20, scatter_thres=1.5, min_fixed=5, unroll=False, dimsplit=False, stride=None)
 
def config (self, backend=None, layout=None)
 
def split (self, rst, nxt, dim, left_dim, f)
 
def gencode (self, List[Grid] grid_out, outfile=sys.stdout)
 

Public Attributes

 LAYOUTREL
 
 TILE_DIM
 
 backend
 
 layout
 
 FOLD
 
 TILE
 
 STRIDE
 
 DIRECT
 
 K
 
 KLIMIT
 
 THRES
 
 MSIZE
 
 MIN_FIXED
 
 UNROLL
 
 DIM_SPLIT
 
 ALIGNED
 
 grids
 
 TILE_SIZE
 
 groups
 

Static Public Attributes

bool FMA = True
 

Constructor & Destructor Documentation

◆ __init__()

def base.CodeGen.__init__ (   self,
  backend,
  layout,
dag_msize = 5,
  K = 2,
  klimit = 20,
  scatter_thres = 1.5,
  min_fixed = 5,
  unroll = False,
  dimsplit = False,
  stride = None 
)
Here is the call graph for this function:

Member Function Documentation

◆ config()

def base.CodeGen.config (   self,
  backend = None,
  layout = None 
)
Here is the call graph for this function:

◆ gencode()

def base.CodeGen.gencode (   self,
List[Grid]  grid_out,
  outfile = sys.stdout 
)
Here is the call graph for this function:

◆ split()

def base.CodeGen.split (   self,
  rst,
  nxt,
  dim,
  left_dim,
  f 
)
Here is the call graph for this function:

Member Data Documentation

◆ ALIGNED

base.CodeGen.ALIGNED

◆ backend

base.CodeGen.backend

◆ DIM_SPLIT

base.CodeGen.DIM_SPLIT

◆ DIRECT

base.CodeGen.DIRECT

◆ FMA

bool base.CodeGen.FMA = True
static

◆ FOLD

base.CodeGen.FOLD

◆ grids

base.CodeGen.grids

◆ groups

base.CodeGen.groups

◆ K

base.CodeGen.K

◆ KLIMIT

base.CodeGen.KLIMIT

◆ layout

base.CodeGen.layout

◆ LAYOUTREL

base.CodeGen.LAYOUTREL

◆ MIN_FIXED

base.CodeGen.MIN_FIXED

◆ MSIZE

base.CodeGen.MSIZE

◆ STRIDE

base.CodeGen.STRIDE

◆ THRES

base.CodeGen.THRES

◆ TILE

base.CodeGen.TILE

◆ TILE_DIM

base.CodeGen.TILE_DIM

◆ TILE_SIZE

base.CodeGen.TILE_SIZE

◆ UNROLL

base.CodeGen.UNROLL

The documentation for this class was generated from the following file: