Skip to content

Instantly share code, notes, and snippets.

@treo
Created May 22, 2016 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treo/95730ee3ba11f911bfe187ef534bbda8 to your computer and use it in GitHub Desktop.
Save treo/95730ee3ba11f911bfe187ef534bbda8 to your computer and use it in GitHub Desktop.
Building a current Intel OpenMP Runtime for Ubuntu

Current Ubuntu releases ship with a quite old version of the Intel OpenMP runtime. But getting a newer one is pretty simple:

  1. Enable Source Repositories for APT: Make sure you have the following in either a file in /etc/apt/sources.list.d or in your /etc/apt/souces.list

deb-src http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse

deb-src http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://archive.canonical.com/ubuntu/ trusty partner

2. Install Build dependencies: `apt-get build-dep libiomp5`
3. Download the `.dsc`, `.orig.tar.xz` and `.debian.tar.xz` from http://packages.ubuntu.com/de/source/yakkety/openmprtl and put them all in the same empty folder
4. Unpack the files using `dpkg-source -x openmprtl_3.7.0-3.dsc`
5. Change into the `openmprtl-3.7.0` directory
6. Build the package using: `dpkg-buildpackage -rfakeroot -uc -b`
7. Change back into the parent directory and install your newly built packages: `sudo dpkg -i libiomp5_3.7.0-3_amd64.deb libomp5_3.7.0-3_amd64.deb`

You now have a newer runtime installed :) You can use it with `LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libomp.so.5`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment