(flags)
| 55 | |
| 56 | |
| 57 | def build_engine(flags): |
| 58 | cmake_shell = os.path.abspath( |
| 59 | os.path.dirname( |
| 60 | __file__)) + "/../cmake/cmake-build-%s.sh" % flags.target_abi |
| 61 | os.environ["BUILD_DIR"] = flags.build_dir + "/" + flags.target_abi |
| 62 | if flags.runtime: |
| 63 | os.environ["RUNTIME"] = config_parser.parse_device_type( |
| 64 | flags.runtime).name |
| 65 | if flags.gencode_model: |
| 66 | os.environ["RUNMODE"] = "code" |
| 67 | device.execute("bash " + cmake_shell) |
| 68 | |
| 69 | |
| 70 | def run_models(flags, args): |