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 15:46] – [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 176: | Ligne 177: | ||
| <code bash> | <code bash> | ||
| $ matlab -nodesktop -nodisplay | $ matlab -nodesktop -nodisplay | ||
| - | |||
| - | < M A T L A B (R) > | ||
| - | Copyright 1984-2012 The MathWorks, Inc. | ||
| - | R2012b (8.0.0.783) 64-bit (glnxa64) | ||
| - | August 22, 2012 | ||
| - | |||
| - | |||
| - | To get started, type one of these: helpwin, helpdesk, or demo. | ||
| - | For product information, | ||
| >> fft_bench | >> fft_bench | ||
| Ligne 193: | Ligne 185: | ||
| </ | </ | ||
| - | < | + | <WRAP round box 35%> |
| SpeedUp = time1/time2 = 3,27 | SpeedUp = time1/time2 = 3,27 | ||
| Ligne 234: | Ligne 226: | ||
| - | ====== Using Matlab PCT on the mesoseq | + | ====== Using Matlab PCT on the Lumière |
| <note important> | <note important> | ||
| Ligne 244: | Ligne 236: | ||
| <code bash> | <code bash> | ||
| - | $ module load matlab/r2011b | + | $ module load matlab |
| $ mcc -m myParforTest.m | $ mcc -m myParforTest.m | ||
| </ | </ | ||
| Ligne 264: | 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 271: | Ligne 263: | ||
| <note tip> | <note tip> | ||
| + | |||
| + | ===== 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 ====== | ||