CMakeLists.txt 2.1 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(im2col)
21
math_library(vol2col)
22
math_library(softmax DEPS math_function)
23 24
math_library(maxouting)
math_library(matrix_bit_code)
25
math_library(sequence_scale)
26
math_library(sequence_padding DEPS lod_utils)
F
Feiyu Chan 已提交
27

28 29 30
cc_library(
  phi_data_layout_transform
  SRCS data_layout_transform.cc
31
  DEPS tensor blas)
32

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

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

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()