我无法像以前在 AVX 中所做的那样使用 AVX2 内在指令加载或存储。没有错误,只有警告,并且它不会在运行时执行加载/存储指令。其他 AVX2 指令正常工作,但我无法从内存中加载。
如下。
AVX:
float t[MAX][MAX];
row0 = _mm256_load_ps(&t[i][j]);
_mm256_store_ps(&t[j][i], row0);
AVX2:
const int32_t a[MAX][MAX]; // I tried int, long, global and local and many other things...
a0_i =_mm256_stream_load_si256 (&a[0][0]);
mm256_store_si256(&a[0][0], a0_i);
那么,问题/区别是什么?有什么想法或解决方案吗?