Skip to content

Commit

Permalink
fix avx
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Nov 14, 2024
1 parent d314a14 commit a321287
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/layer/x86/gemm_int8.h
Original file line number Diff line number Diff line change
Expand Up @@ -3837,7 +3837,10 @@ static void pack_A_tile_fp32_to_int8(const Mat& A, Mat& AT, int i, int max_ii, i
}
}
#if !__AVX2__
pp = pp1;
if (max_ii >= 8)
{
pp = pp1;
}
#endif
#endif // __AVX__
for (; ii + 3 < max_ii; ii += 4)
Expand Down Expand Up @@ -7138,7 +7141,10 @@ static void transpose_pack_A_tile_fp32_to_int8(const Mat& A, Mat& AT, int i, int
}
}
#if !__AVX2__
pp = pp1;
if (max_ii >= 8)
{
pp = pp1;
}
#endif
#endif // __AVX__
for (; ii + 3 < max_ii; ii += 4)
Expand Down Expand Up @@ -15357,7 +15363,10 @@ static void unpack_output_tile_int32_to_fp32(const Mat& topT, const Mat& C, Mat&
}
}
#if !__AVX2__
pp = pp1;
if (max_ii >= 8)
{
pp = pp1;
}
#endif
#endif // __AVX__
for (; ii + 3 < max_ii; ii += 4)
Expand Down

0 comments on commit a321287

Please sign in to comment.