magistraleinformaticanetworking:spm:spm1314phi
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedente | ||
magistraleinformaticanetworking:spm:spm1314phi [17/12/2013 alle 13:34 (11 anni fa)] – [Access] Marco Danelutto | magistraleinformaticanetworking:spm:spm1314phi [17/12/2013 alle 13:57 (11 anni fa)] (versione attuale) – [Running from remote] Marco Danelutto | ||
---|---|---|---|
Linea 2: | Linea 2: | ||
===== Access ===== | ===== Access ===== | ||
- | The machine with the Xeon PHI cards may be accessed using the IP address < | + | The machine with the Xeon PHI cards may be accessed using the IP address < |
The credentials give access to a local account onto a Sandy Bridge multicore hosting the 2 PHI PCIe boards. | The credentials give access to a local account onto a Sandy Bridge multicore hosting the 2 PHI PCIe boards. | ||
Linea 8: | Linea 8: | ||
In order to access the PHI, users should use an < | In order to access the PHI, users should use an < | ||
+ | ===== Set up environment ===== | ||
+ | Before using the Intel tools you should setup the shell enviornment in such a way you can find all the right tools. You should use a < | ||
===== Compiling ====== | ===== Compiling ====== | ||
In order to produce executable programs for the PHI | 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 **icc** compiler **must** be used to compile the source code on the Sandy Bridge host, and | ||
- | - the **-mic** flag should be specified | + | - 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 < | ||
+ | |||
+ | ===== Running ====== | ||
+ | To run a program on the Xeon PHI: | ||
+ | * copy the program exceutable to the PHI home < | ||
+ | * login to the PHI OS: < | ||
+ | * run the code: < | ||
+ | * go back to the compiler shell< | ||
+ | |||
+ | ===== Running from remote ===== | ||
+ | To run a program on the PHI without leaving the Sandy Bridge shell, consider using a couple of commands: | ||
+ | * first copy the program executable with a < | ||
+ | * then run it from the current shell with a < | ||
+ | You can consider writing a small shell/perl script to automatize the process. |
magistraleinformaticanetworking/spm/spm1314phi.1387287259.txt.gz · Ultima modifica: 17/12/2013 alle 13:34 (11 anni fa) da Marco Danelutto