Skip to content

Commit

Permalink
[RUNTIME] Fix compile errors of OpenCL FPGA backend (#4492)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazum authored and tqchen committed Dec 11, 2019
1 parent 53c0363 commit a05f73e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/runtime/opencl/aocl/aocl_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ Module AOCLModuleCreate(
std::string fmt,
std::unordered_map<std::string, FunctionInfo> fmap,
std::string source) {
std::shared_ptr<AOCLModuleNode> n =
std::make_shared<AOCLModuleNode>(data, fmt, fmap, source);
auto n = make_object<AOCLModuleNode>(data, fmt, fmap, source);
n->Init();
return Module(n);
}
Expand Down
3 changes: 1 addition & 2 deletions src/runtime/opencl/sdaccel/sdaccel_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ Module SDAccelModuleCreate(
std::string fmt,
std::unordered_map<std::string, FunctionInfo> fmap,
std::string source) {
std::shared_ptr<SDAccelModuleNode> n =
std::make_shared<SDAccelModuleNode>(data, fmt, fmap, source);
auto n = make_object<SDAccelModuleNode>(data, fmt, fmap, source);
n->Init();
return Module(n);
}
Expand Down

0 comments on commit a05f73e

Please sign in to comment.