Skip to content

Commit

Permalink
cpu: x64: gemm: correct status propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraujom authored and tprimak committed Aug 19, 2021
1 parent fd6d14c commit 45e3039
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cpu/x64/gemm/f32/jit_avx512_common_gemm_f32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,7 @@ xbyak_gemm_t *get_xbyak_gemm(
// Kernel table [isTransA][isTransB][hasBias][beta (0, 1, other)]
static std::unique_ptr<xbyak_gemm_t> kernel_table[2][2][2][3];
static std::once_flag initialized;
dnnl_status_t st = dnnl_success;
static dnnl_status_t st = dnnl_success;
std::call_once(initialized, [&] {
for (bool isTransA : {false, true})
for (bool isTransB : {false, true})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ dnnl_status_t sgemm_smalln_tn(const dim_t m, const dim_t n, const dim_t k,
static std::unique_ptr<xbyak_gemm_smalln_tn_t> kernels[4][3][3];
static std::once_flag initialized;

dnnl_status_t st = dnnl_success;
static dnnl_status_t st = dnnl_success;
std::call_once(initialized, [&] {
for (dim_t N : {1, 2, 3, 4}) {
for (float al : {0.0f, 1.0f, 2.0f}) {
Expand Down
2 changes: 1 addition & 1 deletion src/cpu/x64/gemm/f32/jit_avx_gemm_f32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ xbyak_gemm_t *get_xbyak_gemm(
// Kernel table [isTransA][isTransB][hasBias][beta (0, 1, other)]
static std::unique_ptr<xbyak_gemm_t> kernel_table[2][2][2][3];
static std::once_flag initialized;
dnnl_status_t st = dnnl_success;
static dnnl_status_t st = dnnl_success;
std::call_once(initialized, [&] {
for (bool isTransA : {false, true})
for (bool isTransB : {false, true})
Expand Down
2 changes: 1 addition & 1 deletion src/cpu/x64/gemm/gemm_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ void gemm_info_t<a_t, b_t, c_t>::jit_init(void) {
const int um = this->um;

static std::once_flag initialized;
dnnl_status_t st = dnnl_success;
static dnnl_status_t st = dnnl_success;
std::call_once(initialized, [&, um] {
const bool b_is_s8 = data_traits<b_t>::data_type == data_type::s8;
constexpr bool is_int8 = utils::one_of(
Expand Down

0 comments on commit 45e3039

Please sign in to comment.