Skip to content

Commit

Permalink
src: cpu: rnn: force nocopy gemm only if isa >= avx
Browse files Browse the repository at this point in the history
  • Loading branch information
mgouicem committed Aug 12, 2019
1 parent 960f3f3 commit 2fbc8ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpu/rnn/rnn_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ void rnn_utils::init_conf(rnn_conf_t &rnn, const rnn_desc_t &rd,
rnn.merge_gemm_iter = !(rnn.is_fwd || is_gru);
bool is_inference = !rnn.is_training;

rnn.use_jit_gemm = !mayiuse(avx512_mic)
rnn.use_jit_gemm = !mayiuse(avx512_mic) && mayiuse(avx)
&& ((is_inference && (rnn.n_layer > 1 || rnn.mb < 100))
|| (rnn.is_training && rnn.dic < 500));
|| (rnn.is_training && rnn.dic < 500));

/* Decide to copy bias */
rnn.copy_bias = rnn.dt_conf != all_f32;
Expand Down

0 comments on commit 2fbc8ba

Please sign in to comment.