Skip to content

Commit c7bbc32

Browse files
cabirdmexiaoxial
authored andcommitted
fix compilation bug when asm is avx2
1 parent 8785821 commit c7bbc32

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Library/Raisr.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,9 +1145,12 @@ RNLERRORTYPE processSegment(VideoDataType *srcY, VideoDataType *final_outY, Blen
11451145
if (loopItr == 8) {
11461146
GetHashValue_AVX256_32f_8Elements(GTWG, passIdx, hashValue); // 8 elements
11471147
}
1148+
#ifdef __AVX512F__
11481149
else if (loopItr == 16) {
11491150
GetHashValue_AVX512_32f_16Elements(GTWG, passIdx, hashValue); // 16 elements
1150-
} else {
1151+
}
1152+
#endif
1153+
else {
11511154
std::cout << "unsupported loopItr value: " << loopItr << std::endl;
11521155
return RNLErrorBadParameter;
11531156
}

0 commit comments

Comments
 (0)