Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

OpenMP reduction with SSE __m128 type

$
0
0

Hi,

I'm new with icpc and openmp and i'm currently facing a problem i can't solve by myself.

The problem seems there's no + operator overloaded for SSE type, i'm getting this compilation error

error: reduction variable is incompatible with reduction operator

for the following lines

static __m128 mvs = _mm_setzero_ps();

#pragma omp for reduction(+:mvs)
for(int line = 0; line < height / 4; line++)
{
        //code
}

It does compile with gcc though and with icpc when I use scalar type (like int) instead of __m128.

Am i missing something (compilation option, include) ?

Thank you

 

 

 

 

 


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>