dace.frontend package
Subpackages
- dace.frontend.common package
- dace.frontend.octave package
- Submodules
- dace.frontend.octave.ast_arrayaccess module
- dace.frontend.octave.ast_assign module
- dace.frontend.octave.ast_expression module
AST_BinExpression
AST_BinExpression.generate_code()
AST_BinExpression.get_basetype()
AST_BinExpression.get_children()
AST_BinExpression.get_dims()
AST_BinExpression.matrix2d_matrix2d_mult()
AST_BinExpression.matrix2d_matrix2d_plus_or_minus()
AST_BinExpression.matrix2d_scalar()
AST_BinExpression.provide_parents()
AST_BinExpression.replace_child()
AST_BinExpression.scalar_scalar()
AST_BinExpression.vec_mult_vect()
AST_UnaryExpression
- dace.frontend.octave.ast_function module
- dace.frontend.octave.ast_loop module
- dace.frontend.octave.ast_matrix module
- dace.frontend.octave.ast_node module
AST_Node
AST_Node.defined_variables()
AST_Node.find_data_node_in_sdfg_state()
AST_Node.generate_code()
AST_Node.get_children()
AST_Node.get_datanode()
AST_Node.get_initializers()
AST_Node.get_name_in_sdfg()
AST_Node.get_new_tmpvar()
AST_Node.get_parent()
AST_Node.print_as_tree()
AST_Node.provide_parents()
AST_Node.replace_child()
AST_Node.replace_parent()
AST_Node.search_vardef_in_scope()
AST_Node.shortdesc()
AST_Node.specialize()
AST_Statements
- dace.frontend.octave.ast_nullstmt module
- dace.frontend.octave.ast_range module
- dace.frontend.octave.ast_values module
- dace.frontend.octave.lexer module
- dace.frontend.octave.parse module
p_arg1()
p_arg2()
p_arg_list()
p_args()
p_break_stmt()
p_case_list()
p_cellarray()
p_cellarray_2()
p_cellarrayref()
p_command()
p_comment_stmt()
p_concat_list1()
p_concat_list2()
p_continue_stmt()
p_elseif_stmt()
p_end()
p_end_function()
p_error()
p_error_stmt()
p_expr()
p_expr1()
p_expr2()
p_expr_2()
p_expr_colon()
p_expr_end()
p_expr_ident()
p_expr_list()
p_expr_number()
p_expr_stmt()
p_expr_string()
p_exprs()
p_field_expr()
p_foo_stmt()
p_for_stmt()
p_func_stmt()
p_funcall_expr()
p_global()
p_global_list()
p_global_stmt()
p_ident_init_opt()
p_if_stmt()
p_lambda_args()
p_lambda_expr()
p_matrix()
p_matrix_2()
p_null_stmt()
p_parens_expr()
p_persistent_stmt()
p_ret()
p_return_stmt()
p_semi_opt()
p_separator()
p_stmt()
p_stmt_list()
p_stmt_list_opt()
p_switch_stmt()
p_top()
p_transpose_expr()
p_try_catch()
p_unwind()
p_while_stmt()
parse()
- dace.frontend.octave.parsetab module
- Module contents
- dace.frontend.python package
- Submodules
- dace.frontend.python.astutils module
ASTFindReplace
ASTHelperMixin
AnnotateTopLevel
ConstantExtractor
ExtNodeTransformer
ExtNodeVisitor
ExtUnparser
NameFound
RemoveSubscripts
TaskletFreeSymbolVisitor
and_expr()
astrange_to_symrange()
copy_tree()
create_constant()
escape_string()
evalnode()
function_to_ast()
is_constant()
negate_expr()
parse_function_arguments()
rname()
slice_to_subscript()
subscript_to_ast_slice()
subscript_to_ast_slice_recursive()
subscript_to_slice()
unparse()
- dace.frontend.python.cached_program module
- dace.frontend.python.common module
- dace.frontend.python.interface module
- dace.frontend.python.memlet_parser module
- dace.frontend.python.ndloop module
- dace.frontend.python.newast module
AddTransientMethods
ProgramVisitor
ProgramVisitor.cfg_target
ProgramVisitor.create_callback()
ProgramVisitor.current_state
ProgramVisitor.defined
ProgramVisitor.increment_progress()
ProgramVisitor.last_block
ProgramVisitor.last_cfg_target
ProgramVisitor.make_slice()
ProgramVisitor.parse_program()
ProgramVisitor.progress_bar
ProgramVisitor.progress_count()
ProgramVisitor.sdfg
ProgramVisitor.start_time
ProgramVisitor.visit()
ProgramVisitor.visit_AnnAssign()
ProgramVisitor.visit_Assign()
ProgramVisitor.visit_AsyncWith()
ProgramVisitor.visit_Attribute()
ProgramVisitor.visit_AugAssign()
ProgramVisitor.visit_BinOp()
ProgramVisitor.visit_BoolOp()
ProgramVisitor.visit_Break()
ProgramVisitor.visit_Bytes()
ProgramVisitor.visit_Call()
ProgramVisitor.visit_Compare()
ProgramVisitor.visit_Constant()
ProgramVisitor.visit_Continue()
ProgramVisitor.visit_Dict()
ProgramVisitor.visit_ExtSlice()
ProgramVisitor.visit_For()
ProgramVisitor.visit_FunctionDef()
ProgramVisitor.visit_If()
ProgramVisitor.visit_Index()
ProgramVisitor.visit_Lambda()
ProgramVisitor.visit_List()
ProgramVisitor.visit_Name()
ProgramVisitor.visit_NameConstant()
ProgramVisitor.visit_NamedExpr()
ProgramVisitor.visit_Num()
ProgramVisitor.visit_Return()
ProgramVisitor.visit_Set()
ProgramVisitor.visit_Str()
ProgramVisitor.visit_Subscript()
ProgramVisitor.visit_TopLevelExpr()
ProgramVisitor.visit_Tuple()
ProgramVisitor.visit_TypeAlias()
ProgramVisitor.visit_UnaryOp()
ProgramVisitor.visit_While()
ProgramVisitor.visit_With()
SkipCall
TaskletTransformer
add_indirection_subgraph()
parse_dace_program()
specifies_datatype()
until()
- dace.frontend.python.parser module
- dace.frontend.python.preprocessing module
ArrayClosureResolver
AugAssignExpander
CallTreeResolver
ConditionalCodeResolver
ContextManagerInliner
DaceRecursionError
DeadCodeEliminator
DisallowedAssignmentChecker
ExpressionInliner
GlobalResolver
GlobalResolver.generic_visit()
GlobalResolver.global_value_to_node()
GlobalResolver.globals
GlobalResolver.visit_Assert()
GlobalResolver.visit_AsyncFunctionDef()
GlobalResolver.visit_Attribute()
GlobalResolver.visit_AugAssign()
GlobalResolver.visit_Call()
GlobalResolver.visit_For()
GlobalResolver.visit_FunctionDef()
GlobalResolver.visit_JoinedStr()
GlobalResolver.visit_Lambda()
GlobalResolver.visit_Name()
GlobalResolver.visit_Raise()
GlobalResolver.visit_Subscript()
GlobalResolver.visit_TopLevelExpr()
GlobalResolver.visit_keyword()
LoopUnroller
MPIResolver
ModuleResolver
ModuloConverter
PreprocessedAST
RewriteSympyEquality
StructTransformer
find_disallowed_statements()
flatten_callback()
has_replacement()
preprocess_dace_program()
- dace.frontend.python.replacements module
- dace.frontend.python.tasklet_runner module
- dace.frontend.python.wrappers module
- Module contents
Submodules
dace.frontend.operations module
- class dace.frontend.operations.CompiledSDFGProfiler(repetitions=0, warmup=0, tqdm_leave=True, print_results=True)
Bases:
object
A context manager that prints the time it takes to execute the generated SDFG code (excluding init and shutdown).
- dace.frontend.operations.detect_reduction_type(wcr_str, openmp=False)
Inspects a lambda function and tries to determine if it’s one of the built-in reductions that frameworks such as MPI can provide.
- Parameters:
wcr_str – A Python string representation of the lambda function.
openmp – Detect additional OpenMP reduction types.
- Returns:
dtypes.ReductionType if detected, dtypes.ReductionType.Custom if not detected, or None if no reduction is found.
- dace.frontend.operations.elementwise(func, in_array, out_array=None)
Applies a function to each element of the array
- Parameters:
in_array – array to apply to.
out_array – output array to write the result to. If None, a new array will be returned
func – lambda function to apply to each element.
- Returns:
new array with the lambda applied to each element
- dace.frontend.operations.is_op_associative(wcr_str)
Inspects a custom lambda function and tries to determine whether it is symbolically associative (disregarding data type).
- Parameters:
wcr_str – A string in Python representing a lambda function.
- Returns:
True if associative, False if not, None if cannot be determined.
- dace.frontend.operations.is_op_commutative(wcr_str)
Inspects a custom lambda function and tries to determine whether it is symbolically commutative (disregarding data type).
- Parameters:
wcr_str – A string in Python representing a lambda function.
- Returns:
True if commutative, False if not, None if cannot be determined.
- dace.frontend.operations.reduce(op, in_array, out_array=None, axis=None, identity=None)
Reduces an array according to a binary operation op, starting with initial value identity, over the given axis (or axes if axis is a list), to out_array.
Requires out_array with len(axis) dimensions less than in_array, or a scalar if axis is None.
- Parameters:
op – binary operation to use for reduction.
in_array – array to reduce.
out_array – output array to write the result to. If None, a new array will be returned.
axis – the axis or axes to reduce over. If None, all axes will be reduced.
identity – intial value for the reduction. If None, uses value stored in output.
- Returns:
None if out_array is given, or the newly created out_array if out_array is None.