Displaying 1 result from an estimated 1 matches for "83904c95".
2017 Dec 30
2
Issues with omp simd
hello,
i am trying to optimize omp simd loop as follows
int main(int argc, char **argv)
{
const int size = 1000000;
float a[size], b[size],c[size];
#pragma omp simd
for (int i=0; i<size; ++i)
{
c[i]= a[i] + b[i];
}
return 0;
}
i run it using the following command;
g++ -O0 --std=c++14 -fopenmp-simd lab.cpp -Iinclude -S -o lab.s