Xeon Phi: Environment Setup

This page describes how to setup the build host (Ubuntu) for the Xeon Phi. The following guide will install the software stack into your /opt directory.

  1. Download the Intel MPSS archive and extract it.

  2. Install the required packets to convert the *.rpm into *.deb
     $ sudo apt-get install alien dpkg-dev debhelper build-essential
  3. Convert the SDK .rpm file into a .deb file
     $ sudo sudo alien mpss-sdk-k1om-X.Y.Z.x86_64.rpm 
  4. Install the SDK
     $ sudo dpkg -i mpss-sdk-k1om_3.4.1-2_amd64.deb

At this stage you will find the toolchain in /opt/mpss/X.Y.Z. All that's left is to add the location of the compiler to your PATH. This can be done by

$ source /opt/mpss/3.4.1/environment-setup-k1om-mpss-linux

or modifying your .bashrc by adding the paths stated in the file above.

export PATH=/opt/mpss/3.4.1/sysroots/x86_64-mpsssdk-linux/usr/bin:/opt/mpss/3.4.1/sysroots/x86_64-mpsssdk-linux/usr/bin/k1om-mpss-linux:$PATH

After sourcing you should be able to

$ k1om-mpss-linux-gcc -v