Commit a05f73e9 by MORITA Kazutaka Committed by Tianqi Chen

[RUNTIME] Fix compile errors of OpenCL FPGA backend (#4492)

parent 53c0363d
...@@ -50,8 +50,7 @@ Module AOCLModuleCreate( ...@@ -50,8 +50,7 @@ Module AOCLModuleCreate(
std::string fmt, std::string fmt,
std::unordered_map<std::string, FunctionInfo> fmap, std::unordered_map<std::string, FunctionInfo> fmap,
std::string source) { std::string source) {
std::shared_ptr<AOCLModuleNode> n = auto n = make_object<AOCLModuleNode>(data, fmt, fmap, source);
std::make_shared<AOCLModuleNode>(data, fmt, fmap, source);
n->Init(); n->Init();
return Module(n); return Module(n);
} }
......
...@@ -50,8 +50,7 @@ Module SDAccelModuleCreate( ...@@ -50,8 +50,7 @@ Module SDAccelModuleCreate(
std::string fmt, std::string fmt,
std::unordered_map<std::string, FunctionInfo> fmap, std::unordered_map<std::string, FunctionInfo> fmap,
std::string source) { std::string source) {
std::shared_ptr<SDAccelModuleNode> n = auto n = make_object<SDAccelModuleNode>(data, fmt, fmap, source);
std::make_shared<SDAccelModuleNode>(data, fmt, fmap, source);
n->Init(); n->Init();
return Module(n); return Module(n);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment