Skip to content

Commit 12af590

Browse files
committed
fix the build issue on gpu mode for win
test=release1.3
1 parent 74bc55c commit 12af590

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/fluid/framework/ir/graph.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ class Graph {
141141
ir::Node *CreateControlDepVar() {
142142
// TODO(panyx0718): control var name should be really unique.
143143
const std::string name = string::Sprintf(
144-
"%s@%llu", ir::Node::kControlDepVarName, node_set_.size());
144+
"%s@%llu", static_cast<const char *>(ir::Node::kControlDepVarName),
145+
node_set_.size());
145146
auto *x = AddNode(new ir::Node(name, ir::Node::Type::kVariable));
146147
x->SetId(num_node_created_++);
147148
return x;

0 commit comments

Comments
 (0)