()
| 108 | |
| 109 | |
| 110 | def main(): |
| 111 | logging.info("Downloading model...") |
| 112 | subprocess.check_output( |
| 113 | "aws --endpoint-url=http://oss.i.brainpp.cn s3 sync s3://megengine-built/megcc/integration_packaging/megcc_bench_model/ {}".format(models_dir), shell=True, stderr=subprocess.STDOUT) |
| 114 | logging.info("Download model done.") |
| 115 | build_model_and_megcc_lib(all_models, models_dir, arch_list) |
| 116 | gen_benchmarker(arch_list) |
| 117 | build_benchmarker(x86_target="fallback", |
| 118 | arch_str=arch_list, |
| 119 | benchmarkers=benchmarker_list) |
| 120 | set_config_and_run(arch_list) |
| 121 | |
| 122 | |
| 123 | if __name__ == "__main__": |
no test coverage detected