Skip to content

Commit

Permalink
[RUNTIME] Fix compile errors of OpenCL FPGA backend (apache#4492)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazum authored and Xingyu Zhou committed Dec 13, 2019
1 parent ff78146 commit f4301c5
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 f4301c5

Please sign in to comment.