{"id":16572216,"url":"https://github.com/eddelbuettel/mkl4deb","last_synced_at":"2025-05-08T21:18:01.990Z","repository":{"id":142505128,"uuid":"129613158","full_name":"eddelbuettel/mkl4deb","owner":"eddelbuettel","description":"Adding the Intel MKL to a Debian / Ubuntu system via one simple script","archived":false,"fork":false,"pushed_at":"2023-04-12T03:46:29.000Z","size":9,"stargazers_count":216,"open_issues_count":0,"forks_count":34,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-08T21:17:53.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddelbuettel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-15T13:32:31.000Z","updated_at":"2025-04-19T01:25:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"2851ad1c-0bf2-46f7-824d-6fe5476e2590","html_url":"https://github.com/eddelbuettel/mkl4deb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddelbuettel%2Fmkl4deb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddelbuettel%2Fmkl4deb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddelbuettel%2Fmkl4deb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddelbuettel%2Fmkl4deb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddelbuettel","download_url":"https://codeload.github.com/eddelbuettel/mkl4deb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149622,"owners_count":21861740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T21:26:48.086Z","updated_at":"2025-05-08T21:18:01.962Z","avatar_url":"https://github.com/eddelbuettel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Please note**: This is an _inactive_ repository preserved as a starting point in case someone want to revisit or study the script. Please see the [appendix below](https://github.com/eddelbuettel/mkl4deb#appendix) -- you likely want the MKL now included in your distro instead of following this by now rather old script.  \n  \n  \n\n## MKL for .deb-based systems: An easy recipe\n\nThis post describes how to _easily_ install the\n[Intel Math Kernel Library (MKL)](https://software.intel.com/en-us/mkl?cid=sem43700010399172562\u0026intel_term=%2Bintel%20%2Bmkl\u0026gclid=Cj0KCQjwzcbWBRDmARIsAM6uChXqzD4ACUJqCiu3zRJKA9rkC31XOhm9lIkEYiwBITMR_8hJbIAExF8aAn_LEALw_wcB\u0026gclsrc=aw.ds) on a Debian or Ubuntu system.\nVery good basic documentation is provided by Intel [at their\nsite](https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo). The discussion here\nis more narrow as it focusses just on the Math Kernel Library (MKL).\n\nThe `tl;dr` version:  Use [this script](script.sh) which contains the commands described here.  \n\n### First Step: Set up apt\n\nWe download the GnuPG key first and add it to the keyring:\n\n```sh\ncd /tmp\nwget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB\napt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB\n```\n\nTo add all Intel products we would run first command, but here we focus just on the MKL.  The website above\nlists other suboptions (TBB, DAAL, MPI, ...)\n\n```sh\n## all products:\n#wget https://apt.repos.intel.com/setup/intelproducts.list -O /etc/apt/sources.list.d/intelproducts.list\n\n## just MKL\nsh -c 'echo deb https://apt.repos.intel.com/mkl all main \u003e /etc/apt/sources.list.d/intel-mkl.list'\n```\n\nWe then update our lists of what is available in the repositories.\n\n```sh\napt-get update\n```\n\n\u003cdetails\u003e\nAs a personal aside, I still use the awesome `wajig` frontend to `dpkg`, `apt` and more by\n[Graham Williams](https://togaware.com/about/graham-williams/) (of [rattle](https://cran.r-project.org/package=rattle) fame).\nAmong other tricks, `wajig` keeps state and therefore \"knows\" what packages are new.  Here, we see _a lot_:\n\n```sh\nedd@rob:/tmp$ wajig update\nHit:1 http://us.archive.ubuntu.com/ubuntu artful InRelease\nIgn:2 http://dl.google.com/linux/chrome/deb stable InRelease\nHit:3 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease\nHit:4 https://download.docker.com/linux/ubuntu artful InRelease\nHit:5 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease\nIgn:6 https://cloud.r-project.org/bin/linux/ubuntu artful/ InRelease\nHit:7 https://cloud.r-project.org/bin/linux/ubuntu artful/ Release\nHit:8 http://security.ubuntu.com/ubuntu artful-security InRelease\nHit:9 https://apt.repos.intel.com/mkl all InRelease\nHit:10 http://dl.google.com/linux/chrome/deb stable Release\nHit:12 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease\nReading package lists... Done\nThis is 367 up on the previous count with 367 new packages.\nedd@rob:/tmp$ wajig new\nPackage                  Description\n========================-===================================================\nintel-mkl-gnu-f-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-gnu-f-174   Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-cluster-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-gnu-c-196      Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-cluster-c-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-core-f-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-cluster-rt-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-gnu-239        Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-openmp-l-ps-libs-32bit-jp-174 OpenMP for Intel(R) Compilers 17.0 Update 2 for Linux*\nintel-mkl-doc-ps-2018    Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-pgi-rt-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-ss-tbb-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-mic-cluster-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-openmp-l-ps-libs-jp-196 OpenMP for Intel(R) Compilers 17.0 Update 4 for Linux*\nintel-mkl-ps-mic-rt-174  Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-openmp-l-ps-libs-jp-239 OpenMP for Intel(R) Compilers 17.0 Update 5 for Linux*\nintel-mkl-common-f-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-f95-mic-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-common-64bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-f95-common-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-psxe-common-2018.2-046 Intel(R) Parallel Studio XE 2018 Update 2 for Linux*\nintel-mkl-ps-mic-cluster-rt-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-cluster-64bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-f95-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-cluster-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-gnu-rt-196     Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-tbb-libs-2018.0-128 Intel(R) Threading Building Blocks 2018 for Linux*\nintel-comp-l-all-vars-196 Intel(R) Compilers 17.0 Update 4 for Linux*\nintel-mkl-common-ps-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-pgi-f-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-f95-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-gnu-rt-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-openmp-18.0.0-128  OpenMP for Intel(R) Compilers 18.0 for Linux*\nintel-mkl-common-c-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-core-ps-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-f95-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-f95-mic-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-common-c-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-cluster-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-doc-f-jp    Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-common-f-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-32bit-2018.1-038 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-common-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-openmp-l-all-196   OpenMP for Intel(R) Compilers 17.0 Update 4 for Linux*\nintel-mkl-pgi-rt-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-common-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-comp-nomcu-vars-18.0.0-128 Intel(R) Compilers 18.0 for Linux*\nintel-mkl-common-c-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-common-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-f-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-common-c-64bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-32bit-174  Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-common-ps-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-cluster-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-gnu-f-rt-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-cluster-f-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-common-c-174   Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-ss-tbb-196  Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-tbb-libs-32bit-2018.0-128 Intel(R) Threading Building Blocks 2018 for Linux*\nintel-mkl-gnu-c-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-tbb-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-tbb-libs-2018.1-163 Intel(R) Threading Building Blocks 2018 Update 1 for Linux*\nintel-mkl-ps-common-f-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-ss-tbb-rt-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-196            Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-pgi-196     Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-psxe-2018.2-046 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-doc-c          Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-f95-196     Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-cluster-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-tbb-libs-174       Intel(R) Threading Building Blocks 2017 Update 4 for Linux*\nintel-comp-l-all-vars-174 Intel(R) Compilers 17.0 Update 2 for Linux*\nintel-mkl-gnu-f-rt-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-gnu-rt-174     Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-openmp-l-ps-libs-32bit-jp-196 OpenMP for Intel(R) Compilers 17.0 Update 4 for Linux*\nintel-mkl-gnu-f-rt-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-openmp-18.0.1-163  OpenMP for Intel(R) Compilers 18.0 Update 1 for Linux*\nintel-mkl-ps-cluster-64bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-core-c-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-pgi-rt-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-2018.2-046     Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-gnu-rt-239     Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-gnu-rt-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-comp-l-all-vars-18.0.0-128 Intel(R) Compilers 18.0 for Linux*\nintel-mkl-ps-common-jp-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-openmp-32bit-18.0.0-128 OpenMP for Intel(R) Compilers 18.0 for Linux*\nintel-mkl-f95-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-core-ps-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-gnu-f-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-tbb-mic-rt-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-core-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-psxe-2018.1-038 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-gnu-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-mic-174     Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-64bit-2017.4-061 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-f95-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-mic-rt-jp-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-196        Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-psxe-common-doc-2018 Intel(R) Parallel Studio XE 2018 Update 2 for Linux*\nintel-mkl-ps-tbb-mic-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-core-c-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-core-c-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-cluster-rt-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-rt-jp-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-core-c-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-ss-tbb-rt-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-core-f-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-psxe-050       Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-64bit-2018.2-046 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-tbb-rt-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-ss-tbb-rt-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-doc-f       Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-gnu-c-174      Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-f95-common-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-rt-jp-196   Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-gnu-f-rt-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-pgi-f-196   Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-tbb-libs-32bit-2018.1-163 Intel(R) Threading Building Blocks 2018 Update 1 for Linux*\nintel-mkl-common-c-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-gnu-rt-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-64bit-2018.0-033 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-mic-c-239   Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-ss-tbb-239  Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-common-64bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-openmp-32bit-18.0.2-199 OpenMP for Intel(R) Compilers 18.0 Update 2 for Linux*\nintel-mkl-ps-rt-jp-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-gnu-f-rt-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-common-jp-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-tbb-mic-rt-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-psxe-common-061    Intel(R) Parallel Studio XE 2017 Update 5 for Linux*\nintel-mkl-gnu-rt-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-common-f-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-mic-cluster-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-common-f-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-tbb-libs-196       Intel(R) Threading Building Blocks 2017 Update 6 for Linux*\nintel-mkl-cluster-rt-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-cluster-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-pgi-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-ss-tbb-rt-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-openmp-l-all-174   OpenMP for Intel(R) Compilers 17.0 Update 2 for Linux*\nintel-mkl-tbb-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-pgi-c-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-64bit-2018.1-038 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-f95-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-gnu-c-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-239            Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-pgi-rt-174  Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-cluster-f-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-f95-common-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-common-f-64bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-cluster-common-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-cluster-f-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-common-jp-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-openmp-l-all-32bit-196 OpenMP for Intel(R) Compilers 17.0 Update 4 for Linux*\nintel-mkl-tbb-rt-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-psxe-common-056    Intel(R) Parallel Studio XE 2017 Update 4 for Linux*\nintel-mkl-32bit-2018.0-033 Intel(R) Math Kernel Library 2018 for Linux*\nintel-comp-l-all-vars-18.0.2-199 Intel(R) Compilers 18.0 Update 2 for Linux*\nintel-mkl-common-ps-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-core-rt-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-pgi-c-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-common-c-ps-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-gnu-f-rt-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-f95-common-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-openmp-l-all-239   OpenMP for Intel(R) Compilers 17.0 Update 5 for Linux*\nintel-mkl-174            Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-f-rt-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-tbb-libs-239       Intel(R) Threading Building Blocks 2017 Update 8 for Linux*\nintel-mkl-common-f-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-common-f-64bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-cluster-common-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-comp-nomcu-vars-18.0.2-199 Intel(R) Compilers 18.0 Update 2 for Linux*\nintel-mkl-32bit-196      Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-gnu-f-196   Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-core-ps-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-common-196     Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-rt-174         Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-core-rt-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-common-f-64bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-cluster-rt-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-cluster-c-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-gnu-rt-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-doc         Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-rt-32bit-239   Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-openmp-l-ps-libs-174 OpenMP for Intel(R) Compilers 17.0 Update 2 for Linux*\nintel-mkl-ps-cluster-rt-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-common-64bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-c-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-pgi-c-196   Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-core-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-gnu-f-239   Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-pgi-f-239   Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-gnu-f-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-core-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-common-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-pgi-c-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-rt-jp-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-common-c-64bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-gnu-f-rt-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-pgi-c-174   Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-core-f-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-32bit-239      Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-rt-jp-174   Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-mic-239     Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-tbb-libs-2018.2-199 Intel(R) Threading Building Blocks 2018 Update 2 for Linux*\nintel-mkl-f95-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-openmp-l-ps-libs-239 OpenMP for Intel(R) Compilers 17.0 Update 5 for Linux*\nintel-mkl-rt-239         Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-core-c-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-openmp-l-all-32bit-174 OpenMP for Intel(R) Compilers 17.0 Update 2 for Linux*\nintel-mkl-ps-pgi-239     Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-gnu-f-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-gnu-f-rt-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-tbb-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-rt-32bit-196   Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-mic-196     Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-gnu-f-rt-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-32bit-239  Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-common-174  Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-common-c-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-gnu-f-rt-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-f95-common-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-mic-f-239   Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-common-196  Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-core-ps-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-cluster-64bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-64bit-2017.3-056 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-ss-tbb-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-32bit-2017.4-061 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-tbb-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-64bit-2017.2-050 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-mic-rt-196  Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-cluster-c-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-gnu-c-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-gnu-f-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-gnu-c-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-gnu-rt-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-core-rt-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-common-239     Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-2017.3-056     Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-tbb-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-pgi-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-pgi-f-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-common-c-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-tbb-rt-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-openmp-l-all-32bit-239 OpenMP for Intel(R) Compilers 17.0 Update 5 for Linux*\nintel-mkl-rt-196         Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-cluster-f-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-2017.4-061     Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-common-c-239   Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-gnu-c-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-psxe-common-doc    Intel(R) Parallel Studio XE 2017 Update 5 for Linux*\nintel-tbb-libs-32bit-2018.2-199 Intel(R) Threading Building Blocks 2018 Update 2 for Linux*\nintel-mkl-2017.2-050     Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-tbb-mic-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-2018.1-038     Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-gnu-c-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-core-ps-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-tbb-mic-rt-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-tbb-rt-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-cluster-f-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-psxe-061       Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-ss-tbb-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-mic-rt-jp-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-common-c-ps-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-doc-jp      Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-gnu-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-core-rt-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-common-f-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-c-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-cluster-rt-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-mic-rt-239  Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-openmp-l-ps-libs-196 OpenMP for Intel(R) Compilers 17.0 Update 4 for Linux*\nintel-mkl-common-c-196   Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-gnu-32bit-196  Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-openmp-18.0.2-199  OpenMP for Intel(R) Compilers 18.0 Update 2 for Linux*\nintel-mkl-ps-common-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-gnu-rt-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-openmp-32bit-18.0.1-163 OpenMP for Intel(R) Compilers 18.0 Update 1 for Linux*\nintel-mkl-ps-pgi-174     Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-comp-l-all-vars-239 Intel(R) Compilers 17.0 Update 5 for Linux*\nintel-mkl-ps-mic-c-196   Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-core-f-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-ss-tbb-174  Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-f-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-mic-c-174   Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-mic-rt-jp-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-psxe-common-2018.0-033 Intel(R) Parallel Studio XE 2018 for Linux*\nintel-mkl-ps-f95-mic-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-common-c-64bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-psxe-056       Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-gnu-rt-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-core-c-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-common-c-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-comp-l-all-vars-18.0.1-163 Intel(R) Compilers 18.0 Update 1 for Linux*\nintel-mkl-psxe-2018.0-033 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-f95-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-openmp-l-ps-libs-jp-174 OpenMP for Intel(R) Compilers 17.0 Update 2 for Linux*\nintel-mkl-tbb-rt-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-mic-f-174   Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-2018.0-033     Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-ps-f95-239     Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-doc            Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-common-c-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-common-f-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-gnu-f-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-cluster-c-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-common-c-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-tbb-mic-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-core-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-sta-common-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-core-32bit-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-core-f-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-32bit-2018.2-046 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-mic-f-196   Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-gnu-c-239      Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-doc-c-jp    Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-gnu-rt-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-doc-2018       Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-pgi-c-239   Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-core-rt-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-common-239  Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-f95-common-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-gnu-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-cluster-c-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-mic-cluster-rt-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-cluster-f-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-pgi-f-174   Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-common-c-ps-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-cluster-common-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-32bit-2017.3-056 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-core-rt-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-gnu-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-eula-174       Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-ss-tbb-rt-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-pgi-rt-196  Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-gnu-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-psxe-common-2018.1-038 Intel(R) Parallel Studio XE 2018 Update 1 for Linux*\nintel-mkl-pgi-f-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-core-ps-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-common-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-rt-jp-239   Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-ps-pgi-rt-239  Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-32bit-2017.2-050 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-core-f-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-pgi-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-tbb-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-comp-nomcu-vars-18.0.1-163 Intel(R) Compilers 18.0 Update 1 for Linux*\nintel-mkl-common-f-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-tbb-rt-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-common-174     Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-gnu-c-32bit-2018.2-199 Intel(R) Math Kernel Library 2018 Update 2 for Linux*\nintel-mkl-ps-mic-cluster-rt-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-f95-174     Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-core-2018.1-163 Intel(R) Math Kernel Library 2018 Update 1 for Linux*\nintel-mkl-ps-gnu-f-32bit-196 Intel(R) Math Kernel Library 2017 Update 3 for Linux*\nintel-mkl-ps-f95-32bit-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-ps-mic-cluster-174 Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-psxe-common-050    Intel(R) Parallel Studio XE 2017 Update 2 for Linux*\nintel-mkl-cluster-c-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-rt-32bit-174   Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-mkl-32bit-174      Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nintel-openmp-l-ps-libs-32bit-jp-239 OpenMP for Intel(R) Compilers 17.0 Update 5 for Linux*\nintel-mkl-ps-ss-tbb-rt-32bit-239 Intel(R) Math Kernel Library 2017 Update 4 for Linux*\nintel-mkl-gnu-f-rt-32bit-2018.0-128 Intel(R) Math Kernel Library 2018 for Linux*\nintel-mkl-gnu-174        Intel(R) Math Kernel Library 2017 Update 2 for Linux*\nedd@rob:/tmp$\n```\n\u003c/details\u003e\n\n### Install MKL\n\nNow that we have everything set up, installing the MKL is as simple as:\n\n```sh\napt-get install intel-mkl-64bit-2018.2-046\n```\n\nThis picks the 64-bit only variant of the (currently) most recent builds.      \n\nThere is a slight cost:  a 500mb download of 39 packages which install to 1.9 gb!\nOther than that it is easy: one command!   Compare that with the days of yore when\nwe fetched shar archives of NETLIB...\n\n\n### Integrate MKL\n\nOne the key advantages of a Debian or Ubuntu system is the overall integration providing a raft of\nuseful features.  One of these is the seamless and automatic selection of alternatives.  By\ndeclaring a particular set of BLAS and LAPACK libraries the default, _all_ application linked\nagainst this interface will use the default.  Better still, users can switch between these as well.\n\nSo here we can make the MKL default for BLAS and LAPACK:\n\n```sh\n## update alternatives\nupdate-alternatives --install /usr/lib/x86_64-linux-gnu/libblas.so     \\\n                    libblas.so-x86_64-linux-gnu      /opt/intel/mkl/lib/intel64/libmkl_rt.so 50\nupdate-alternatives --install /usr/lib/x86_64-linux-gnu/libblas.so.3   \\\n                    libblas.so.3-x86_64-linux-gnu    /opt/intel/mkl/lib/intel64/libmkl_rt.so 50\nupdate-alternatives --install /usr/lib/x86_64-linux-gnu/liblapack.so   \\\n                    liblapack.so-x86_64-linux-gnu    /opt/intel/mkl/lib/intel64/libmkl_rt.so 50\nupdate-alternatives --install /usr/lib/x86_64-linux-gnu/liblapack.so.3 \\\n                    liblapack.so.3-x86_64-linux-gnu  /opt/intel/mkl/lib/intel64/libmkl_rt.so 50\n```\n\nNext, we have to tell the dyanmic linker about two directories use by the MKL, and have it update\nits cache:\n\n```sh\necho \"/opt/intel/lib/intel64\"     \u003e  /etc/ld.so.conf.d/mkl.conf\necho \"/opt/intel/mkl/lib/intel64\" \u003e\u003e /etc/ld.so.conf.d/mkl.conf\nldconfig\n```\n\n### Set An Environment Variable\n\nAs discussed in [issue ticket #2](https://github.com/eddelbuettel/mkl4deb/issues/2),\nmixing Intel OpenMP and GNU OpenMP run-times in one application can lead to issues.\n\nSince most of the open-source performance libraries use GNU OpenMP it is safer to make the MKL\nlibrary also use GNU OpenMP as well by setting `MKL_THREADING_LAYER=GNU` in either\n`/etc/environment` or your local per-user settings.\n\nHere we use the file in `/etc`:\n\n```sh\necho \"MKL_THREADING_LAYER=GNU\" \u003e\u003e /etc/environment\n```\n\nThanks to Evarist Fomenko from Intel's Novosibirsk office for help with this point.\n\n\n### Use the MKL\n\nNow the MKL is 'known' and the default. If we start R, its `sessionInfo()` shows the MKL:\n\n```sh\nMatrix products: default                            \nBLAS/LAPACK: /opt/intel/compilers_and_libraries_2018.2.199/linux/mkl/lib/intel64_lin/libmkl_rt.so\n```\n\n### Benchmarks\n\n\n```r\n# Vanilla r-base Rocker with default reference BLAS\n\u003e n \u003c- 1e3 ; X \u003c- matrix(rnorm(n*n),n,n);  system.time(svd(X))\n   user  system elapsed\n  2.239   0.004   2.266\n\u003e\n\n# OpenBlas added to r-base Rocker\n\u003e  n \u003c- 1e3 ; X \u003c- matrix(rnorm(n*n),n,n);  system.time(svd(X))\n   user  system elapsed\n  1.367   2.297   0.353\n\u003e\n\n# MKL added to r-base Rocker\n\u003e n \u003c- 1e3 ; X \u003c- matrix(rnorm(n*n),n,n)  \n\u003e system.time(svd(X))                               \n   user  system elapsed                             \n  1.772   0.056   0.350                             \n\u003e  \n```\n\nSo just R (with reference BLAS) is slow. (Using Docker is done here to have\nclean comparisons while not altering the outer host system; impact of running\nDocker on Linux should be minimal.) Adding OpenBLAS helps quite a bit already\nby offering multi-core processing -- the, and MKL does not yet improve\nmaterially over OpenBLAS.  Now, this of course was not any serious\nbenchmarking---we just ran one SVD. More to do as time permits...\n\n### Removal, if needed\n\nAnother rather nice benefit of the package management is that clean\nremoval is also possible:\n\n```sh\nroot@c9f8062fbd93:/tmp# apt-get autoremove intel-mkl-64bit-2018.2-046\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nThe following packages will be REMOVED:\n  intel-comp-l-all-vars-18.0.2-199 intel-comp-nomcu-vars-18.0.2-199 intel-mkl-64bit-2018.2-046\n  intel-mkl-cluster-2018.2-199 intel-mkl-cluster-c-2018.2-199 intel-mkl-cluster-common-2018.2-199\n  intel-mkl-cluster-f-2018.2-199 intel-mkl-cluster-rt-2018.2-199 intel-mkl-common-2018.2-199\n  intel-mkl-common-c-2018.2-199 intel-mkl-common-c-ps-2018.2-199 intel-mkl-common-f-2018.2-199\n  intel-mkl-common-ps-2018.2-199 intel-mkl-core-2018.2-199 intel-mkl-core-c-2018.2-199\n  intel-mkl-core-f-2018.2-199 intel-mkl-core-ps-2018.2-199 intel-mkl-core-rt-2018.2-199\n  intel-mkl-doc-2018 intel-mkl-doc-ps-2018 intel-mkl-f95-2018.2-199 intel-mkl-f95-common-2018.2-199\n  intel-mkl-gnu-2018.2-199 intel-mkl-gnu-c-2018.2-199 intel-mkl-gnu-f-2018.2-199 intel-mkl-gnu-f-rt-2018.2-199\n  intel-mkl-gnu-rt-2018.2-199 intel-mkl-pgi-2018.2-199 intel-mkl-pgi-c-2018.2-199 intel-mkl-pgi-f-2018.2-199\n  intel-mkl-pgi-rt-2018.2-199 intel-mkl-psxe-2018.2-046 intel-mkl-tbb-2018.2-199 intel-mkl-tbb-rt-2018.2-199\n  intel-openmp-18.0.2-199 intel-psxe-common-2018.2-046 intel-psxe-common-doc-2018 intel-tbb-libs-2018.2-199\n  intel-tbb-libs-32bit-2018.2-199 libisl15\n0 upgraded, 0 newly installed, 40 to remove and 0 not upgraded.\nAfter this operation, 1,904 kB disk space will be freed.\nDo you want to continue? [Y/n] n                    \nAbort.                                              \nroot@c9f8062fbd93:/tmp#  \n```\n\nwhere we said 'no' just to illustrate the option.\n\nAs a second step, you want to also update the _alternatives_ setting via\n\n```sh\nupdate-alternatives --remove libblas.so-x86_64-linux-gnu     \\\n                             /opt/intel/mkl/lib/intel64/libmkl_rt.so\nupdate-alternatives --remove libblas.so.3-x86_64-linux-gnu   \\\n                             /opt/intel/mkl/lib/intel64/libmkl_rt.so\nupdate-alternatives --remove liblapack.so-x86_64-linux-gnu   \\\n                             /opt/intel/mkl/lib/intel64/libmkl_rt.so\nupdate-alternatives --remove liblapack.so.3-x86_64-linux-gnu \\\n                             /opt/intel/mkl/lib/intel64/libmkl_rt.so\n```\n\n\n### Summary\n\nPackage management systems are fabulous.  Kudos to Intel for supporting `apt` (and also `yum` in case you are on an rpm-based system).\nWe can install the MKL with just a few commands (which we regrouped in [this script](script.sh)).   \n\nThe MKL has a serious footprint with an installed size of just under 2gb.  But for those doing extended amounts of numerical analysis,\ninstalling this library may well be worth it.\n\n### Appendix\n\n_2021 Update:_  The post and script were originally written in 2018, and while\nthey have been updated, things do sometimes change. So these days for example Ubuntu\nhas (meta-)package [intel-mkl](https://packages.ubuntu.com/source/focal/intel-mkl)\nstarting from release 20.04 (\"focal\") and never---so there you can just say `sudo apt install intel-mkl`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddelbuettel%2Fmkl4deb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddelbuettel%2Fmkl4deb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddelbuettel%2Fmkl4deb/lists"}