= 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. == Installing the Intel Manycore Platform Software Stack SDK == 1. Download the [[https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss#downloads|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. This includes the modified GCC 4.7 compiler for the K1OM architecture. == Setting up the Compilation Environment == We are using short paths and therefore we need to put the bin directories of the MPSS SDK into our path. This can be done by sourcing the environment setup script bundled with the MPSS SDK. {{{ $ source /opt/mpss/3.4.1/environment-setup-k1om-mpss-linux }}} However, this may modify some of your flags. To avoid this one can extract the $PATH settings and add it to your shell configuration e.g. add the line to your .bashrc: {{{ export PATH=/opt/mpss/X.Y.Z/sysroots/x86_64-mpsssdk-linux/usr/bin:/opt/mpss/X.Y.Z/sysroots/x86_64-mpsssdk-linux/usr/bin/k1om-mpss-linux:$PATH }}} After sourcing you should be able to {{{ $ k1om-mpss-linux-gcc -v }}} == Other Pre-Requisites == Size of the multiboot image is causing problems with the TFTP-boot. We load the Xeon Phi multiboot image on demand over an NFS. The Xeon Phi host machine must use one of the supported network cards and have access to an NFS hosted share.