You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by li...@apache.org on 2020/06/21 20:39:26 UTC
[incubator-tvm] branch v0.6 updated: [BACKPORT-0.6][RUNTIME] Fix
compile errors of OpenCL FPGA backend (#5869)
This is an automated email from the ASF dual-hosted git repository.
liuyizhi pushed a commit to branch v0.6
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git
The following commit(s) were added to refs/heads/v0.6 by this push:
new 604ca3f [BACKPORT-0.6][RUNTIME] Fix compile errors of OpenCL FPGA backend (#5869)
604ca3f is described below
commit 604ca3f1c970c4ecf3ba9d92008495a0dfd417b0
Author: Yizhi Liu <li...@apache.org>
AuthorDate: Sun Jun 21 13:39:16 2020 -0700
[BACKPORT-0.6][RUNTIME] Fix compile errors of OpenCL FPGA backend (#5869)
Co-authored-by: MORITA Kazutaka <mo...@gmail.com>
Co-authored-by: MORITA Kazutaka <mo...@gmail.com>
---
src/runtime/opencl/aocl/aocl_module.cc | 3 +--
src/runtime/opencl/sdaccel/sdaccel_module.cc | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/runtime/opencl/aocl/aocl_module.cc b/src/runtime/opencl/aocl/aocl_module.cc
index 2c2bc68..5ee36fd 100644
--- a/src/runtime/opencl/aocl/aocl_module.cc
+++ b/src/runtime/opencl/aocl/aocl_module.cc
@@ -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);
}
diff --git a/src/runtime/opencl/sdaccel/sdaccel_module.cc b/src/runtime/opencl/sdaccel/sdaccel_module.cc
index 5436b41..31db46a 100644
--- a/src/runtime/opencl/sdaccel/sdaccel_module.cc
+++ b/src/runtime/opencl/sdaccel/sdaccel_module.cc
@@ -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);
}