mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-06 11:10:06 +01:00
added support for optional condition flag dependency analysis
This commit is contained in:
@@ -170,6 +170,14 @@ def create_parser(parser=None):
|
|||||||
" its analysis with the dependency paths found up to this point. Defaults to 10."
|
" its analysis with the dependency paths found up to this point. Defaults to 10."
|
||||||
" Set to -1 for no timeout.",
|
" Set to -1 for no timeout.",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--consider-flag-deps",
|
||||||
|
"-f",
|
||||||
|
dest="consider_flag_deps",
|
||||||
|
action="store_true",
|
||||||
|
default=False,
|
||||||
|
help="Consider flag dependencies (carry, zero, ...)",
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--verbose", "-v", action="count", default=0, help="Increases verbosity level."
|
"--verbose", "-v", action="count", default=0, help="Increases verbosity level."
|
||||||
)
|
)
|
||||||
@@ -333,7 +341,9 @@ def inspect(args, output_file=sys.stdout):
|
|||||||
semantics.assign_optimal_throughput(kernel)
|
semantics.assign_optimal_throughput(kernel)
|
||||||
|
|
||||||
# Create DiGrahps
|
# Create DiGrahps
|
||||||
kernel_graph = KernelDG(kernel, parser, machine_model, semantics, args.lcd_timeout)
|
kernel_graph = KernelDG(
|
||||||
|
kernel, parser, machine_model, semantics, args.lcd_timeout, args.consider_flag_deps
|
||||||
|
)
|
||||||
if args.dotpath is not None:
|
if args.dotpath is not None:
|
||||||
kernel_graph.export_graph(args.dotpath if args.dotpath != "." else None)
|
kernel_graph.export_graph(args.dotpath if args.dotpath != "." else None)
|
||||||
# Print analysis
|
# Print analysis
|
||||||
|
|||||||
Reference in New Issue
Block a user