CMakeLists.txt 2.2 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
add_subdirectory(jit)
6

7
math_library(deformable_conv_functor DEPS dense_tensor)
F
From00 已提交
8
math_library(concat_and_split_functor DEPS dense_tensor)
9
math_library(fc_functor DEPS blas jit_kernel_helper)
10
math_library(gpc DEPS phi_enforce)
F
Feiyu Chan 已提交
11 12
math_library(gru_compute DEPS activation_functions math_function)
math_library(lstm_compute DEPS activation_functions)
13
math_library(math_function DEPS blas dense_tensor)
14
math_library(matrix_reduce DEPS dense_tensor)
15
math_library(matrix_inverse DEPS dense_tensor eigen3 blas)
F
From00 已提交
16 17 18
math_library(pooling DEPS dense_tensor)
math_library(segment_pooling)
math_library(sequence2batch)
19
math_library(matrix_solve DEPS dense_tensor eigen3 blas math_function)
20
math_library(cross_entropy)
21
math_library(im2col)
22
math_library(vol2col)
23
math_library(softmax DEPS math_function)
24 25
math_library(maxouting)
math_library(matrix_bit_code)
26
math_library(sequence_scale)
27
math_library(sequence_padding DEPS lod_utils)
28
math_library(sequence_pooling DEPS math_function jit_kernel_helper)
F
Feiyu Chan 已提交
29

30 31 32
cc_library(
  phi_data_layout_transform
  SRCS data_layout_transform.cc
33
  DEPS tensor blas)
34

F
Feiyu Chan 已提交
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
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()
51 52

if(WITH_MKLDNN)
53 54
  math_library(selected_rows_functor DEPS selected_rows_utils math_function
               blas mixed_vector)
55 56 57 58
else()
  math_library(selected_rows_functor DEPS selected_rows_utils math_function
               blas mixed_vector)
endif()
59 60 61 62 63 64 65 66 67 68 69 70

if(WITH_ROCM)
  hip_library(
    gather_scatter_functor
    SRCS gather_scatter_functor.cc gather_scatter_functor.cu
    DEPS tensor)
else()
  cc_library(
    gather_scatter_functor
    SRCS gather_scatter_functor.cc gather_scatter_functor.cu
    DEPS tensor)
endif()