CMakeLists.txt 1.6 KB
Newer Older
C
Chen Weihang 已提交
1
add_subdirectory(eigen)
2 3
add_subdirectory(blas)
add_subdirectory(lapack)
F
Feiyu Chan 已提交
4
add_subdirectory(detail)
5

6
math_library(deformable_conv_functor DEPS dense_tensor)
F
From00 已提交
7
math_library(concat_and_split_functor DEPS dense_tensor)
8
math_library(fc_functor DEPS blas jit_kernel_helper)
9
math_library(gpc DEPS phi_enforce)
F
Feiyu Chan 已提交
10 11
math_library(gru_compute DEPS activation_functions math_function)
math_library(lstm_compute DEPS activation_functions)
12
math_library(math_function DEPS blas dense_tensor)
13
math_library(matrix_reduce DEPS dense_tensor)
14
math_library(matrix_inverse DEPS dense_tensor eigen3 blas)
F
From00 已提交
15 16 17
math_library(pooling DEPS dense_tensor)
math_library(segment_pooling)
math_library(sequence2batch)
18
math_library(matrix_solve DEPS dense_tensor eigen3 blas math_function)
19
math_library(cross_entropy)
20
math_library(vol2col)
F
Feiyu Chan 已提交
21

22 23 24 25 26
cc_library(
  phi_data_layout_transform
  SRCS data_layout_transform.cc
  DEPS tensor)

F
Feiyu Chan 已提交
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
if(WITH_GPU OR WITH_ROCM)
  if(MKL_FOUND AND WITH_ONEMKL)
    math_library(fft spectral_op.cu DEPS dynload_cuda dynload_mklrt
                 dense_tensor)
    target_include_directories(fft PRIVATE ${MKL_INCLUDE})
  else()
    math_library(fft spectral_op.cu DEPS dynload_cuda dense_tensor pocketfft)
  endif()
else()
  if(MKL_FOUND AND WITH_ONEMKL)
    mathp_library(fft DEPS dynload_mklrt dense_tensor)
    target_include_directories(fft PRIVATE ${MKL_INCLUDE})
  else()
    math_library(fft DEPS dense_tensor pocketfft)
  endif()
endif()
43 44

if(WITH_MKLDNN)
45 46
  math_library(selected_rows_functor DEPS selected_rows_utils math_function
               blas mixed_vector)
47 48 49 50
else()
  math_library(selected_rows_functor DEPS selected_rows_utils math_function
               blas mixed_vector)
endif()