-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'asplos' into tututorialDescription
- Loading branch information
Showing
9 changed files
with
336 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# test_utils.py -*- Python -*- | ||
# | ||
# Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. | ||
# SPDX-License-Identifier: MIT | ||
|
||
import argparse | ||
|
||
# options | ||
def parse_args(args): | ||
p = argparse.ArgumentParser() | ||
p.add_argument( | ||
"-x", "--xclbin", required=True, dest="xclbin", help="the input xclbin path" | ||
) | ||
p.add_argument( | ||
"-k", | ||
"--kernel", | ||
required=True, | ||
dest="kernel", | ||
default="MLIR_AIE", | ||
help="the kernel name in the XCLBIN (for instance MLIR_AIE)", | ||
) | ||
p.add_argument( | ||
"-v", "--verbosity", default=0, type=int, help="the verbosity of the output" | ||
) | ||
p.add_argument( | ||
"-i", | ||
"--instr", | ||
dest="instr", | ||
default="instr.txt", | ||
help="path of file containing userspace instructions sent to the NPU", | ||
) | ||
p.add_argument( | ||
"--verify", | ||
dest="verify", | ||
default=True, | ||
help="whether to verify the AIE computed output", | ||
) | ||
p.add_argument( | ||
"--iters", | ||
dest="iters", | ||
default=1, | ||
type=int, | ||
help="number of benchmark iterations", | ||
) | ||
p.add_argument( | ||
"--warmup", | ||
dest="warmup_iters", | ||
default=0, | ||
type=int, | ||
help="number of warmup iterations", | ||
) | ||
p.add_argument( | ||
"-t", | ||
"--trace_sz", | ||
dest="trace_size", | ||
default=0, | ||
type=int, | ||
help="trace size in bytes", | ||
) | ||
p.add_argument( | ||
"--trace_file", | ||
dest="trace_file", | ||
default="trace.txt", | ||
help="where to store trace output", | ||
) | ||
return p.parse_args(args) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.