2 ms·
Doesn’t numpy have runtime SIMD dispatching and whatnot based on CPU flags? E.g. https://github.com/numpy/numpy/blob/main/numpy/_core/src/common/npy_cpu_dispat
by stingraycharles 2y ago
Doesn’t numpy have runtime SIMD dispatching and whatnot based on CPU flags?
E.g. https://github.com/numpy/numpy/blob/main/numpy/_core/src/common/npy_cpu_dispatch.h https://github.com/numpy/numpy/blob/main/numpy/_core/src/com...
- KeplerBoy 2y agonp.matmul just uses whatever blas library your NumPy distribution was configured for/shipped with. Could be MKL (i believe the conda version comes with it) but it could also be an ancient version of OpenBLAS you already had installed. So yeah, being faster than np.matmul probably just means your NumPy is not installed optimally.