- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to compile the following simple program
----
#include
#include "immintrin.h"
int main(int argc,char *argv[])
{
double a[] = {1.2, 2.3, 3.3, 4.4};
__m256d x1;
x1=__mm256_load_pd(a);
return 0;
}
----
and I get the following error message. How to fix it ?
Regards
Przem
$ icc -xAVX2 -O2 test.c
test0.c(7): error: a value of type "int" cannot be assigned to an entity of type "__m256d"
x1=__mm256_load_pd(a);
^
compilation aborted for test0.c (code 2)
-----
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem solved. It should be _mm256_load_pd(a) instead of __mm256_load_pd(a)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page