CMakeLists.txt 1004 字节
Newer Older
Y
Yan Chunwei 已提交
1 2 3 4
if (NOT LITE_WITH_OPENCL)
    return()
endif()

5
lite_cc_library(opencl_kernels_source_cc SRCS opencl_kernels_source.cc)
Y
Yan Chunwei 已提交
6 7
lite_cc_library(cl_wrapper SRCS cl_wrapper.cc)
lite_cc_library(cl_utility SRCS cl_utility.cc DEPS cl_wrapper)
8
lite_cc_library(cl_runtime SRCS cl_runtime.cc DEPS cl_utility opencl_kernels_source_cc)
Y
Yan Chunwei 已提交
9
lite_cc_library(cl_context SRCS cl_context.cc DEPS cl_runtime)
10 11
lite_cc_library(cl_half SRCS cl_half.cc)
lite_cc_library(cl_image_converter SRCS cl_image_converter.cc DEPS tensor cl_half)
Y
Yan Chunwei 已提交
12 13 14
lite_cc_library(cl_image SRCS cl_image.cc DEPS tensor cl_image_converter cl_runtime)
lite_cc_library(cl_caller SRCS cl_caller.cc  DEPS cl_context cl_image)
lite_cc_library(cl_target_wrapper SRCS target_wrapper.cc DEPS cl_runtime)
15 16
lite_cc_test(test_cl_functions SRCS cl_functions_test.cc DEPS cl_context cl_image cl_caller cl_wrapper cl_target_wrapper)
lite_cc_test(test_cl_im2col SRCS cl_im2col_test.cc DEPS tensor cl_context cl_wrapper cl_target_wrapper)
Y
Yan Chunwei 已提交
17 18

add_dependencies(cl_wrapper opencl_clhpp)