10.1.017 vectorization confusion...

tim18
Total Points:
66,417
Status Points:
66,417
Black Belt
October 14, 2008 7:18 PM PDT
Rate
 
#1

Among your Windows options, you have set /Oa "treat argument pointers as not aliased," and various options requesting the compiler to generate both vector and non-vector code paths.  In your icc options, you include -restrict, but that doesn't have any effect without the restrict qualifiers in the argument list.  As you have specified the 32-bit compiler,  SSE2 vectorization wasn't yet set as default in the version you quote (use e.g. -xW).  You have a bunch of contradictory alias options; why not simply use -ansi-alias (assert that source code doesn't violate C and C++ standards on aliasing)?

void test (float* restrict in, float* restrict out, int len)



Intel Software Network Forums Statistics

8290 users have contributed to 31236 threads and 99111 posts to date.
In the past 24 hours, we have 7 new thread(s) 20 new posts(s), and 30 new user(s).

In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing...  Escalated as

Please welcome our newest member zq.x