Is _mm256_store_ps() function is atomic ? while using alongside openmp
I am trying to create a simple program that uses Intel's AVX technology and perform vector multiplication and addition. Here I am using Open MP alongside this. But it is getting segmentation fault due to the function call _mm256_store_ps(). I have tried with OpenMP atomic features like atomic, critical, etc so that if this function is atomic in nature and multiple cores are attempting to execute at the same time, but it is not working. #include<stdio.h> #include<time.h> #include<stdlib.h> #include<immintrin.h> #include<omp.h> #define N 64 __m256 multiply_and_add_intel(__m256 a, __m256 b, _