Skip to content

Commit

Permalink
[Bug Fix] Fix multiple definition of cinn_runtime_display_debug_info (P…
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahy0825 committed Feb 22, 2024
1 parent 25b2d95 commit ef4e02d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 0 additions & 3 deletions paddle/cinn/common/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,4 @@ std::string NameGenerator::New(const std::string& name_hint) {

} // namespace common

PD_DEFINE_bool(cinn_runtime_display_debug_info,
false,
"Whether to display debug information in runtime");
} // namespace cinn
2 changes: 0 additions & 2 deletions paddle/cinn/common/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

namespace cinn {

PD_DECLARE_bool(cinn_runtime_display_debug_info);

namespace ir {
class Expr;
} // namespace ir
Expand Down
2 changes: 2 additions & 0 deletions paddle/cinn/ir/lowered_func.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include "paddle/cinn/runtime/intrinsic.h"
#include "paddle/cinn/utils/string.h"

PD_DECLARE_bool(cinn_runtime_display_debug_info);

namespace cinn {
namespace ir {

Expand Down
2 changes: 2 additions & 0 deletions paddle/cinn/lang/lower_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include "paddle/cinn/optim/transform_polyfor_to_for.h"
#include "paddle/cinn/poly/stage.h"

PD_DECLARE_bool(cinn_runtime_display_debug_info);

namespace cinn {
namespace lang {
namespace detail {
Expand Down
4 changes: 4 additions & 0 deletions paddle/cinn/runtime/flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ PD_DEFINE_string(cinn_pass_visualize_dir,
"Specify the directory path of pass visualize file of graph, "
"which is used for debug.");

PD_DEFINE_bool(cinn_runtime_display_debug_info,
false,
"Whether to display debug information in runtime");

PD_DEFINE_bool(enable_auto_tuner,
BoolFromEnv("FLAGS_enable_auto_tuner", false),
"Whether enable auto tuner.");
Expand Down

0 comments on commit ef4e02d

Please sign in to comment.