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(
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);
}
......
......@@ -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);
}
......
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