File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
paddle/fluid/inference/tests/api
python/paddle/fluid/tests/unittests Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ function(inference_analysis_api_test_with_fake_data target install_dir filename
27
27
endfunction ()
28
28
29
29
# RNN1
30
- if (NOT APPLE )
30
+ if (NOT APPLE AND WITH_MKLML )
31
31
set (RNN1_INSTALL_DIR "${INFERENCE_DEMO_INSTALL_DIR} /rnn1" )
32
32
download_model_and_data (${RNN1_INSTALL_DIR} "rnn1%2Fmodel.tar.gz" "rnn1%2Fdata.txt.tar.gz" )
33
33
inference_analysis_api_test (test_analyzer_rnn1 ${RNN1_INSTALL_DIR} analyzer_rnn1_tester.cc )
34
34
else ()
35
- # TODO: fix this test on MACOS, the reason is that
36
- # fusion_seqexpand_concat_fc_op is not supported on MACOS
37
- message (WARNING "These tests has been disabled in OSX before being fixed: \n test_analyzer_rnn1" )
35
+ # TODO: fix this test on MACOS and OPENBLAS , the reason is that
36
+ # fusion_seqexpand_concat_fc_op is not supported on MACOS and OPENBLAS
37
+ message (WARNING "These tests has been disabled in OSX or WITH_MKL=OFF before being fixed: \n test_analyzer_rnn1" )
38
38
endif ()
39
39
40
40
# RNN2
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ if(APPLE)
45
45
list (REMOVE_ITEM TEST_OPS test_dist_se_resnext )
46
46
list (REMOVE_ITEM TEST_OPS test_fuse_elewise_add_act_pass )
47
47
endif ()
48
+ if (NOT WITH_MKLML )
49
+ # this op is not support on openblas
50
+ list (REMOVE_ITEM TEST_OPS test_fusion_seqexpand_concat_fc_op )
51
+ endif ()
48
52
49
53
function (py_test_modules TARGET_NAME )
50
54
if (WITH_TESTING )
You can’t perform that action at this time.
0 commit comments