This directory contains some sample code demonstrating how to execute a program on a Xeon Phi in the Latedays cluster. Files: Makefile: Contains the magic needed to compile the code. You must have the Intel C compiler icc in your PATH. This can be done by adding the following lines to ~/.bashrc: export PATH="/opt/intel/bin:${PATH}"; source /opt/intel/bin/compilervars.sh intel64 cycletimer.{c,h}: Simple timing code sum.c: An OpenMP example. Compiles to either sum-cpu or sum-phi. Run ./sum-cpu -h to see the options runphi.sh: A shell script that can be submitted for batch execution. Run qsub -q runphi.sh