Open kbarbary opened 7 years ago
constant
value
np.require
$ gcc -march=native -dM -E - < /dev/null | egrep "SSE|AVX" | sort
__AVX__
_mm256_loadu_pd
_mm256_mul_pd
_mm256_hadd_pd
Note that AVX also requires OS support in addition to the cpu, see https://github.com/matthew-brett/libx86cpu/blob/master/os_restores_ymm.c
constant
extend (different fromvalue
for 2-d)np.require
for C continguousness? No.$ gcc -march=native -dM -E - < /dev/null | egrep "SSE|AVX" | sort
shows that__AVX__
will be defined by gcc._mm256_loadu_pd
load 4 doubles_mm256_mul_pd
vector multiply_mm256_hadd_pd
add adjacent pairs