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

5 6
set(LITE_FPGA_KD_PATH "${PADDLE_SOURCE_DIR}/lite/backends/fpga/KD")
set(LITE_FPGA_PATH "${PADDLE_SOURCE_DIR}/lite/backends/fpga")
Y
Yan Chunwei 已提交
7 8 9 10 11 12 13 14 15

message("fpga_kd_path ${LITE_FPGA_KD_PATH}")
message("fpga_path ${LITE_FPGA_PATH}")
file(GLOB_RECURSE KD_CPP *.cpp *.cc)
file(GLOB FPGA_CPP "${LITE_FPGA_PATH}/*.cc")

cc_library(kernel_fpga SRCS ${KD_CPP} ${FPGA_CPP})
cc_library(lite_tensor_fpga SRCS lite_tensor.cc DEPS memory)
cc_library(fpga_target_wrapper SRCS ${LITE_FPGA_PATH}/target_wrapper.cc DEPS kernel_fpga)