Open nwnk opened 3 weeks ago
With DNNL_ENABLE_PRIMITIVE_CPU_ISA=SSE41 and ONEDNN_ENABLE_GEMM_KERNELS_ISA=AVX2:
94% tests passed, 9 tests failed out of 154
Total Test time (real) = 715.86 sec
The following tests FAILED:
18 - test_iface_attr (Failed)
44 - test_softmax (Failed)
77 - test_graph_c_api_compile_usm_cpu (Failed)
108 - test_graph_unit_dnnl_conv_usm_cpu (Failed)
113 - test_graph_unit_dnnl_large_partition_usm_cpu (Failed)
116 - test_graph_unit_dnnl_mqa_decomp_usm_cpu (Failed)
122 - test_graph_unit_dnnl_sdp_decomp_usm_cpu (Failed)
123 - test_graph_unit_dnnl_softmax_usm_cpu (Failed)
151 - test_benchdnn_modeC_softmax_ci_cpu (Failed)
With DNNL_ENABLE_PRIMITIVE_CPU_ISA=AVX2 and ONEDNN_ENABLE_GEMM_KERNELS_ISA=SSE41:
97% tests passed, 4 tests failed out of 154
Total Test time (real) = 868.35 sec
The following tests FAILED:
19 - test_iface_attr_quantization (Failed)
42 - test_rnn_forward (Failed)
51 - test_gemm_f32 (Failed)
54 - test_gemm_u8s8s32 (Failed)
@nwnk Thank you for reporting the issue. I can reproduce most of the test failures locally.
After adding ONEDNN_VERBOSE=all in the environment, the detailed log shows that some problem cases are not supported by SSE41 ISA, e.g. with command line ONEDNN_VERBOSE=all ctest -R test_rnn_forward --rerun-failed --output-on-failure
for test_rnn_forward, it shows in Testing/Temporary/LastTest.log that all the dispatches are skipped and no implementation is available for this test case:
[ RUN ] TestGRU_CPU/gru_forward_test_f32.TestsGRU/0
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,brgemm:,forward_inference,src_layer_f32:a:any:any::f0 src_iter_f32:a:any:any::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:any:any::f0 dst_layer_f32:a:any:any::f0 dst_iter_f32:a:any:any::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,unsupported datatype,src/cpu/rnn/ref_rnn.cpp:347
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,brgemm:,forward_inference,src_layer_f32:a:any:any::f0 src_iter_f32:a:any:any::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:any:any::f0 dst_layer_f32:a:any:any::f0 dst_iter_f32:a:any:any::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,unsupported datatype,src/cpu/rnn/ref_rnn.cpp:83
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,ref,forward_inference,src_layer_f32:a:any:any::f0 src_iter_f32:a:any:any::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:any:any::f0 dst_layer_f32:a:any:any::f0 dst_iter_f32:a:any:any::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,unsupported datatype,src/cpu/rnn/ref_rnn.cpp:347
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,ref,forward_inference,src_layer_f32:a:any:any::f0 src_iter_f32:a:any:any::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:any:any::f0 dst_layer_f32:a:any:any::f0 dst_iter_f32:a:any:any::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,unsupported datatype,src/cpu/rnn/ref_rnn.cpp:83
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,brgemm:undef,forward_inference,src_layer_f32:a:blocked:abc::f0 src_iter_f32:a:blocked:abcd::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:blocked:abcd::f0 dst_layer_f32:a:blocked:abc::f0 dst_iter_f32:a:blocked:abcd::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,unsupported feature for implementation: gru/augru cell in brgemm-based forward inference,src/cpu/rnn/ref_rnn.cpp:375
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,brgemm:undef,forward_inference,src_layer_f32:a:blocked:abc::f0 src_iter_f32:a:blocked:abcd::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:blocked:abcd::f0 dst_layer_f32:a:blocked:abc::f0 dst_iter_f32:a:blocked:abcd::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,failed to create nested primitive rnn,src/cpu/rnn/ref_rnn.cpp:92
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,ref,forward_inference,src_layer_f32:a:any:any::f0 src_iter_f32:a:any:any::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:any:any::f0 dst_layer_f32:a:any:any::f0 dst_iter_f32:a:any:any::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,unsupported datatype,src/cpu/rnn/ref_rnn.cpp:347
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,ref,forward_inference,src_layer_f32:a:any:any::f0 src_iter_f32:a:any:any::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:any:any::f0 dst_layer_f32:a:any:any::f0 dst_iter_f32:a:any:any::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,unsupported datatype,src/cpu/rnn/ref_rnn.cpp:83
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,ref,forward_inference,src_layer_f32:a:any:any::f0 src_iter_f32:a:any:any::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:any:any::f0 dst_layer_f32:a:any:any::f0 dst_iter_f32:a:any:any::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,unsupported datatype,src/cpu/rnn/ref_rnn.cpp:347
onednn_verbose,primitive,create:dispatch,rnn,cpu,rnn,ref,forward_inference,src_layer_f32:a:any:any::f0 src_iter_f32:a:any:any::f0 wei_layer_f32:a:any:any::f0 wei_iter_f32:a:any:any::f0 bias_f32:a:any:any::f0 dst_layer_f32:a:any:any::f0 dst_iter_f32:a:any:any::f0,,alg:vanilla_gru direction:unidirectional_left2right activation:undef flags:,l1t1mb1sic5slc10dhc5dic5,unsupported datatype,src/cpu/rnn/ref_rnn.cpp:83
unknown file: Failure
C++ exception with description "could not create a primitive descriptor for a GRU forward propagation primitive" thrown in SetUp().
I will report this issue internally to have better coordination of all the test cases for the ISAs.
@nwnk, thank you for the report. Looks like we have an issue with tests and/or dispatcher when DNNL_ENABLE_PRIMITIVE_CPU_ISA
option is enabled.
The library is functional on platforms with Intel SSE 4.1 instruction set support. This can be validated either by running tests on system with Intel SSE4.1, running tests with environment variable ONEDNN_MAX_CPU_ISA=SSE41
, or using tools like Intel SDE.
Setting the bug aside, could you please elaborate on what you are using DNNL_ENABLE_PRIMITIVE_CPU_ISA
option for?
Setting the bug aside, could you please elaborate on what you are using DNNL_ENABLE_PRIMITIVE_CPU_ISA option for?
Experimentation, mostly. Trying to get a feel for how much larger each ISA makes the resulting binary, and validating that the library works as documented on the minimal feature set that it claims to support.
Thanks for the details. We're looking into options to address the test issue.
I'm trying to build oneDNN CPU-only (OMP backed) and with only the minimal SSE41 kernels, on Fedora 40. The result does not pass ctest:
Specifically this is with both
DNNL_ENABLE_PRIMITIVE_CPU_ISA
andONEDNN_ENABLE_GEMM_KERNELS_ISA
set to SSE41. If I set them both to AVX2 all tests pass. I have not tested AVX512 or AMX yet. I will try setting just one to AVX2 (both ways) and see if that helps narrow it down.Relevant environment and version info: