... | ... | @@ -29,23 +29,22 @@ En revanche sur les phi, c'est le `home` vu du phi `/home/$USER` qui est vu. Il |
|
|
|
|
|
## Compiler pour les phi ##
|
|
|
### Compilateur Intel ###
|
|
|
L'utilisation du compilateur Intel est nécessaire.
|
|
|
L'utilisation du [compilateur Intel `icc`](https://software.intel.com/en-us/c-compilers) est nécessaire.
|
|
|
```bash
|
|
|
export INTEL_LICENSE_FILE=/home/beau/intel/licenses
|
|
|
. /afs/cern.ch/sw/IntelSoftware/linux/x86_64/xe2015/bin/iccvars.sh intel64
|
|
|
# exemple avec les tests sur pi en OpenMP
|
|
|
cd ~/HPC/gpu/pi-test
|
|
|
icc -mmic -O3 -qopenmp --static pi_omp.c
|
|
|
cp a.out /local/home/$USER
|
|
|
```
|
|
|
### Compilateur GNU ###
|
|
|
Il est possible en principe d'utiliser `gcc`... mais la procédure complète ne fonctionne pas encore.
|
|
|
|
|
|
*TODO*
|
|
|
|
|
|
### Execution ###
|
|
|
```bash
|
|
|
ssh mic1
|
|
|
cp a.out /local/home/$USER
|
|
|
ssh mic1 # pour se logger sur la machine Phi
|
|
|
export OMP_NUM_THREADS=239 # il y a 240 coeurs par device phi
|
|
|
./a.out
|
|
|
```
|
|
|
### Compilateur GNU ###
|
|
|
Il est possible en principe d'utiliser `gcc`... mais la procédure complète ne fonctionne pas encore.
|
|
|
|
|
|
*TODO* |