From 6165cb2d21da5232cd7099a432cf7e1824868d96 Mon Sep 17 00:00:00 2001 From: liuruilong Date: Tue, 19 Jun 2018 10:36:59 +0800 Subject: [PATCH] add multiple device support --- CMakeLists.txt | 2 +- src/io/io.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83da232f9f..1007e46bf5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ option(USE_EXCEPTION "use std exception" ON) option(LOG_PROFILE "log profile" ON) # select the platform to build option(CPU "cpu" ON) -option(MALI_GPU "mali gpu" OFF) +option(MALI_GPU "mali gpu" ON) option(FPGA "fpga" OFF) if (CPU) diff --git a/src/io/io.cpp b/src/io/io.cpp index 7dc2e3cb0c..91f8c5727c 100644 --- a/src/io/io.cpp +++ b/src/io/io.cpp @@ -160,6 +160,8 @@ const framework::Program Loader::LoadProgram( } template class Loader; +template class Loader; +template class Loader; #pragma mark - executor @@ -413,5 +415,7 @@ std::vector::Ptype> Executor::Predict( } template class Executor; +template class Executor; +template class Executor; } // namespace paddle_mobile -- GitLab