CMakeLists.txt 903 字节
Newer Older
1 2 3 4 5 6
cc_test(
  test_mkldnn_op_inplace
  SRCS test_mkldnn_op_inplace.cc
  DEPS op_registry
       elementwise_add_op
       activation_op
7
       phi
8 9 10
       scope
       device_context
       enforce
11 12
       executor
       generated_static_op)
13 14 15 16 17 18 19

set(TEST_MKLDNN_CACHING_DEPS
    op_registry
    elementwise_mul_op
    elementwise_add_op
    activation_op
    conv_op
20
    phi
21 22
    scope
    device_context
23 24 25
    enforce
    generated_static_op)

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
if(WITH_GPU OR WITH_ROCM)
  set(TEST_MKLDNN_CACHING_DEPS ${TEST_MKLDNN_CACHING_DEPS} depthwise_conv)
endif()
cc_test(
  test_mkldnn_caching
  SRCS test_mkldnn_caching.cc
  DEPS ${TEST_MKLDNN_CACHING_DEPS})

cc_test_old(
  test_mkldnn_op_nhwc
  SRCS
  test_mkldnn_op_nhwc.cc
  DEPS
  op_registry
  pool_op
  shape_op
  crop_op
  activation_op
  generated_op
45
  generated_static_op
46
  phi
47 48 49 50 51 52
  transpose_op
  fused_transpose_op
  scope
  device_context
  enforce
  executor)