To install torch with OpenBLAS on Windows10

I installed torch with pip, and I found that it didn’t detect the correct BLAS.
I just wonder if there is any way to easily install a binary file use OpenBLAS instead MKL, or I should build it myself?

Besides, if I use OpenBLAS as the libary, could the installed torch with MKL work well?

# Name                    Version                   Build  Channel
blas                      2.16                   openblas    conda-forge
libblas                   3.8.0               16_openblas    conda-forge
libcblas                  3.8.0               16_openblas    conda-forge
libopenblas               0.3.9                hcfe7411_0    conda-forge
In [4]:"\n")
['PyTorch built with:',
 '  - C++ Version: 199711',
 '  - MSVC 191627039',
 '  - Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191125 for Intel(R) 64 architecture applications',
 '  - Intel(R) MKL-DNN v0.21.1 (Git Hash 7d2fd500bc78936d1d648ca713b901012f470dbc)',
 '  - OpenMP 200203',
 '  - CPU capability usage: AVX2',

It will use MKL instead and doesn’t rely on any external packages.

You’ll need to compile it yourself.

1 Like