CMakeLists.txt 441 字节
Newer Older
C
Chunwei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
if (NOT LITE_WITH_OPENCL)
    return ()
endif()

set(cl_kernel_deps op_params_lite cl_caller cl_engine cl_context cl_wrapper)

cc_library(elementwise_add_opencl SRCS elementwise_add_compute.cc DEPS ${cl_kernel_deps})

lite_cc_test(test_elementwise_add_opencl SRCS elementwise_add_compute_test.cc DEPS elementwise_add_opencl
  op_registry_lite program_lite
  context_lite
  )

set(opencl_kernels
  elementwise_add_opencl
  CACHE INTERNAL "")