diff -ruN mkl-dnn-0.20-rc/src/cpu/cpu_engine.cpp mkl-dnn-0.20-rc-patch/src/cpu/cpu_engine.cpp --- mkl-dnn-0.20-rc/src/cpu/cpu_engine.cpp 2019-06-08 08:44:00.000000000 +0900 +++ mkl-dnn-0.20-rc-patch/src/cpu/cpu_engine.cpp 2019-06-10 13:58:13.665616263 +0900 @@ -77,6 +77,51 @@ using namespace mkldnn::impl::status; +template struct jit_uni_gru_cell_postgemm_part1_fwd; +template struct jit_uni_gru_cell_postgemm_part1_fwd; +template struct jit_uni_gru_cell_postgemm_part1_fwd; + +template struct jit_uni_gru_cell_postgemm_part2_fwd; +template struct jit_uni_gru_cell_postgemm_part2_fwd; +template struct jit_uni_gru_cell_postgemm_part2_fwd; + +template struct jit_uni_gru_lbr_cell_postgemm_fwd; +template struct jit_uni_gru_lbr_cell_postgemm_fwd; +template struct jit_uni_gru_lbr_cell_postgemm_fwd; + +template struct jit_uni_lstm_cell_postgemm_fwd; +template struct jit_uni_lstm_cell_postgemm_fwd; +template struct jit_uni_lstm_cell_postgemm_fwd; + +template struct jit_uni_lstm_cell_postgemm_fwd; +template struct jit_uni_lstm_cell_postgemm_fwd; +template struct jit_uni_lstm_cell_postgemm_fwd; + +template struct jit_uni_rnn_cell_postgemm_fwd; +template struct jit_uni_rnn_cell_postgemm_fwd; +template struct jit_uni_rnn_cell_postgemm_fwd; + +template struct jit_uni_rnn_cell_postgemm_fwd; +template struct jit_uni_rnn_cell_postgemm_fwd; +template struct jit_uni_rnn_cell_postgemm_fwd; + +template struct jit_uni_dw_conv_fwd_kernel; +template struct jit_uni_dw_conv_fwd_kernel; +template struct jit_uni_dw_conv_fwd_kernel; +template struct jit_uni_dw_conv_fwd_kernel; + +template struct jit_uni_dw_conv_bwd_data_kernel; +template struct jit_uni_dw_conv_bwd_data_kernel; +template struct jit_uni_dw_conv_bwd_data_kernel; +template struct jit_uni_dw_conv_bwd_data_kernel; + +template struct jit_uni_dw_conv_bwd_weights_kernel; +template struct jit_uni_dw_conv_bwd_weights_kernel; +template struct jit_uni_dw_conv_bwd_weights_kernel; +template struct jit_uni_dw_conv_bwd_weights_kernel; + status_t cpu_engine_t::memory_primitive_desc_create(memory_pd_t **pd, const memory_desc_t *desc) { return safe_ptr_assign(*pd, diff -ruN mkl-dnn-0.20-rc/src/cpu/jit_uni_dw_conv_kernel_utils.hpp mkl-dnn-0.20-rc-patch/src/cpu/jit_uni_dw_conv_kernel_utils.hpp --- mkl-dnn-0.20-rc/src/cpu/jit_uni_dw_conv_kernel_utils.hpp 2019-06-08 08:44:00.000000000 +0900 +++ mkl-dnn-0.20-rc-patch/src/cpu/jit_uni_dw_conv_kernel_utils.hpp 2019-06-10 13:58:10.834617161 +0900 @@ -206,11 +206,6 @@ scratchpad.book(key_conv_padded_bias, sizeof(float) * jcp.oc); } -template struct jit_uni_dw_conv_fwd_kernel; -template struct jit_uni_dw_conv_fwd_kernel; -template struct jit_uni_dw_conv_fwd_kernel; -template struct jit_uni_dw_conv_fwd_kernel; - template struct jit_uni_dw_conv_bwd_data_kernel { @@ -350,11 +345,6 @@ UNUSED(jcp); } -template struct jit_uni_dw_conv_bwd_data_kernel; -template struct jit_uni_dw_conv_bwd_data_kernel; -template struct jit_uni_dw_conv_bwd_data_kernel; -template struct jit_uni_dw_conv_bwd_data_kernel; - template struct jit_uni_dw_conv_bwd_weights_kernel { @@ -534,12 +524,6 @@ jcp.nthr = jcp.nthr_g * jcp.nthr_mb; } -template struct jit_uni_dw_conv_bwd_weights_kernel; -template struct jit_uni_dw_conv_bwd_weights_kernel; -template struct jit_uni_dw_conv_bwd_weights_kernel; -template struct jit_uni_dw_conv_bwd_weights_kernel; } } } diff -ruN mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_gru_cell_postgemm_1.hpp mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_gru_cell_postgemm_1.hpp --- mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_gru_cell_postgemm_1.hpp 2019-06-08 08:44:00.000000000 +0900 +++ mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_gru_cell_postgemm_1.hpp 2019-06-10 13:56:18.668652757 +0900 @@ -172,10 +172,6 @@ }; -template struct jit_uni_gru_cell_postgemm_part1_fwd; -template struct jit_uni_gru_cell_postgemm_part1_fwd; -template struct jit_uni_gru_cell_postgemm_part1_fwd; - } } } diff -ruN mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_gru_cell_postgemm_2.hpp mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_gru_cell_postgemm_2.hpp --- mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_gru_cell_postgemm_2.hpp 2019-06-08 08:44:00.000000000 +0900 +++ mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_gru_cell_postgemm_2.hpp 2019-06-10 13:56:18.668652757 +0900 @@ -172,10 +172,6 @@ }; -template struct jit_uni_gru_cell_postgemm_part2_fwd; -template struct jit_uni_gru_cell_postgemm_part2_fwd; -template struct jit_uni_gru_cell_postgemm_part2_fwd; - } } } diff -ruN mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_gru_lbr_cell_postgemm.hpp mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_gru_lbr_cell_postgemm.hpp --- mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_gru_lbr_cell_postgemm.hpp 2019-06-08 08:44:00.000000000 +0900 +++ mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_gru_lbr_cell_postgemm.hpp 2019-06-10 13:56:18.668652757 +0900 @@ -221,10 +221,6 @@ }; -template struct jit_uni_gru_lbr_cell_postgemm_fwd; -template struct jit_uni_gru_lbr_cell_postgemm_fwd; -template struct jit_uni_gru_lbr_cell_postgemm_fwd; - } } } diff -ruN mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_lstm_cell_postgemm.hpp mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_lstm_cell_postgemm.hpp --- mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_lstm_cell_postgemm.hpp 2019-06-08 08:44:00.000000000 +0900 +++ mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_lstm_cell_postgemm.hpp 2019-06-10 13:56:18.669652757 +0900 @@ -372,14 +372,6 @@ }; -template struct jit_uni_lstm_cell_postgemm_fwd; -template struct jit_uni_lstm_cell_postgemm_fwd; -template struct jit_uni_lstm_cell_postgemm_fwd; - -template struct jit_uni_lstm_cell_postgemm_fwd; -template struct jit_uni_lstm_cell_postgemm_fwd; -template struct jit_uni_lstm_cell_postgemm_fwd; - } } } diff -ruN mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_rnn_cell_postgemm.hpp mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_rnn_cell_postgemm.hpp --- mkl-dnn-0.20-rc/src/cpu/rnn/jit_uni_rnn_cell_postgemm.hpp 2019-06-08 08:44:00.000000000 +0900 +++ mkl-dnn-0.20-rc-patch/src/cpu/rnn/jit_uni_rnn_cell_postgemm.hpp 2019-06-10 13:56:18.669652757 +0900 @@ -280,14 +280,6 @@ }; -template struct jit_uni_rnn_cell_postgemm_fwd; -template struct jit_uni_rnn_cell_postgemm_fwd; -template struct jit_uni_rnn_cell_postgemm_fwd; - -template struct jit_uni_rnn_cell_postgemm_fwd; -template struct jit_uni_rnn_cell_postgemm_fwd; -template struct jit_uni_rnn_cell_postgemm_fwd; - } } }