Skip to content
Snippets Groups Projects
Commit 641618d5 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Reduced output from hpvm-clang

parent 3b35b08f
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ def compile_hpvm_c( ...@@ -36,6 +36,7 @@ def compile_hpvm_c(
link_libs: List[str] = None, link_libs: List[str] = None,
working_dir: PathLike = None, working_dir: PathLike = None,
conf_file: PathLike = None, conf_file: PathLike = None,
verbose: bool = False,
): ):
from subprocess import check_output from subprocess import check_output
...@@ -84,7 +85,8 @@ def compile_hpvm_c( ...@@ -84,7 +85,8 @@ def compile_hpvm_c(
link_binary(hpvm_rt_linked_file, output_file, link_dirs, link_libs) link_binary(hpvm_rt_linked_file, output_file, link_dirs, link_libs)
) )
for command in commands: for command in commands:
print(" ".join(command)) if verbose:
print(" ".join(command))
check_output(command) check_output(command)
...@@ -245,6 +247,10 @@ See option -b for that.""" ...@@ -245,6 +247,10 @@ See option -b for that."""
help="[clang linker] Link library (such as -lpthread)" help="[clang linker] Link library (such as -lpthread)"
) )
parser.add_argument(
"-v", "--verbose", action="store_true", help="Print out all clang/opt/llvm-link commands used"
)
args = parser.parse_args() args = parser.parse_args()
if args.tensor_target == "tensor": if args.tensor_target == "tensor":
if args.conf_file is None: if args.conf_file is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment