Skip to content

Commit

Permalink
Fix linux build error(#4265) (#4294)
Browse files Browse the repository at this point in the history
Co-authored-by: wangyu <786794414@qq.com>
  • Loading branch information
bestpower and wangyu authored Oct 21, 2022
1 parent 8edc03c commit a116e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/x86/layernorm_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static NCNN_FORCEINLINE void fast_mean(float* ptr, float* mean, int elempack, in
#if __SSE2__
#if __AVX__
#if __AVX512F__
sum += _mm512_reduce_add_ps(_sum_512);
sum += _mm512_comp_reduce_add_ps(_sum_512);
#endif // __AVX512F__
sum += _mm256_reduce_add_ps(_sum_256);
#endif // __AVX__
Expand Down Expand Up @@ -230,7 +230,7 @@ static NCNN_FORCEINLINE void fast_var(float* ptr, float* var, const float* mean,
#if __SSE2__
#if __AVX__
#if __AVX512F__
sq_sum += _mm512_reduce_add_ps(_sq_sum_512);
sq_sum += _mm512_comp_reduce_add_ps(_sq_sum_512);
#endif // __AVX512F__
sq_sum += _mm256_reduce_add_ps(_sq_sum_256);
#endif // __AVX__
Expand Down

0 comments on commit a116e00

Please sign in to comment.