示例#1
0
 def run(self, scale, factor, a, b, c, d, output):
     make = make_graph500.operation()
     make.run()
     base_dir = os.path.dirname(
         os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
     graph_dir = os.path.join(base_dir, "graph500-2.1.4")
     exe = os.path.join(graph_dir, "make-edgelist")
     arguments = [
         exe, "-s",
         str(scale), "-e",
         str(factor), "-a",
         str(a), "-b",
         str(b), "-c",
         str(c), "-d",
         str(d), "-o", output
     ]
     print "Generate elist ", string.join(arguments)
     p = subprocess.Popen(arguments, stdout=sys.stdout, stderr=sys.stderr)
     p.wait()
     return True
示例#2
0
def populate():
    if len(operations) == 0:
        add_operation(query.operation())
        add_operation(show_tables.operation())
        add_operation(delete_tag.operation())
        add_operation(report.operation())
        add_operation(run.operation())
        add_operation(show_db_config.operation())
        add_operation(graph_create.operation())
        add_operation(graph_v_ingest.operation())
        add_operation(graph_v_search.operation())
        add_operation(make_graph500.operation())
        add_operation(generate_elist.operation())
        add_operation(graph_e_ingest.operation())
        add_operation(graph_e_standard_ingest.operation())
        add_operation(graph_e_ring_ingest.operation())
        add_operation(graph_navigate_ring.operation())
        add_operation(graph_navigate_dense.operation())
        pass
    pass