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 | ||
| matlab_parallel [2012/10/24 20:05] – [GPU Background] admin | matlab_parallel [2019/06/07 14:21] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ~~ODT~~ | ||
| ====== Matlab Parallel Computing Toolbox: | ====== Matlab Parallel Computing Toolbox: | ||
| Ligne 47: | Ligne 48: | ||
| <note tip>The program above will use 4 cores in the same host to run the code between '' | <note tip>The program above will use 4 cores in the same host to run the code between '' | ||
| - | Note that '' | + | Note that '' |
| Ligne 225: | Ligne 226: | ||
| - | ====== Using Matlab PCT on the mesoseq | + | ====== Using Matlab PCT on the Lumière |
| <note important> | <note important> | ||
| Ligne 235: | Ligne 236: | ||
| <code bash> | <code bash> | ||
| - | $ module load matlab/r2011b | + | $ module load matlab |
| $ mcc -m myParforTest.m | $ mcc -m myParforTest.m | ||
| </ | </ | ||
| Ligne 255: | Ligne 256: | ||
| #$ -pe openmp 5 | #$ -pe openmp 5 | ||
| - | module load matlab # We need to load matlab to define the $MATLAB_HOME variable | + | module load matlab/ |
| ./ | ./ | ||
| Ligne 265: | Ligne 266: | ||
| ===== Using GPU Matlab with SGE ===== | ===== Using GPU Matlab with SGE ===== | ||
| + | We use **Matlab Compiler** to generate an executable program wich will be executed in tesla GPU. | ||
| + | |||
| + | Here is an SGE example: | ||
| + | <code bash> | ||
| + | #!/bin/bash -l | ||
| + | #$ -V | ||
| + | #$ -N test_matlab_PTC | ||
| + | #$ -cwd | ||
| + | #$ -o $JOB_NAME.$JOB_ID.out | ||
| + | #$ -q tesla.q | ||
| + | #$ -l h_vmem=10G | ||
| + | |||
| + | module load gpu/ | ||
| + | module load matlab/ | ||
| + | |||
| + | ## first we compile the program | ||
| + | |||
| + | mcc -m myGPUTest.m | ||
| + | |||
| + | ## then we run the program | ||
| + | |||
| + | ./ | ||
| + | |||
| + | </ | ||
| ====== Documentation ====== | ====== Documentation ====== | ||