From ee80fef93de39f80f96ea7a0971d97e40a89db34 Mon Sep 17 00:00:00 2001 From: juncaipeng <52520497+juncaipeng@users.noreply.github.com> Date: Wed, 25 Dec 2019 10:35:21 +0800 Subject: [PATCH] add benchmark in cmakefile, test=develop (#2663) (#2670) --- lite/api/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lite/api/CMakeLists.txt b/lite/api/CMakeLists.txt index 64cced8009..0f58a49bd4 100644 --- a/lite/api/CMakeLists.txt +++ b/lite/api/CMakeLists.txt @@ -305,6 +305,16 @@ if(NOT IOS) FPGA_DEPS ${fpga_kernels} X86_DEPS ${x86_kernels} CUDA_DEPS ${cuda_kernels}) + + lite_cc_binary(benchmark_bin SRCS benchmark.cc DEPS paddle_api_full paddle_api_light gflags utils + ${ops} ${host_kernels} + ARM_DEPS ${arm_kernels} + NPU_DEPS ${npu_kernels} + XPU_DEPS ${xpu_kernels} + CL_DEPS ${opencl_kernels} + FPGA_DEPS ${fpga_kernels} + X86_DEPS ${x86_kernels} + CUDA_DEPS ${cuda_kernels}) endif() #lite_cc_binary(cxx_api_bin SRCS cxx_api_bin.cc -- GitLab