Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| xeonphi [2015/09/16 13:17] – admin | xeonphi [2020/02/05 15:48] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ~~ODT~~ | ~~ODT~~ | ||
| + | <note warning> | ||
| + | XeonPHI cards are disabled in this node. | ||
| + | </ | ||
| ====== XeonPHI ====== | ====== XeonPHI ====== | ||
| Ligne 37: | Ligne 40: | ||
| - | * [[http:// | + | * [[http:// |
| - | * [[http:// | + | * [[http:// |
| Ligne 76: | Ligne 79: | ||
| </ | </ | ||
| - | A remote shell is opened to the node2-2 | + | A remote shell is opened to the node1-51 |
| <code bash> | <code bash> | ||
| Ligne 83: | Ligne 86: | ||
| waiting for interactive job to be scheduled ... | waiting for interactive job to be scheduled ... | ||
| Your interactive job 79206 has been successfully scheduled. | Your interactive job 79206 has been successfully scheduled. | ||
| - | Establishing builtin session to host node2-2.cluster ... | + | Establishing builtin session to host node1-51.cluster ... |
| - | [user@node2-2 ~]$ | + | [user@node1-51 ~]$ |
| </ | </ | ||
| - | <note tip> | + | <note tip> |
| You can check the state of the MIC card by: | You can check the state of the MIC card by: | ||
| Ligne 94: | Ligne 97: | ||
| <code bash> | <code bash> | ||
| - | [user@mesologin1 | + | [user@node1-51 |
| </ | </ | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| Ligne 105: | Ligne 108: | ||
| - | [user@node2-2 ~]$ module load intel/mic | + | [user@node1-51 ~]$ module load intel/mic |
| </ | </ | ||
| Ligne 179: | Ligne 182: | ||
| <WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
| - | By default '' | + | By default '' |
| </ | </ | ||
| Ligne 202: | Ligne 205: | ||
| <code bash> | <code bash> | ||
| - | $ micnativeloadex ./hello.mic -e "export | + | $ micnativeloadex ./hello.mic -e " |
| </ | </ | ||
| Ligne 286: | Ligne 289: | ||
| < | < | ||
| Hello World from thread = 0 | Hello World from thread = 0 | ||
| - | Number of threads = 4, running on node2-2-mic0 | + | Number of threads = 4, running on node1-51-mic0 |
| Hello World from thread = 2 | Hello World from thread = 2 | ||
| Hello World from thread = 3 | Hello World from thread = 3 | ||
| Ligne 587: | Ligne 590: | ||
| - Compile the program for the coprocessor (-mmic) <code bash>$ mpiicc -mmic hello_mpi.c -o hello_mpi.mic</ | - Compile the program for the coprocessor (-mmic) <code bash>$ mpiicc -mmic hello_mpi.c -o hello_mpi.mic</ | ||
| - Set the '' | - Set the '' | ||
| - | - Launch MPI jobs on the coprocessor '' | + | - Launch MPI jobs on the coprocessor '' |
| <WRAP center round info 60%> | <WRAP center round info 60%> | ||
| Alternatively one can copy and login to the mic0 and run mpirun there) | Alternatively one can copy and login to the mic0 and run mpirun there) | ||
| Ligne 601: | Ligne 604: | ||
| - Compile the program for the host <code bash>$ mpiicc -mmic hello_mpi.c -o hello_mpi</ | - Compile the program for the host <code bash>$ mpiicc -mmic hello_mpi.c -o hello_mpi</ | ||
| - Set the '' | - Set the '' | ||
| - | - Launch MPI jobs on the host node2-2 and on the coprocessor mic0 <code bash>$ mpirun -host node2-2 -n 1 ./hello_mpi : -n 244 -host mic0 / | + | - Launch MPI jobs on the host node1-51 and on the coprocessor mic0 <code bash>$ mpirun -host node1-51 -n 1 ./hello_mpi : -n 244 -host mic0 /Work/Users/ |
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| Ligne 678: | Ligne 681: | ||
| < | < | ||
| OMP_NUM_THREADS=10 mpirun -np 3 ./ | OMP_NUM_THREADS=10 mpirun -np 3 ./ | ||
| - | Hello world from processor | + | Hello world from processor |
| - | Hello world from processor | + | Hello world from processor |
| - | Hello world from processor | + | Hello world from processor |
| - | Hello world from thread 0 on processor | + | Hello world from thread 0 on processor |
| - | Hello world from thread 2 on processor | + | Hello world from thread 2 on processor |
| - | Hello world from thread 4 on processor | + | Hello world from thread 4 on processor |
| - | Hello world from thread 6 on processor | + | Hello world from thread 6 on processor |
| - | Hello world from thread 3 on processor | + | Hello world from thread 3 on processor |
| - | Hello world from thread 7 on processor | + | Hello world from thread 7 on processor |
| - | Hello world from thread 8 on processor | + | Hello world from thread 8 on processor |
| - | Hello world from thread 9 on processor | + | Hello world from thread 9 on processor |
| - | Hello world from thread 5 on processor | + | Hello world from thread 5 on processor |
| - | Hello world from thread 1 on processor | + | Hello world from thread 1 on processor |
| Ligne 738: | Ligne 741: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ===== Usefull env variables ===== | ||
| + | |||
| + | ^Variable^possibile values ^ doc ^ | ||
| + | | MKL_MIC_ENABLE | 0, 1| enable or not Automatic MKL offload | | ||
| + | | OFFLOAD_REPORT |0,1,2,3 | offload debug informations | | ||
| + | | OFFLOAD_DEVICES |{0,1,2,3} | choose device de offload | | ||
| + | | MKL_MIC_X_WORKDIVISION | (X is id of device) | work division between the host and the coprocessor| | ||
| ====== Benchmarks ====== | ====== Benchmarks ====== | ||
| Ligne 759: | Ligne 770: | ||
| + | ===== Applications ===== | ||
| + | * [[Using XeonPhi with Matlab]] | ||
| + | * Using XeonPhi with Python | ||
| ====== Links ====== | ====== Links ====== | ||
| + | * {{: | ||
| * http:// | * http:// | ||
| * https:// | * https:// | ||