Commit 3d52abe0 authored by Umang Yadav's avatar Umang Yadav
Browse files

Rename env var

parent bd12f16b
...@@ -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_PARTITIONER) MIGRAPHX_DECLARE_ENV_VAR(MIGRAPHX_DEBUG_ROOT_GENERATOR)
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_PARTITIONER{})) if(enabled(MIGRAPHX_DEBUG_ROOT_GENERATOR{}))
{ {
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_PARTITIONER{})) if(enabled(MIGRAPHX_DEBUG_ROOT_GENERATOR{}))
{ {
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_PARTITIONER{})) if(enabled(MIGRAPHX_DEBUG_ROOT_GENERATOR{}))
{ {
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_PARTITIONER{})) if(enabled(MIGRAPHX_DEBUG_ROOT_GENERATOR{}))
{ {
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_PARTITIONER{})) if(enabled(MIGRAPHX_DEBUG_ROOT_GENERATOR{}))
{ {
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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment