def substitute_llvm(context, aterm_graph): "Substitute executors for the parts of the graph we can handle" from blaze.engine import llvm_execution executors = context['executors'] = {} aterm_graph = llvm_execution.substitute_llvm_executors( aterm_graph, executors, context["operand_dict"]) return context, aterm_graph
def convert_graph(lazy_blaze_graph): # Convert blaze graph to ATerm graph p = pipeline.Pipeline() context = p.run_pipeline_context(lazy_blaze_graph) aterm_graph = context['output'] executors = {} aterm_graph = llvm_execution.substitute_llvm_executors(aterm_graph, executors) return aterm_graph, executors
def convert_graph(lazy_blaze_graph): # Convert blaze graph to ATerm graph p = pipeline.Pipeline(have_numbapro=True) context, aterm_graph = p.run_pipeline(lazy_blaze_graph) executors = {} aterm_graph = llvm_execution.substitute_llvm_executors(aterm_graph, executors) return aterm_graph, executors
def try_llvm(pipeline_context, aterm_graph): "Substitute executors for the parts of the graph we can handle" executors = pipeline_context['executors'] aterm_graph = llvm_execution.substitute_llvm_executors(aterm_graph, executors) return aterm_graph