Use mkl-dnn v1.0 or v0.x depending on compilation flag. (#3227)
* Use mkl-dnn v1.0 or v0.x depending on compilation flag. * Change cpu builder files. * Modify cmake files. Use mkldnn-v1.0 for DEX if NGRAPH_USE_MKLDNN_V1 is set to true, otherwise use mkldnn-v0.x. CODEGEN only builds with mkldnn-v1.0. * Implement mkldnn utility functions for mkldnn-v1.0. User mode scratchpad management for mkldnn-v1.0. * Query scratchpad size and allocate a buffer of max scratchpad size. * Do not create mkldnn::memory when query scratchpad size of Reorder. Modify mkldnn utility functions. Fix convolution_forward_init and inner_product_forward_init. Modify CPURuntimeContextCG. * Add user mode scratchpad to CODEGEN. * mkldnn-v1.0 splits LSTM states. Update Rnn/Lstm Op accordingly. * Address PR feedback: use MKLDNN_MAJOR_VERSION. * Modify cpu rnn fusion pass and related unit tests. * Change Rnn/Lstm arg types to Output. * Fix Lstm for CODEGEN. * Set native layout for Slice when input format is blocked. * Do not print scratchpad size. * Change external_mkldnn_v1.cmake. Fix a typo. * Add mkldnn_v1.patch for mkldnn-v1.0. * Address PR feedback. * Define MKLDNN_ERROR_MESSAGE. * Address PR feedback: change to NGRAPH_USE_LEGACY_MKLDNN. * Fix a bug. * Remove unused variable. * Fix compiler warnings. * Fix a bug for CODEGEN. * Move variable only needed for mkldnn-v0.20 inside #if. * Remove unused variables. * No in place Reshape rotation for blocked data layout with mkldnn-v1.0. * Modify mkldnn_v1.patch to force mkldnn to link to libiomp. * Fix style. * Change path for find_library and find_file. * Do not insert ConvertLayout before/after Quantize/DeQuantize for blocked data layout. * Write strides information to visualized graph. * Move variables only needed for mkldnn-v0 under #if. * Move more variables in rnn fusion. * Fix ConvertLayout constant folding for mkldnn-v1.0.
Showing
This diff is collapsed.
cmake/mkldnn_v1.patch
0 → 100644
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment