Skip to content

Commit 238ef94

Browse files
committed
fix the build issue on gpu mode for win
test=develop
1 parent c356bd0 commit 238ef94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/fluid/framework/ir/graph.h

+2-1
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)