CMakeLists.txt 645 字节
Newer Older
1
if(WITH_GPU)
2
  cc_library(convert_utils SRCS convert_utils.cc DEPS data_type place gpu_info)
3
elseif(WITH_ROCM)
4
  cc_library(convert_utils SRCS convert_utils.cc DEPS data_type place gpu_info)
5
else()
6
  cc_library(convert_utils SRCS convert_utils.cc DEPS data_type place)
7 8
endif()

9
cc_library(kernel_factory SRCS kernel_factory.cc DEPS enforce convert_utils)
10
cc_library(kernel_context SRCS kernel_context.cc DEPS enforce pten_context)
11 12

cc_library(tensor_base SRCS tensor_base.cc allocator.cc storage.cc DEPS enforce)
13 14
cc_library(tensor_meta SRCS tensor_meta.cc DEPS enforce)
cc_library(dense_tensor SRCS dense_tensor.cc DEPS tensor_meta tensor_base)