Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
3768c23e
Commit
3768c23e
authored
Apr 13, 2022
by
umangyadav
Browse files
change mod passes trce
parent
6c34bc60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
src/pass_manager.cpp
src/pass_manager.cpp
+1
-6
No files found.
src/pass_manager.cpp
View file @
3768c23e
...
@@ -94,7 +94,6 @@ void run_passes(program& prog, const std::vector<pass>& passes, tracer trace)
...
@@ -94,7 +94,6 @@ void run_passes(program& prog, const std::vector<pass>& passes, tracer trace)
{
{
if
(
enabled
(
MIGRAPHX_TRACE_PASSES
{})
and
not
trace
.
enabled
())
if
(
enabled
(
MIGRAPHX_TRACE_PASSES
{})
and
not
trace
.
enabled
())
trace
=
tracer
{
"passes"
};
trace
=
tracer
{
"passes"
};
auto
module_trace
=
trace
;
std
::
unordered_map
<
std
::
string
,
tracer
>
module_tracer_map
;
std
::
unordered_map
<
std
::
string
,
tracer
>
module_tracer_map
;
for
(
const
auto
&
p
:
passes
)
for
(
const
auto
&
p
:
passes
)
{
{
...
@@ -103,11 +102,7 @@ void run_passes(program& prog, const std::vector<pass>& passes, tracer trace)
...
@@ -103,11 +102,7 @@ void run_passes(program& prog, const std::vector<pass>& passes, tracer trace)
{
{
if
(
module_tracer_map
.
find
(
mod
->
name
())
==
module_tracer_map
.
end
())
if
(
module_tracer_map
.
find
(
mod
->
name
())
==
module_tracer_map
.
end
())
{
{
module_tracer_map
[
mod
->
name
()]
=
module_trace
;
module_tracer_map
[
mod
->
name
()]
=
tracer
{
trace
.
enabled
()
?
trace
.
dump_dir
+
"/"
+
mod
->
name
()
:
""
};
if
(
trace
.
enabled
())
{
module_tracer_map
[
mod
->
name
()].
dump_dir
+=
"/"
+
mod
->
name
();
}
}
}
if
(
mod
->
bypass
())
if
(
mod
->
bypass
())
continue
;
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment