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
3d52abe0
Commit
3d52abe0
authored
Oct 13, 2023
by
Umang Yadav
Browse files
Rename env var
parent
bd12f16b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/generate_root_modules.cpp
src/generate_root_modules.cpp
+6
-6
No files found.
src/generate_root_modules.cpp
View file @
3d52abe0
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
#include <migraphx/iterator_for.hpp>
#include <migraphx/iterator_for.hpp>
#include <migraphx/ranges.hpp>
#include <migraphx/ranges.hpp>
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_DEBUG_
PARTITIONE
R
)
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_DEBUG_
ROOT_GENERATO
R
)
namespace
migraphx
{
namespace
migraphx
{
inline
namespace
MIGRAPHX_INLINE_NS
{
inline
namespace
MIGRAPHX_INLINE_NS
{
...
@@ -185,7 +185,7 @@ struct auto_gen_root_modules
...
@@ -185,7 +185,7 @@ struct auto_gen_root_modules
{
{
// sort the graph in reverse post order DFS order
// sort the graph in reverse post order DFS order
mm
->
sort
();
mm
->
sort
();
if
(
enabled
(
MIGRAPHX_DEBUG_
PARTITIONE
R
{}))
if
(
enabled
(
MIGRAPHX_DEBUG_
ROOT_GENERATO
R
{}))
{
{
std
::
cout
<<
"sorted module:
\n
"
;
std
::
cout
<<
"sorted module:
\n
"
;
mm
->
debug_print
();
mm
->
debug_print
();
...
@@ -194,7 +194,7 @@ struct auto_gen_root_modules
...
@@ -194,7 +194,7 @@ struct auto_gen_root_modules
std
::
optional
<
std
::
size_t
>
current_tid
=
nullopt
;
std
::
optional
<
std
::
size_t
>
current_tid
=
nullopt
;
for
(
auto
ins
:
iterator_for
(
*
mm
))
for
(
auto
ins
:
iterator_for
(
*
mm
))
{
{
if
(
enabled
(
MIGRAPHX_DEBUG_
PARTITIONE
R
{}))
if
(
enabled
(
MIGRAPHX_DEBUG_
ROOT_GENERATO
R
{}))
{
{
std
::
cout
<<
"looking at instruction:
\n
"
;
std
::
cout
<<
"looking at instruction:
\n
"
;
ins
->
debug_print
();
ins
->
debug_print
();
...
@@ -300,7 +300,7 @@ struct auto_gen_root_modules
...
@@ -300,7 +300,7 @@ struct auto_gen_root_modules
return_ins
.
insert
(
*
tins
);
return_ins
.
insert
(
*
tins
);
}
}
}
}
if
(
enabled
(
MIGRAPHX_DEBUG_
PARTITIONE
R
{}))
if
(
enabled
(
MIGRAPHX_DEBUG_
ROOT_GENERATO
R
{}))
{
{
std
::
cout
<<
"params ins:
\n
"
;
std
::
cout
<<
"params ins:
\n
"
;
for
(
auto
tmp
:
iterator_for
(
params
))
for
(
auto
tmp
:
iterator_for
(
params
))
...
@@ -360,7 +360,7 @@ struct auto_gen_root_modules
...
@@ -360,7 +360,7 @@ struct auto_gen_root_modules
}
}
tmod
->
add_return
(
rins
);
tmod
->
add_return
(
rins
);
if
(
enabled
(
MIGRAPHX_DEBUG_
PARTITIONE
R
{}))
if
(
enabled
(
MIGRAPHX_DEBUG_
ROOT_GENERATO
R
{}))
{
{
std
::
cout
<<
"Created target module: "
<<
tmod
->
name
()
<<
"
\n
"
;
std
::
cout
<<
"Created target module: "
<<
tmod
->
name
()
<<
"
\n
"
;
tmod
->
debug_print
();
tmod
->
debug_print
();
...
@@ -397,7 +397,7 @@ struct auto_gen_root_modules
...
@@ -397,7 +397,7 @@ struct auto_gen_root_modules
{
{
current_tid
=
std
::
numeric_limits
<
std
::
size_t
>::
max
();
current_tid
=
std
::
numeric_limits
<
std
::
size_t
>::
max
();
}
}
if
(
enabled
(
MIGRAPHX_DEBUG_
PARTITIONE
R
{}))
if
(
enabled
(
MIGRAPHX_DEBUG_
ROOT_GENERATO
R
{}))
{
{
std
::
cout
<<
"Main module after creation of target module: "
<<
tmod
->
name
()
<<
"
\n
"
;
std
::
cout
<<
"Main module after creation of target module: "
<<
tmod
->
name
()
<<
"
\n
"
;
mm
->
debug_print
();
mm
->
debug_print
();
...
...
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