I'm fairly new to optimization and I'm having difficulty in getting AVX instructions to work with STL. Here is an example:
std::vector<__m256> v1;
__m256 avx_test_data = _mm256_set_ps(1,2,3,4,5,6,7,8);
v1.push_back(avx_test_data);
This gives a segmentation fault. A similar thing happens when I use an unordered map as well.
Am I doing something obviously incorrect? If not then is there is some way to get them to work together? Thanks in advance.