Scanning dependencies of target sqrt [100%] Building CXX object CMakeFiles/sqrt.dir/sqrt.cpp.o /project/target/sqrt/sqrt.cpp: In function 'void avx_sqrt()': /project/target/sqrt/sqrt.cpp:28:9: error: '__mm256' was not declared in this scope __mm256 v = _mm256_load_si256((__m256i *)&vectorized[0][0]); ^~~~~~~ /project/target/sqrt/sqrt.cpp:30:24: error: expected primary-expression before 'const' _mm256_sqrt_ps(const __m256& v) ^~~~~ CMakeFiles/sqrt.dir/build.make:54: recipe for target 'CMakeFiles/sqrt.dir/sqrt.cpp.o' failed make[2]: *** [CMakeFiles/sqrt.dir/sqrt.cpp.o] Error 1 CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/sqrt.dir/all' failed make[1]: *** [CMakeFiles/sqrt.dir/all] Error 2 Makefile:76: recipe for target 'all' failed make: *** [all] Error 2 i am getting these errors. i am trying to load vectorized array (first 8 floats) into an avx register and pass it to _mm256_sqrt_ps() function and getting this error. Any suggestions to remove these errors?

Muhammad Zeeshan• 1 year agoScanning dependencies of target sqrt

[100%] Building CXX object CMakeFiles/sqrt.dir/sqrt.cpp.o

/project/target/sqrt/sqrt.cpp: In function 'void avx_sqrt()':

/project/target/sqrt/sqrt.cpp:28:9: error: '__mm256' was not declared in this scope

__mm256 v = _mm256_load_si256((__m256i *)&vectorized[0][0]);

^~~~~~~

/project/target/sqrt/sqrt.cpp:30:24: error: expected primary-expression before 'const'

_mm256_sqrt_ps(const __m256& v)

^~~~~

CMakeFiles/sqrt.dir/build.make:54: recipe for target 'CMakeFiles/sqrt.dir/sqrt.cpp.o' failed

make[2]: *** [CMakeFiles/sqrt.dir/sqrt.cpp.o] Error 1

CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/sqrt.dir/all' failed

make[1]: *** [CMakeFiles/sqrt.dir/all] Error 2

Makefile:76: recipe for target 'all' failed

make: *** [all] Error 2

i am getting these errors. i am trying to load vectorized array (first 8 floats) into an avx register and pass it to _mm256_sqrt_ps() function and getting this error. Any suggestions to remove these errors?