Skip to content

Commit

Permalink
fix windows compile on avx512
Browse files Browse the repository at this point in the history
  • Loading branch information
MNNTeam authored and xiaying committed Jun 29, 2022
1 parent 6cf30db commit 4679f84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/backend/cpu/x86_x64/avx512/Gemm10_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
template <int InputTile>
void _AVX512_MNNPackedMatMulO32FullLoadKernel(float* C, const float* A, const float* B, const size_t* parameter, const float* postParameters, const float* bias) {

#ifdef _MSC_VER
#define _mm_prefetch(ptr, hint) _mm_prefetch((const char*)(ptr), hint)
#endif // _MSC_VER

#define REDUCE_MUL_ADD(ick) \
zmm0 = _mm512_loadu_ps(filterICPtr + (ick * bStride + 0 * AVX512_PACK_C_UNIT)); \
zmm1 = _mm512_loadu_ps(filterICPtr + (ick * bStride + 1 * AVX512_PACK_C_UNIT)); \
Expand Down

0 comments on commit 4679f84

Please sign in to comment.