PandA-2024.02
|
Data Structures | |
class | StoreOrUpdateMin |
Functions | |
def | positive_integer (value) |
def | GetChildren (parent_pid) |
def | kill_proc_tree (pid) |
def | execute_tests (named_list, thread_index) |
def | ComputeDirectory (line) |
def | SearchCFiles (directory) |
def | CollectResults (directory) |
def | CreateJunitBody (directory, ju_file) |
def | CreatePerfPublisherBody (directory, pp_file) |
Variables | |
int | line_index = 0 |
bool | failure = False |
parser = argparse.ArgumentParser(description="Performs panda tests", fromfile_prefix_chars='@') | |
help | |
nargs | |
action | |
default | |
type | |
positive_integer | |
False | |
args = parser.parse_args() | |
n_jobs = args.j | |
level | |
INFO | |
format | |
abs_script = os.path.abspath(sys.argv[0]) | |
list | modified_argv = [] |
string | abs_configuration_dir = "" |
table = os.path.abspath(args.table) | |
string | junit_file_name = "" |
int | junit_index = 0 |
string | perfpublisher_name = "" |
string | perfpublisher_file_name = "" |
int | perfpublisher_index = 0 |
abs_path = os.path.abspath(args.output) | |
restart | |
failed_counter_file_name = os.path.join(abs_path, "failed_counter") | |
failed_counter_file = open(failed_counter_file_name) | |
failed_counter = failed_counter_file.read() | |
string | tool_exe = "" |
exe_file = os.path.join(path, "bambu") | |
string | abs_benchmarks_root = abs_configuration_dir |
string | spider = "" |
mutt = None | |
list | abs_lists = [] |
list | files_list = [] |
temp_list = open(os.path.join(abs_path, "temp_list"), "w") | |
reordered_list_name = os.path.join(abs_path, "reordered_list") | |
reordered_list = open(reordered_list_name, "w") | |
list_file = open(abs_list) | |
lines = list_file.readlines() | |
tokens = shlex.split(line) | |
parameters = list() | |
bool | follow_param = False |
expanded_list_name = os.path.join(abs_path, "expanded_list") | |
expanded_list = open(expanded_list_name, "w") | |
first_parameter = os.path.join(abs_benchmarks_root, tokens[0]) | |
other_parameters = tokens[1:len(tokens)] | |
def | c_files = SearchCFiles(first_parameter) |
arg_lists = args.args | |
arged_list_name = os.path.join(abs_path, "arged_list") | |
arged_list = open(arged_list_name, "w") | |
arg = arg_list[0] | |
full_names = set() | |
named_list_name = os.path.join(abs_path, "named_list") | |
named_list = open(named_list_name, "w") | |
string | configuration_name = "" |
string | benchmark_name = "" |
string | full_name = configuration_name + ":" + benchmark_name |
def | new_dir = ComputeDirectory(line) |
lock = threading.RLock() | |
lock_creation_destruction = threading.RLock() | |
int | passed_benchmark = 0 |
int | total_benchmark = 0 |
list | threads = [] |
list | children = [None] * n_jobs |
daemon | |
junit_file = open(junit_file_name, "w") | |
perfpublisher_file = open(perfpublisher_file_name, "w") | |
report_file_name = os.path.join(abs_path, "report") | |
report_file = open(report_file_name) | |
list | command = [tool_exe, "--version"] |
stderr | |
stdout | |
string | outcome = "" |
string | local_command = "cat " + report_file_name + " | mutt -s \"" + full_name + ": " + outcome + "\" " + args.mail |
shell | |
csv = os.path.abspath(args.csv) | |
string | escape_pattern = "(-|_|\{|\}|=|!|\$|#|&|\"|\'|\(|\)|\||<|>|`|\\\|;|\.|,)" |
def test_panda.CollectResults | ( | directory | ) |
Definition at line 197 of file test_panda.py.
References ComputeDirectory(), map, read(), and str.
Referenced by test_panda.StoreOrUpdateMin.__call__().
def test_panda.ComputeDirectory | ( | line | ) |
Definition at line 173 of file test_panda.py.
Referenced by test_panda.StoreOrUpdateMin.__call__(), CollectResults(), and execute_tests().
def test_panda.CreateJunitBody | ( | directory, | |
ju_file | |||
) |
Definition at line 294 of file test_panda.py.
References str.
Referenced by test_panda.StoreOrUpdateMin.__call__().
def test_panda.CreatePerfPublisherBody | ( | directory, | |
pp_file | |||
) |
Definition at line 346 of file test_panda.py.
References str.
Referenced by test_panda.StoreOrUpdateMin.__call__().
def test_panda.execute_tests | ( | named_list, | |
thread_index | |||
) |
Definition at line 54 of file test_panda.py.
References ComputeDirectory(), kill_proc_tree(), and str.
Referenced by test_panda.StoreOrUpdateMin.__call__().
def test_panda.GetChildren | ( | parent_pid | ) |
Definition at line 38 of file test_panda.py.
Referenced by test_panda.StoreOrUpdateMin.__call__(), and kill_proc_tree().
def test_panda.kill_proc_tree | ( | pid | ) |
Definition at line 48 of file test_panda.py.
References GetChildren().
Referenced by test_panda.StoreOrUpdateMin.__call__(), and execute_tests().
def test_panda.positive_integer | ( | value | ) |
Definition at line 21 of file test_panda.py.
References positive_integer.
def test_panda.SearchCFiles | ( | directory | ) |
Definition at line 186 of file test_panda.py.
References str.
Referenced by test_panda.StoreOrUpdateMin.__call__().
string test_panda.abs_benchmarks_root = abs_configuration_dir |
Definition at line 601 of file test_panda.py.
string test_panda.abs_configuration_dir = "" |
Definition at line 478 of file test_panda.py.
list test_panda.abs_lists = [] |
Definition at line 666 of file test_panda.py.
test_panda.abs_path = os.path.abspath(args.output) |
Definition at line 534 of file test_panda.py.
test_panda.abs_script = os.path.abspath(sys.argv[0]) |
Definition at line 473 of file test_panda.py.
test_panda.action |
Definition at line 443 of file test_panda.py.
test_panda.arg = arg_list[0] |
Definition at line 805 of file test_panda.py.
Referenced by determine_memory_accesses.analyze_node(), black_scholes(), HWCallInjection.buildBuiltinCall(), CallGraphManager.call_graph_computation_recursive(), Parameter.CGetArgv(), tree_manager.collapse_into(), CompilerWrapper.CompileFile(), tree_helper.compute_ssa_uses_rec_ptr(), NonDeterministicFlows.ComputeArgString(), FindMaxTransformations.ComputeArgString(), tree_helper.ComputeSsaUses(), tree_manipulation.create_gimple_call(), tree_manipulation.CreateCallExpr(), tree_manager.erase_usage_info(), string_cst_fix.Exec(), BambuParameter.Exec(), TestbenchGeneration.Exec(), CreateAddressTranslation.Exec(), InterfaceInfer.Exec(), PragmaAnalysis.get_call_parameter(), tree_helper.get_required_values(), tree_helper.get_used_variables(), BehavioralHelper.GetParameterTypes(), GimpleWriter.GimpleWriter(), CSE.hash_check(), tree_manipulation.InlineFunctionCall(), tree_manager.insert_usage_info(), HDLVarDeclFix.InternalExec(), parm2ssa.InternalExec(), VarDeclFix.InternalExec(), IR_lowering.InternalExec(), soft_float_cg_ext.InternalExec(), mandelbrot(), parm2ssa.recursive_analysis(), string_cst_fix.recursive_analysis(), VarDeclFix.recursive_examinate(), CheckSystemType.recursive_examinate(), soft_float_cg_ext.RecursiveExaminate(), VarComputation.RecursivelyAnalyze(), tree_manager.RecursiveReplaceTreeNode(), soft_float_cg_ext.signature_lowering(), dead_code_eliminationIPA.signature_opt(), Vectorize.Transform(), type_pack_expansion.visit(), expr_pack_expansion.visit(), type_argument_pack.visit(), nontype_argument_pack.visit(), raw_writer.write_when_not_null_point_to(), and HLSCWriter.WriteMainTestbench().
list test_panda.arg_lists = args.args |
Definition at line 795 of file test_panda.py.
test_panda.arged_list = open(arged_list_name, "w") |
Definition at line 799 of file test_panda.py.
test_panda.arged_list_name = os.path.join(abs_path, "arged_list") |
Definition at line 798 of file test_panda.py.
test_panda.args = parser.parse_args() |
Definition at line 468 of file test_panda.py.
Referenced by __attribute__(), determine_memory_accesses.analyze_node(), tree_manager.collapse_into(), Factory< ModuleGenerator, const HLS_managerRef &>.Create(), tree_manager.erase_usage_info(), InterfaceInfer.Exec(), fd_printf(), soft_float_cg_ext.generate_interface(), GimpleWriter.GimpleWriter(), tree_manipulation.InlineFunctionCall(), tree_manager.insert_usage_info(), FixStructsPassedByValue.InternalExec(), call_expr_fix.InternalExec(), CallGraphBuiltinCall.lookForBuiltinCall(), hls_div_cg_ext.recursive_examinate(), VarDeclFix.recursive_examinate(), soft_float_cg_ext.RecursiveExaminate(), Factory< Base, Args >::Registrar< T >.RegisterType(), Factory< Base, Args >::Registrar< T >.Registrar(), compute_implicit_calls.replace_with_memcpy(), compute_implicit_calls.replace_with_memset(), run_benchmark(), InterfaceInfer.setReadInterface(), InterfaceInfer.setWriteInterface(), fu_binding.specialise_fu(), tree_manipulation.VersionFunctionCall(), and call_expr.visit().
string test_panda.benchmark_name = "" |
Definition at line 828 of file test_panda.py.
Referenced by DataXmlParser.Parse().
def test_panda.c_files = SearchCFiles(first_parameter) |
Definition at line 773 of file test_panda.py.
list test_panda.children = [None] * n_jobs |
Definition at line 872 of file test_panda.py.
Referenced by Loops.computeDepth().
list test_panda.command = [tool_exe, "--version"] |
Definition at line 921 of file test_panda.py.
Referenced by ToolManager.check_command(), ToolManager.check_output_files(), CompilerWrapper.CompileFile(), ToolManager.configure(), ToolManager.create_command_line(), ToolManager.create_remote_command_line(), CompilerWrapper.CreateExecutable(), ToolManager.determine_paths(), BasicBlocksProfiling.Exec(), create_tree_manager.Exec(), ToolManager.execute(), CompilerWrapper.GetCompilerParameters(), CompilerWrapper.GetSystemIncludes(), main(), PandaSystem(), ToolManager.prepare_input_files(), CompilerWrapper.QueryCompilerConfig(), and ToolManager.remove_files().
string test_panda.configuration_name = "" |
Definition at line 827 of file test_panda.py.
test_panda.csv = os.path.abspath(args.csv) |
Definition at line 655 of file test_panda.py.
test_panda.daemon |
Definition at line 875 of file test_panda.py.
test_panda.default |
Definition at line 446 of file test_panda.py.
string test_panda.escape_pattern = "(-|_|\{|\}|=|!|\$|#|&|\"|\'|\(|\)|\||<|>|`|\\\|;|\.|,)" |
Definition at line 898 of file test_panda.py.
test_panda.exe_file = os.path.join(path, "bambu") |
Definition at line 562 of file test_panda.py.
test_panda.expanded_list = open(expanded_list_name, "w") |
Definition at line 751 of file test_panda.py.
test_panda.expanded_list_name = os.path.join(abs_path, "expanded_list") |
Definition at line 750 of file test_panda.py.
test_panda.failed_counter = failed_counter_file.read() |
Definition at line 549 of file test_panda.py.
test_panda.failed_counter_file = open(failed_counter_file_name) |
Definition at line 548 of file test_panda.py.
test_panda.failed_counter_file_name = os.path.join(abs_path, "failed_counter") |
Definition at line 546 of file test_panda.py.
Definition at line 19 of file test_panda.py.
test_panda.False |
Definition at line 458 of file test_panda.py.
list test_panda.files_list = [] |
Definition at line 684 of file test_panda.py.
test_panda.first_parameter = os.path.join(abs_benchmarks_root, tokens[0]) |
Definition at line 761 of file test_panda.py.
Definition at line 730 of file test_panda.py.
test_panda.format |
Definition at line 470 of file test_panda.py.
Referenced by soft_float_cg_ext.soft_float_cg_ext().
string test_panda.full_name = configuration_name + ":" + benchmark_name |
Definition at line 841 of file test_panda.py.
Referenced by OpGraph.CGetOutEdges(), CallGraph.WriteDot(), DesignFlowGraph.WriteDot(), CdfcGraph.WriteDot(), BBGraph.WriteDot(), and OpGraph.WriteDot().
test_panda.full_names = set() |
Definition at line 816 of file test_panda.py.
test_panda.help |
Definition at line 443 of file test_panda.py.
test_panda.INFO |
Definition at line 470 of file test_panda.py.
test_panda.junit_file = open(junit_file_name, "w") |
Definition at line 900 of file test_panda.py.
string test_panda.junit_file_name = "" |
Definition at line 514 of file test_panda.py.
int test_panda.junit_index = 0 |
Definition at line 516 of file test_panda.py.
test_panda.level |
Definition at line 470 of file test_panda.py.
int test_panda.line_index = 0 |
Definition at line 18 of file test_panda.py.
test_panda.lines = list_file.readlines() |
Definition at line 717 of file test_panda.py.
Referenced by SynthesisTool.xload_scripts().
test_panda.list_file = open(abs_list) |
Definition at line 716 of file test_panda.py.
string test_panda.local_command = "cat " + report_file_name + " | mutt -s \"" + full_name + ": " + outcome + "\" " + args.mail |
Definition at line 957 of file test_panda.py.
test_panda.lock = threading.RLock() |
Definition at line 867 of file test_panda.py.
Referenced by port_o.xwrite(), constant_o.xwrite(), signal_o.xwrite(), and channel_o.xwrite().
test_panda.lock_creation_destruction = threading.RLock() |
Definition at line 868 of file test_panda.py.
list test_panda.modified_argv = [] |
Definition at line 476 of file test_panda.py.
test_panda.mutt = None |
Definition at line 649 of file test_panda.py.
test_panda.n_jobs = args.j |
Definition at line 469 of file test_panda.py.
test_panda.named_list = open(named_list_name, "w") |
Definition at line 822 of file test_panda.py.
test_panda.named_list_name = os.path.join(abs_path, "named_list") |
Definition at line 821 of file test_panda.py.
test_panda.nargs |
Definition at line 443 of file test_panda.py.
def test_panda.new_dir = ComputeDirectory(line) |
Definition at line 855 of file test_panda.py.
Definition at line 766 of file test_panda.py.
string test_panda.outcome = "" |
Definition at line 943 of file test_panda.py.
test_panda.parameters = list() |
Definition at line 728 of file test_panda.py.
Referenced by AllocationInformation.CanBeChained(), BambuParameter.CheckParameters(), AllocationInformation.compute_normalized_area(), BackendFlow.DetermineBackendFlowType(), AllocationInformation.estimate_call_delay(), AllocationInformation.EstimateControllerDelay(), BackendFlow.ExecuteSynthesis(), ASLAP.get_max_csteps(), BehavioralHelper.get_parameters(), AllocationInformation.GetClockPeriodMargin(), AllocationInformation.GetConnectionTime(), BehavioralHelper.GetParameters(), AllocationInformation.GetToDspRegisterDelay(), AllocationInformation.Initialize(), TestbenchDUTModuleGenerator.InternalExec(), main(), Parameter.ManageDefaultOptions(), CompilerWrapper.ReadParameters(), tree_helper.RecursiveGetTypesToBeDeclared(), eSSA.renameUses(), SimulationTool.Simulate(), Parameter.write_xml_configuration_file(), and HLSCWriter.WriteSimulatorInitMemory().
test_panda.parser = argparse.ArgumentParser(description="Performs panda tests", fromfile_prefix_chars='@') |
Definition at line 442 of file test_panda.py.
Referenced by HLS_constraints.add_builtin_constraints(), AlteraBackendFlow.AlteraBackendFlow(), BashBackendFlow.BashBackendFlow(), PragmaSubstitution.Exec(), LoadDeviceTechnology.Exec(), LoadDefaultTechnology.Exec(), HLS_device.factory(), Translator.get_normalization(), Parameter.GetFileFormat(), HLS_constraints.HLS_constraints(), mem_dominator_allocation.Initialize(), LatticeBackendFlow.LatticeBackendFlow(), generic_device.load_devices(), Parameter.load_xml_configuration_file(), NanoXploreBackendFlow.NanoXploreBackendFlow(), DataXmlParser.Parse(), TestVectorParser.ParseXMLFile(), HLS_constraints.read_HLS_constraints_File(), read_structural_File(), read_technology_File(), CompilerWrapper.readExternalSymbols(), CompilerWrapper.ReadXml(), XilinxBackendFlow.vivado_xparse_utilization(), Translator.write_to_latex(), XilinxBackendFlow.XilinxBackendFlow(), XilinxBackendFlow.xparse_timing(), AlteraBackendFlow.xparse_utilization(), LatticeBackendFlow.xparse_utilization(), BashBackendFlow.xparse_utilization(), NanoXploreBackendFlow.xparse_utilization(), and XilinxBackendFlow.xparse_xst_utilization().
int test_panda.passed_benchmark = 0 |
Definition at line 869 of file test_panda.py.
test_panda.perfpublisher_file = open(perfpublisher_file_name, "w") |
Definition at line 908 of file test_panda.py.
string test_panda.perfpublisher_file_name = "" |
Definition at line 523 of file test_panda.py.
int test_panda.perfpublisher_index = 0 |
Definition at line 525 of file test_panda.py.
string test_panda.perfpublisher_name = "" |
Definition at line 522 of file test_panda.py.
def test_panda.positive_integer |
Definition at line 447 of file test_panda.py.
Referenced by positive_integer().
test_panda.reordered_list = open(reordered_list_name, "w") |
Definition at line 711 of file test_panda.py.
test_panda.reordered_list_name = os.path.join(abs_path, "reordered_list") |
Definition at line 710 of file test_panda.py.
test_panda.report_file = open(report_file_name) |
Definition at line 917 of file test_panda.py.
test_panda.report_file_name = os.path.join(abs_path, "report") |
Definition at line 916 of file test_panda.py.
test_panda.restart |
Definition at line 538 of file test_panda.py.
Referenced by BitValueIPA.Exec(), coloring_based_clique_covering< vertex_type >.exec(), BuildVirtualPhi.InternalExec(), multi_way_if.InternalExec(), PhiOpt.InternalExec(), Bit_Value.InternalExec(), and cdfc_module_binding.InternalExec().
test_panda.shell |
Definition at line 958 of file test_panda.py.
Referenced by processPhoton().
string test_panda.spider = "" |
Definition at line 616 of file test_panda.py.
test_panda.stderr |
Definition at line 922 of file test_panda.py.
Referenced by eassert_func(), getint(), main(), polybench_timer_print(), print_array(), read_file(), and xmalloc().
test_panda.stdout |
Definition at line 922 of file test_panda.py.
Referenced by CopyStdout(), and polybench_flush_cache().
test_panda.table = os.path.abspath(args.table) |
Definition at line 501 of file test_panda.py.
Referenced by __attribute__(), convert_char_digit_2_sseg(), fixedpt_ln(), init_array(), main(), and print_array().
test_panda.temp_list = open(os.path.join(abs_path, "temp_list"), "w") |
Definition at line 703 of file test_panda.py.
list test_panda.threads = [] |
Definition at line 871 of file test_panda.py.
Referenced by main().
test_panda.tokens = shlex.split(line) |
Definition at line 727 of file test_panda.py.
Referenced by structural_manager.add_port(), NP_functionality.get_library_name(), NP_functionality.get_library_parameters(), and HDL_manager.write_fsm().
string test_panda.tool_exe = "" |
Definition at line 555 of file test_panda.py.
int test_panda.total_benchmark = 0 |
Definition at line 870 of file test_panda.py.
test_panda.type |
Definition at line 447 of file test_panda.py.
Referenced by tree_helper.AccessedMaximumBitsize(), tree_helper.AccessedMinimunBitsize(), BasicBlocksGraphConstructor.add_bb_edge_info(), tree_manager.add_identifier_node(), CdfgEdgeInfo.add_nodeID(), NP_functionality.add_NP_functionality(), graphs_collection.AddVertex(), CBackend.AnalyzeInclude(), APInt.APInt(), IR_lowering.array_ref_lowering(), CallGraphBuiltinCall.buildTypeToDeclaration(), graph.CGetEdge(), tree_helper.CGetElements(), tree_helper.CGetFieldTypes(), tree_manager.check_for_decl(), tree_manager.check_for_type(), check_value_opt(), StateTransitionGraph_constructor.connect_state(), BitLatticeManipulator.constructor_bitstring(), constructor_range(), CopyFile(), mux_connection_binding.create_connections(), BackendFlow.CreateFlow(), tree_manipulation.CreateGimpleAssignAddrExpr(), tree_manager.CreateUniqueRealCst(), mux_connection_binding.determine_connection(), IR_lowering.division_by_a_constant(), ends_with(), HDLFunctionDeclFix.Exec(), IR_lowering.expand_target_mem_ref(), CallGraphBuiltinCall.ExtendCallGraph(), memory_allocation.finalize_memory_allocation(), tree_helper.find_obj_type_ref_function(), Vectorize.FixPhis(), tree_helper.get_integer_cst_value(), tree_helper.get_type_name(), tree_helper.GetArrayElementSize(), getBuiltinFieldTypes(), AllocationInformation.GetCondExprTimeLatency(), tree_helper.GetFieldIdx(), AllocationInformation.GetNodeTypePrec(), tree_helper.GetRecordTypeName(), ugraph.GetSelector(), tree_helper.GetTemplateTypeName(), tree_helper.GetTypeName(), tree_helper.GetUnqualifiedType(), tree_helper.HasToBeDeclared(), SerializeMutualExclusions.InternalExec(), IR_lowering.InternalExec(), allocation.InternalExec(), is_large_integer(), BehavioralHelper.is_named_pointer(), BehavioralHelper.is_var_args(), tree_helper.IsAligned(), tree_helper.IsArrayEquivType(), tree_helper.IsArrayType(), BitLatticeManipulator.IsHandledByBitvalue(), tree_helper.IsInLibbambu(), tree_helper.IsPackedType(), tree_helper.IsPositiveIntegerValue(), tree_helper.IsSystemType(), NumberToString(), mux_connection_binding.object_bitsize(), APInt.operator T(), operator"" _apint(), std_var_pp_functor.operator()(), isolated_var_pp_functor.operator()(), FunctionExpander.operator()(), TestbenchGeneration.print_var_init(), BehavioralHelper.PrintConstant(), UnaryOpNode.printDot(), BehavioralHelper.PrintNode(), tree_helper.PrintType(), tree_helper.RecursiveGetTypesToBeDeclared(), RawGraph.RemoveVertex(), graphs_collection.RemoveVertex(), undirected_graphs_collection.RemoveVertex(), library_manager.set_info(), BitLatticeManipulator.Size(), fu_binding.specialise_fu(), Vectorize.Transform(), vcd_parser.vcd_parse_def_var(), cst_node.visit(), baselink.visit(), binfo.visit(), constructor.visit(), HDL_manager.write_components(), VHDL_writer.write_module_parametrization(), verilog_writer.write_module_parametrization(), VHDL_writer.write_module_parametrization_decl(), verilog_writer.write_module_parametrization_decl(), CWriter.WriteBuiltinWaitCall(), CBackend.writeIncludes(), HLSCWriter.WriteParamDecl(), BackendFlow.xload(), and operation.xload().