Questa è una vecchia versione del documento!
Xeon PHI HOWTO (for SPM1314 course)
Access
The machine with the Xeon PHI cards may be accessed using the IP address
131.114.137.225
and the credentials distributed during the lessons to the attendind students.
The credentials give access to a local account onto a Sandy Bridge multicore hosting the 2 PHI PCIe boards.
In order to access the PHI, users should use an
ssh mic0
or
ssh mic1
command from the Sandy Bridge machine shell prompt.
Compiling
In order to produce executable programs for the PHI
- the icc compiler must be used to compile the source code on the Sandy Bridge host, and
- the -mmic flag should be specified
As an example, to compile the prog.cpp source code for the PHI we should use a command such as
icc -mmic prog.cpp -o prog
Running
To run a program on the Xeon PHI:
- copy the program exceutable to the PHI home
scp prog mic0:
(You can use either mic0 or mic1 on this machine)
- login to the PHI OS:
ssh mic0
(You should use the same micXX you used to copy)
- run the code:
./prog
and you'll see the results (cout writes) on the terminal
- go back to the compiler shell
exit