MCPcopy Create free account
hub / github.com/apache/tvm / cmd

Function cmd

tests/scripts/ci.py:76–83  ·  view source on GitHub ↗
(commands: list[Any], **kwargs: Any)

Source from the content-addressed store, hash-verified

74
75
76def cmd(commands: list[Any], **kwargs: Any):
77 commands = [str(s) for s in commands]
78 command_str = " ".join(commands)
79 print_color(col.BLUE, command_str, bold=True)
80 proc = subprocess.run(commands, **kwargs)
81 if proc.returncode != 0:
82 raise RuntimeError(f"Command failed: '{command_str}'")
83 return proc
84
85
86def get_build_dir(name: str) -> str:

Callers 3

check_gpuFunction · 0.85
dockerFunction · 0.85
serve_docsFunction · 0.85

Calls 4

strFunction · 0.85
print_colorFunction · 0.85
joinMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected