Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias alias alias alias alias alias alias alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotEq SubscriptLoad NameLoad Index Num Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index BinOpAdd Str NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If CompareGt NameLoad Num body Assign SubscriptStore NameLoad Index BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr keyword Str NameStore body For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr attr body Print NameLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore ListLoad BinOpAdd Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore ListLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd ListLoad AttributeLoad NameLoad attr Str Str BinOpMod Str NameLoad BinOpAdd Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str If CompareLt AttributeLoad NameLoad attr BinOpAdd NameLoad Num body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Print NameLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad For NameStore Call AttributeLoad NameLoad attr Str NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Num Num Num Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assert CompareEq NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad orelse If NameLoad body Pass orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Num orelse If CompareEq NameLoad Str body Pass orelse If BoolOpAnd CompareEq NameLoad Num CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd Str NameLoad Call NameLoad BinOpAdd NameLoad Num BinOpDiv NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A adddeps N/A re N/A argparse N/A logging N/A subprocess N/A tempfile N/A json pprint pprint N/A opentuner opentuner.search.manipulator ConfigurationManipulator IntegerParameter LogIntegerParameter FloatParameter LogFloatParameter SelectorParameter SwitchParameter PermutationParameter N/A N/A lxml etree N/A N/A N/A ImportError N/A N/A xml.etree.ElementTree etree opentuner.measurement MeasurementInterface opentuner.measurement.inputmanager FixedInputManager opentuner.search.objective ThresholdAccuracyMinimizeTime N/A log N/A N/A logging getLogger pbtuner N/A parser N/A N/A argparse ArgumentParser parents N/A N/A opentuner argparsers N/A N/A N/A parser add_argument program help PetaBricks binary program to autotune N/A N/A N/A parser add_argument --program-cfg-default help override default program config exemplar location N/A N/A N/A parser add_argument --program-cfg-output help location final autotuned configuration is written N/A N/A N/A parser add_argument --program-settings help override default program settings file location N/A N/A N/A parser add_argument --program-input help use only a given input for autotuning N/A N/A N/A parser add_argument --upper-limit type float default 30 help time limit to apply to initial test N/A N/A N/A parser add_argument --test-config action store_true PetaBricksInterface N/A MeasurementInterface N/A __init__ N/A N/A self args N/A N/A N/A N/A self program_settings N/A N/A json load N/A open N/A args program_settings N/A input_manager N/A FixedInputManager size N/A N/A self program_settings N/A n N/A objective N/A ThresholdAccuracyMinimizeTime N/A N/A self program_settings N/A accuracy N/A N/A N/A N/A super PetaBricksInterface self __init__ args program_name N/A args program program_version N/A N/A self file_hash N/A args program input_manager input_manager objective objective N/A build_config N/A N/A self cfg N/A N/A N/A r N/A dict N/A N/A k v N/A N/A cfg iteritems N/A N/A N/A N/A k N/A 0 . N/A N/A N/A r N/A k v N/A N/A name choices N/A N/A N/A self choice_sites items N/A N/A param N/A N/A N/A N/A self manipulator parameters_dict cfg N/A N/A . name N/A lvl 0 N/A N/A cutoff choice N/A N/A param selector_iter cfg N/A N/A lvl 1 N/A N/A r N/A N/A %s_lvl%d_rule N/A name lvl choice N/A N/A lvl 1 N/A N/A N/A r N/A N/A %s_lvl%d_cutoff N/A name lvl cutoff N/A r N/A run N/A N/A self desired_result input limit N/A N/A N/A limit N/A min limit N/A N/A self args upper_limit N/A N/A N/A tempfile NamedTemporaryFile suffix .petabricks.cfg cfgtmp N/A N/A N/A k v N/A N/A N/A N/A self build_config N/A N/A desired_result configuration data items N/A N/A cfgtmp k = v N/A N/A N/A cfgtmp flush N/A N/A args program_input N/A N/A input_opts N/A N/A --iogen-run= N/A args program_input N/A --iogen-n=%d N/A N/A input input_class size N/A N/A input_opts N/A N/A -n=%d N/A N/A input input_class size N/A cmd N/A N/A N/A args program --time --accuracy N/A --max-sec=%.8f limit N/A --config= N/A cfgtmp name input_opts N/A N/A N/A log debug cmd: %s N/A N/A join cmd N/A p N/A N/A subprocess Popen cmd stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A out err N/A N/A p communicate N/A result N/A N/A N/A N/A opentuner resultsdb models Result N/A N/A N/A root N/A N/A etree XML out N/A N/A result time N/A float N/A N/A N/A N/A root find stats/timing get average N/A N/A result accuracy N/A float N/A N/A N/A N/A root find stats/accuracy get average N/A N/A N/A result time N/A limit 3600 N/A N/A N/A result state OK N/A N/A N/A result state TIMEOUT N/A N/A N/A N/A N/A N/A log warning program crash, out = %s / err = %s out err N/A N/A result state ERROR N/A N/A result time N/A float inf N/A N/A result accuracy N/A float -inf N/A result N/A save_final_config N/A N/A self configuration N/A N/A N/A 
    called at the end of autotuning with the best
    resultsdb.models.Configuration
     N/A N/A open N/A args program_cfg_output w fd N/A N/A cfg N/A N/A self build_config N/A configuration data N/A N/A k v N/A sorted N/A N/A cfg items N/A N/A fd k = v N/A N/A N/A log info final configuration written to %s N/A args program_cfg_output N/A manipulator N/A N/A self N/A N/A N/A create the configuration manipulator, from example config N/A upper_limit N/A N/A N/A self program_settings N/A n 1 N/A cfg N/A N/A N/A open N/A N/A self args program_cfg_default read N/A manipulator N/A ConfigurationManipulator N/A N/A self choice_sites N/A dict N/A m N/A N/A re finditer  *([a-zA-Z0-9_-]+)[ =]+([0-9e.+-]+) *[#] *([a-z]+).* ([0-9]+) to ([0-9]+) cfg N/A N/A N/A k v valtype minval maxval N/A N/A m group 1 2 3 4 5 N/A minval N/A float minval N/A maxval N/A float maxval N/A upper_limit N/A N/A maxval N/A min maxval upper_limit N/A N/A valtype int N/A m1 N/A N/A re match (.*)_lvl[0-9]+_rule k N/A m2 N/A N/A re match (.*)_lvl[0-9]+_cutoff k N/A m1 N/A N/A N/A N/A self choice_sites N/A N/A N/A m1 group 1 N/A int maxval N/A N/A m2 N/A N/A N/A N/A N/A k worker_threads N/A N/A N/A N/A manipulator add_parameter N/A IntegerParameter k 1 16 N/A N/A N/A k distributedcutoff N/A N/A N/A N/A N/A N/A minval 0 N/A maxval 64 N/A N/A N/A N/A manipulator add_parameter N/A SwitchParameter k maxval N/A N/A N/A N/A manipulator add_parameter N/A LogIntegerParameter k minval maxval N/A N/A name choices N/A N/A N/A self choice_sites items N/A N/A N/A N/A manipulator add_parameter N/A SelectorParameter N/A . name N/A range N/A choices 1 N/A upper_limit choices N/A N/A self manipulator manipulator N/A manipulator N/A test_config N/A N/A self N/A N/A N/A N/A pprint N/A N/A N/A N/A self manipulator random N/A N/A N/A N/A __name__ __main__ N/A N/A args N/A N/A parser parse_args N/A N/A N/A args program_cfg_default N/A N/A N/A args program_cfg_default N/A N/A args program .cfg.default N/A N/A N/A args program_cfg_output N/A N/A N/A args program_cfg_output N/A N/A args program .cfg N/A N/A N/A args program_settings N/A N/A N/A args program_settings N/A N/A args program .settings N/A N/A args test_config N/A N/A N/A N/A N/A PetaBricksInterface args test_config N/A N/A N/A N/A PetaBricksInterface main args