diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-18 15:00:48 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-10-20 11:50:37 +0200 |
commit | 277b73ab6fecd5c8f76b8eb9cc2fc1e036aee0db (patch) | |
tree | b9962f497ce1689bbd6c7fac739d3eadb21d52af /doc/languages-frameworks | |
parent | eee82aee375bf964e41dc7b66e35977a85e287a7 (diff) | |
download | nixlib-277b73ab6fecd5c8f76b8eb9cc2fc1e036aee0db.tar nixlib-277b73ab6fecd5c8f76b8eb9cc2fc1e036aee0db.tar.gz nixlib-277b73ab6fecd5c8f76b8eb9cc2fc1e036aee0db.tar.bz2 nixlib-277b73ab6fecd5c8f76b8eb9cc2fc1e036aee0db.tar.lz nixlib-277b73ab6fecd5c8f76b8eb9cc2fc1e036aee0db.tar.xz nixlib-277b73ab6fecd5c8f76b8eb9cc2fc1e036aee0db.tar.zst nixlib-277b73ab6fecd5c8f76b8eb9cc2fc1e036aee0db.zip |
pythonPackages.{numpy,scipy,numexpr}: support MKL as BLAS
This adds support building with MKL.
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r-- | doc/languages-frameworks/python.section.md | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index b52b79c62d91..fe02344a72cd 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -1079,8 +1079,7 @@ To modify only a Python package set instead of a whole Python derivation, use th Use the following overlay template: ```nix -self: super: -{ +self: super: { python = super.python.override { packageOverrides = python-self: python-super: { zerobin = python-super.zerobin.overrideAttrs (oldAttrs: { @@ -1095,6 +1094,25 @@ self: super: } ``` +### How to use Intel's MKL with numpy and scipy? + +A `site.cfg` is created that configures BLAS based on the `blas` parameter +of the `numpy` derivation. By passing in `mkl`, `numpy` and packages depending +on `numpy` will be built with `mkl`. + +The following is an overlay that configures `numpy` to use `mkl`: +```nix +self: super: { + python36 = super.python36.override { + packageOverrides = python-self: python-super: { + numpy = python-super.numpy.override { + blas = super.pkgs.mkl; + }; + }; + }; +} +``` + ## Contributing ### Contributing guidelines |