Hi,
I encounter a problem with pgc++ using intrinsics under Linux Ubuntu 17.10. I am using pgc++ 17.4. When I include
xmmintrin.h, I have no problem, but if I include immintrin.h the pgc++ compiler generates many errors :
"/opt/pgi/linux86-64/17.4/include/immintrin.h", line 47: error: expected an
identifier
ATTRIBUTE "C"
^
"/opt/pgi/linux86-64/17.4/include/immintrin.h", line 47: error: inline
specifier allowed on function declarations only
ATTRIBUTE "C"
^
....
Is there a way to fix this problem ?
If I make a correction changing “ATTRIBUTE” to “extern” which is the case in the GNU files, I get the following errors:
/opt/pgi/linux86-64/17.4/include/immintrin.h", line 1434: error: no suitable
user-defined conversion from "__m256d" to "__m256" exists
return (__m256)__A;
....
Best regards
JM