How to link NumPy to Eigen3, or OpenBLAS, GotoBLAS2, ATLAS?
up vote
3
down vote
favorite
I installed Anaconda3(with Python3.7), and found that the NumPy extension is linked MKL via numpy.__config__.show()
:
mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
blas_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
blas_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
lapack_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
lapack_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
In terms of that I use Ryzen CPU, so I want that my NumPy is linked to Eigen3, or OpenBLAS, GotoBLAS2, ATLAS? Which conda commands can help me get it?
python numpy anaconda
add a comment |
up vote
3
down vote
favorite
I installed Anaconda3(with Python3.7), and found that the NumPy extension is linked MKL via numpy.__config__.show()
:
mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
blas_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
blas_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
lapack_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
lapack_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
In terms of that I use Ryzen CPU, so I want that my NumPy is linked to Eigen3, or OpenBLAS, GotoBLAS2, ATLAS? Which conda commands can help me get it?
python numpy anaconda
What aboutconda install -c conda-forge openblas
? Perhaps, followingconda install -c conda-forge numpy
?
– Severin Pappadeux
Nov 17 at 17:04
And conda-forge.org/docs/blas.html
– Severin Pappadeux
Nov 17 at 17:06
@SeverinPappadeux Thanks for your comment, I have tried this way, however it cannot change NumPy itself. NumPy is still linked to MKL.
– Luke
Nov 17 at 17:45
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I installed Anaconda3(with Python3.7), and found that the NumPy extension is linked MKL via numpy.__config__.show()
:
mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
blas_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
blas_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
lapack_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
lapack_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
In terms of that I use Ryzen CPU, so I want that my NumPy is linked to Eigen3, or OpenBLAS, GotoBLAS2, ATLAS? Which conda commands can help me get it?
python numpy anaconda
I installed Anaconda3(with Python3.7), and found that the NumPy extension is linked MKL via numpy.__config__.show()
:
mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
blas_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
blas_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
lapack_mkl_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
lapack_opt_info:
libraries = ['mkl_rt']
library_dirs = ['C:/Anaconda\Library\lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\include', 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\mkl\lib', 'C:/Anaconda\Library\include']
In terms of that I use Ryzen CPU, so I want that my NumPy is linked to Eigen3, or OpenBLAS, GotoBLAS2, ATLAS? Which conda commands can help me get it?
python numpy anaconda
python numpy anaconda
edited Nov 17 at 17:43
asked Nov 17 at 14:39
Luke
162
162
What aboutconda install -c conda-forge openblas
? Perhaps, followingconda install -c conda-forge numpy
?
– Severin Pappadeux
Nov 17 at 17:04
And conda-forge.org/docs/blas.html
– Severin Pappadeux
Nov 17 at 17:06
@SeverinPappadeux Thanks for your comment, I have tried this way, however it cannot change NumPy itself. NumPy is still linked to MKL.
– Luke
Nov 17 at 17:45
add a comment |
What aboutconda install -c conda-forge openblas
? Perhaps, followingconda install -c conda-forge numpy
?
– Severin Pappadeux
Nov 17 at 17:04
And conda-forge.org/docs/blas.html
– Severin Pappadeux
Nov 17 at 17:06
@SeverinPappadeux Thanks for your comment, I have tried this way, however it cannot change NumPy itself. NumPy is still linked to MKL.
– Luke
Nov 17 at 17:45
What about
conda install -c conda-forge openblas
? Perhaps, following conda install -c conda-forge numpy
?– Severin Pappadeux
Nov 17 at 17:04
What about
conda install -c conda-forge openblas
? Perhaps, following conda install -c conda-forge numpy
?– Severin Pappadeux
Nov 17 at 17:04
And conda-forge.org/docs/blas.html
– Severin Pappadeux
Nov 17 at 17:06
And conda-forge.org/docs/blas.html
– Severin Pappadeux
Nov 17 at 17:06
@SeverinPappadeux Thanks for your comment, I have tried this way, however it cannot change NumPy itself. NumPy is still linked to MKL.
– Luke
Nov 17 at 17:45
@SeverinPappadeux Thanks for your comment, I have tried this way, however it cannot change NumPy itself. NumPy is still linked to MKL.
– Luke
Nov 17 at 17:45
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
First query a list of available numpy builds on the conda-forge channel with:
conda search -c conda-forge numpy
Look in the list for a numpy build that has openblas
in its build version. Then install that version with the conda install
command. For example:
conda install -c conda-forge numpy=1.15.4=py37_blas_openblash442142e_1000
Thanks a lot for your answer. However, it got wrong withSolving environment: failed UnsatisfiableError: The following specifications were found to be in conflict: - keras-preprocessing -> keras[version='>=2.1.6'] -> scipy[version='>=0.14'] -> blas=[build=mkl] - numpy==1.15.4=py36_blas_openblash442142e_1000 Use "conda info <package>" to see the dependencies for each package.
– Luke
Nov 17 at 18:17
After I posted this question, I have installed TensorFlow extension, and it changed my Python version from 3.7 to 3.6 automatically....
– Luke
Nov 17 at 18:21
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
First query a list of available numpy builds on the conda-forge channel with:
conda search -c conda-forge numpy
Look in the list for a numpy build that has openblas
in its build version. Then install that version with the conda install
command. For example:
conda install -c conda-forge numpy=1.15.4=py37_blas_openblash442142e_1000
Thanks a lot for your answer. However, it got wrong withSolving environment: failed UnsatisfiableError: The following specifications were found to be in conflict: - keras-preprocessing -> keras[version='>=2.1.6'] -> scipy[version='>=0.14'] -> blas=[build=mkl] - numpy==1.15.4=py36_blas_openblash442142e_1000 Use "conda info <package>" to see the dependencies for each package.
– Luke
Nov 17 at 18:17
After I posted this question, I have installed TensorFlow extension, and it changed my Python version from 3.7 to 3.6 automatically....
– Luke
Nov 17 at 18:21
add a comment |
up vote
0
down vote
First query a list of available numpy builds on the conda-forge channel with:
conda search -c conda-forge numpy
Look in the list for a numpy build that has openblas
in its build version. Then install that version with the conda install
command. For example:
conda install -c conda-forge numpy=1.15.4=py37_blas_openblash442142e_1000
Thanks a lot for your answer. However, it got wrong withSolving environment: failed UnsatisfiableError: The following specifications were found to be in conflict: - keras-preprocessing -> keras[version='>=2.1.6'] -> scipy[version='>=0.14'] -> blas=[build=mkl] - numpy==1.15.4=py36_blas_openblash442142e_1000 Use "conda info <package>" to see the dependencies for each package.
– Luke
Nov 17 at 18:17
After I posted this question, I have installed TensorFlow extension, and it changed my Python version from 3.7 to 3.6 automatically....
– Luke
Nov 17 at 18:21
add a comment |
up vote
0
down vote
up vote
0
down vote
First query a list of available numpy builds on the conda-forge channel with:
conda search -c conda-forge numpy
Look in the list for a numpy build that has openblas
in its build version. Then install that version with the conda install
command. For example:
conda install -c conda-forge numpy=1.15.4=py37_blas_openblash442142e_1000
First query a list of available numpy builds on the conda-forge channel with:
conda search -c conda-forge numpy
Look in the list for a numpy build that has openblas
in its build version. Then install that version with the conda install
command. For example:
conda install -c conda-forge numpy=1.15.4=py37_blas_openblash442142e_1000
answered Nov 17 at 18:07
Xukrao
1,6161522
1,6161522
Thanks a lot for your answer. However, it got wrong withSolving environment: failed UnsatisfiableError: The following specifications were found to be in conflict: - keras-preprocessing -> keras[version='>=2.1.6'] -> scipy[version='>=0.14'] -> blas=[build=mkl] - numpy==1.15.4=py36_blas_openblash442142e_1000 Use "conda info <package>" to see the dependencies for each package.
– Luke
Nov 17 at 18:17
After I posted this question, I have installed TensorFlow extension, and it changed my Python version from 3.7 to 3.6 automatically....
– Luke
Nov 17 at 18:21
add a comment |
Thanks a lot for your answer. However, it got wrong withSolving environment: failed UnsatisfiableError: The following specifications were found to be in conflict: - keras-preprocessing -> keras[version='>=2.1.6'] -> scipy[version='>=0.14'] -> blas=[build=mkl] - numpy==1.15.4=py36_blas_openblash442142e_1000 Use "conda info <package>" to see the dependencies for each package.
– Luke
Nov 17 at 18:17
After I posted this question, I have installed TensorFlow extension, and it changed my Python version from 3.7 to 3.6 automatically....
– Luke
Nov 17 at 18:21
Thanks a lot for your answer. However, it got wrong with
Solving environment: failed UnsatisfiableError: The following specifications were found to be in conflict: - keras-preprocessing -> keras[version='>=2.1.6'] -> scipy[version='>=0.14'] -> blas=[build=mkl] - numpy==1.15.4=py36_blas_openblash442142e_1000 Use "conda info <package>" to see the dependencies for each package.
– Luke
Nov 17 at 18:17
Thanks a lot for your answer. However, it got wrong with
Solving environment: failed UnsatisfiableError: The following specifications were found to be in conflict: - keras-preprocessing -> keras[version='>=2.1.6'] -> scipy[version='>=0.14'] -> blas=[build=mkl] - numpy==1.15.4=py36_blas_openblash442142e_1000 Use "conda info <package>" to see the dependencies for each package.
– Luke
Nov 17 at 18:17
After I posted this question, I have installed TensorFlow extension, and it changed my Python version from 3.7 to 3.6 automatically....
– Luke
Nov 17 at 18:21
After I posted this question, I have installed TensorFlow extension, and it changed my Python version from 3.7 to 3.6 automatically....
– Luke
Nov 17 at 18:21
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53352242%2fhow-to-link-numpy-to-eigen3-or-openblas-gotoblas2-atlas%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What about
conda install -c conda-forge openblas
? Perhaps, followingconda install -c conda-forge numpy
?– Severin Pappadeux
Nov 17 at 17:04
And conda-forge.org/docs/blas.html
– Severin Pappadeux
Nov 17 at 17:06
@SeverinPappadeux Thanks for your comment, I have tried this way, however it cannot change NumPy itself. NumPy is still linked to MKL.
– Luke
Nov 17 at 17:45