CMakeLists.txt 860 字节
Newer Older
Y
Yan Chunwei 已提交
1 2
core_gather_headers()

3 4
add_subdirectory(phi)

5 6 7
gather_srcs(
  infrt_src
  SRCS
Y
Yan Chunwei 已提交
8 9 10 11
  tensor_map.cc
  tensor_metadata.cc
  dense_tensor_view.cc
  dense_host_tensor.cc
12
  tensor_shape.cc)
Y
Yan Chunwei 已提交
13 14 15 16 17 18 19 20 21 22 23

# set(tensor_map_mlir "${CMAKE_SOURCE_DIR}/infrt/dialect/mlir_tests/tensor_map.mlir")
# set(external_kernels_lib "${CMAKE_BINARY_DIR}/paddle/libexternal_kernels.so")
# message(STATUS "tensor_map_mlir: ${tensor_map_mlir}")
# message(STATUS "external_kernels_lib: ${external_kernels_lib}")

# Disable temporarily for the external-kernel's mkldnn is outdate
# add_test(
#     NAME run_and_check_tensor_map
#     COMMAND sh -c "sed -e 's|/infrt/build|${CMAKE_BINARY_DIR}|' ${tensor_map_mlir} > /tmp/tensor_map.mlir && ${CMAKE_BINARY_DIR}/infrt/host_context/infrt-exec -i /tmp/tensor_map.mlir --shared_libs=${external_kernels_lib} | ${LLVM_PATH}/bin/FileCheck ${tensor_map_mlir}"
# )