Skip to content

Commit

Permalink
Rename mkldnn onednn in test files (#63274)
Browse files Browse the repository at this point in the history
  • Loading branch information
co63oc authored Apr 25, 2024
1 parent 0bc130a commit 86a3e5f
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/cpp/fluid/mkldnn/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
get_property(paddle_lib GLOBAL PROPERTY PADDLE_LIB_NAME)
paddle_test(test_mkldnn_op_inplace SRCS test_mkldnn_op_inplace.cc)
paddle_test(test_mkldnn_cpu_quantize_pass SRCS test_mkldnn_cpu_quantize_pass.cc)
paddle_test(test_onednn_op_inplace SRCS test_onednn_op_inplace.cc)
paddle_test(test_onednn_cpu_quantize_pass SRCS test_onednn_cpu_quantize_pass.cc)

paddle_test(test_conv_mkldnn_nhwc SRCS test_conv_mkldnn_nhwc.cc)
paddle_test(test_conv_onednn_nhwc SRCS test_conv_onednn_nhwc.cc)

set(TEST_MKLDNN_CACHING_DEPS
op_registry
Expand All @@ -19,21 +19,21 @@ set(TEST_MKLDNN_CACHING_DEPS
if(WITH_GPU OR WITH_ROCM)
set(TEST_MKLDNN_CACHING_DEPS ${TEST_MKLDNN_CACHING_DEPS} depthwise_conv)
endif()
paddle_test(test_mkldnn_caching SRCS test_mkldnn_caching.cc)
paddle_test(test_onednn_caching SRCS test_onednn_caching.cc)

if(WITH_TESTING)
paddle_test(test_mkldnn_op_nhwc SRCS test_mkldnn_op_nhwc.cc)
paddle_test(test_onednn_op_nhwc SRCS test_onednn_op_nhwc.cc)
endif()

paddle_test(test_mkldnn_pool_adaptive_op SRCS test_mkldnn_pool_adaptive_op.cc)
paddle_test(test_onednn_pool_adaptive_op SRCS test_onednn_pool_adaptive_op.cc)

paddle_test(test_mkldnn_squeeze SRCS test_mkldnn_squeeze.cc)
paddle_test(test_onednn_squeeze SRCS test_onednn_squeeze.cc)

paddle_test(test_mkldnn_conv2d_transpose_bias SRCS
test_mkldnn_conv2d_transpose_bias.cc)
paddle_test(test_onednn_conv2d_transpose_bias SRCS
test_onednn_conv2d_transpose_bias.cc)

if(WITH_ONNXRUNTIME AND WIN32)
# Copy onnxruntime for some c++ test in Windows, since the test will
# be build only in CI, so suppose the generator in Windows is Ninja.
copy_onnx(test_mkldnn_op_nhwc)
copy_onnx(test_onednn_op_nhwc)
endif()

0 comments on commit 86a3e5f

Please sign in to comment.