Idphix

From Digitalis

(Difference between revisions)
Jump to: navigation, search
(Created page with 'This page describes the first steps to play with the Xeon Phi installed in the Digitalis platform in idphix. ===== Overview ===== A Xeon Phi 5110P is installed in the idphix ma...')
(How to experiment ?)
Line 24: Line 24:
== How to experiment ? ==
== How to experiment ? ==
-
For now (20130913) the operating system is a Centos 6 (OS officially supported by Intel for the Xeon Phi)
+
For now (20130913) the operating system is a Centos 6 (OS officially supported by Intel for the Xeon Phi).
 +
Use the machine as follows:
-
=== Step 0: connect to digitalis/grid5000 ===
+
=== Connect to digitalis/grid5000 ===
<code bash>
<code bash>
workstation$ ssh digitalis.grenoble.g5k
workstation$ ssh digitalis.grenoble.g5k
</code>
</code>
-
In case of issues (network issue, connection hanging...) please read more info [[Usage#Q.26A_.2F_Tips_and_tricks|here]]
+
In case of any issue (network issue, connection hanging...) please read more info [[Usage#Q.26A_.2F_Tips_and_tricks|here]] or ask on the [mailto:digitalis@lists.grid5000.fr Digitalis mailing list].
-
=== Step 1: reserve the machine/run a job ===
+
=== Reserve the machine/run a job ===
digitalis$ oarsub -p "machine='idphix'" -l walltime=2 "sleep 2h"
digitalis$ oarsub -p "machine='idphix'" -l walltime=2 "sleep 2h"
-
=== Step 2: setup your access to the Xeon Phi ===
+
=== Setup your access to the Xeon Phi ===
(This might not be relevant if your are using some level of abstraction (COI, ...)
(This might not be relevant if your are using some level of abstraction (COI, ...)
Line 64: Line 65:
  Done
  Done
 +
You shoud now be able to ssh to the coprocessor:
 +
idphix$ ssh mic0
 +
idphix-mic0$ uname -a
 +
Linux idphix-mic0.grenoble.grid5000.fr 2.6.38.8-g5f2543d #2 SMP Tue Apr 30 14:05:06 PDT 2013 k1om k1om k1om GNU/Linux
-
=== Step 4: (cross-)compile with icc ===
+
=== Intel compiler, compilation for the MIC ===
Intel compiler is installed in /opt/intel.
Intel compiler is installed in /opt/intel.
-
It is configured to use [[https://ciment.ujf-grenoble.fr|CIMENT]] license server.
+
It is configured to use Inria's license server (FlexLM).
-
(Please mind thanking CIMENT and Grid'5000 in your publications)
+
-
 
+
-
<code bash>
+
-
workstation$ ssh kaapiuser@idphix.grenoble.grid5000.fr.g5k # -> password is grid5000
+
-
kaapiuser@idphix$ /opt/intel/bin/icc toto.c
+
-
icc: error #10236: File not found:  'toto.c'
+
-
icc: command line error: no files specified; for help type "icc -help"
+
-
...
+
-
</code>
+
-
 
+
-
=== Step 5: run your code ===
+
-
To be completed, here below we just run a basic uname on the Mic, to get the description of the Mic OS.
+
-
<code bash>
+
-
kaapiuser@idphix$ ssh mic0 uname -a
+
-
Linux idphix-mic0.grenoble.grid5000.fr 2.6.38.8-g5f2543d #2 SMP Tue Apr 30 14:05:06 PDT 2013 k1om k1om k1om GNU/Linux
+
-
</code>
+
== References ==
== References ==

Revision as of 15:59, 13 September 2013

This page describes the first steps to play with the Xeon Phi installed in the Digitalis platform in idphix.

Contents

Overview

A Xeon Phi 5110P is installed in the idphix machine

The setup is the following:

We use an internal network on the host (idphix) for the Xeon Phi: 192.168.1.0/24.

This gives the following scheme:

                          =======================================
                        | -------------             -----------  |
                        ||    host     |           |  Xeon Phi | |
                        ||   idphix    |           |idphix-mic0| |
Grid5000 network <---> eth0           mic0 <----> mic0         | |
                    172.16.21.6 192.168.1.254  192.168.1.1     | |
                        ||             |           |           | |
                        | -------------             -----------  |
                          =======================================


How to experiment ?

For now (20130913) the operating system is a Centos 6 (OS officially supported by Intel for the Xeon Phi).

Use the machine as follows:

Connect to digitalis/grid5000

workstation$ ssh digitalis.grenoble.g5k

In case of any issue (network issue, connection hanging...) please read more info here or ask on the Digitalis mailing list.

Reserve the machine/run a job

digitalis$ oarsub -p "machine='idphix'" -l walltime=2 "sleep 2h"

Setup your access to the Xeon Phi

(This might not be relevant if your are using some level of abstraction (COI, ...)

Make sure you created your G5K ssh keys (keys without passephrase protection, dedicated to G5K and stored in your NFS home directory)

Run:

idphix$ sudo /usr/local/bin/mic-setup-my-user

If you get the error:

Error: Cannot get your SSH keys, please run 'chmod 755 ~/.ssh && chmod 644 ~/.ssh/{authorized_keys,id_*.pub}'

Please run:

chmod 755 ~/.ssh && chmod 644 ~/.ssh/{authorized_keys,id_*.pub}

Output should be:

idphix$ sudo /usr/local/bin/mic-setup-my-user 
*** Configure user pneyron:users (10106:8000) on mic0
*** Copy user files to mic0
id_rsa.pub                                    100%  420     0.4KB/s   00:00    
authorized_keys                               100%  916     0.9KB/s   00:00    
.profile                                      100%   62     0.1KB/s   00:00    
*** Force creation of pneyron:users on mic0 and fix file ownership and permission
Done

You shoud now be able to ssh to the coprocessor:

idphix$ ssh mic0
idphix-mic0$ uname -a
Linux idphix-mic0.grenoble.grid5000.fr 2.6.38.8-g5f2543d #2 SMP Tue Apr 30 14:05:06 PDT 2013 k1om k1om k1om GNU/Linux

Intel compiler, compilation for the MIC

Intel compiler is installed in /opt/intel. It is configured to use Inria's license server (FlexLM).

References

Miscellaneous

Intel compiler (icc) failure ?

If icc complains about the license (error message talking about FlexLM), please report the issue to [[1]]

Personal tools
platforms