Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

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:48] – [Using GPU Matlab with SGE] adminmatlab_parallel [2019/06/07 14:21] (Version actuelle) – admin
Ligne 1: Ligne 1:
 +~~ODT~~
 ====== Matlab Parallel Computing Toolbox:  PCT ====== ====== Matlab Parallel Computing Toolbox:  PCT ======
  
Ligne 47: Ligne 48:
 <note tip>The program above will use 4 cores in the same host to run the code between ''matlabpool open 4'' and ''matlabpool close'' in parallel.  <note tip>The program above will use 4 cores in the same host to run the code between ''matlabpool open 4'' and ''matlabpool close'' in parallel. 
  
-Note that ''matlabpool open 4'' is used to open and create 4 workers. The maximum workers can be created is 8 cores. matlabpool close shutdown them.</note>+Note that ''matlabpool open 4'' is used to open and create 4 workers. The maximum workers can be created is 12 cores (8 on older versions). matlabpool close shutdown them.</note>
  
  
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, visit www.mathworks.com. 
    
 >> fft_bench                      >> fft_bench                     
Ligne 193: Ligne 185:
 </code> </code>
  
-<WRAP round box 20%>+<WRAP round box 35%>
  
 SpeedUp = time1/time2 = 3,27 SpeedUp = time1/time2 = 3,27
Ligne 234: Ligne 226:
  
  
-====== Using Matlab PCT on the mesoseq cluster ======+====== Using Matlab PCT on the Lumière cluster ======
    
 <note important>Since we have only one licence for Matlab PTC we recommend the use of Matlab Compiler ([[matlab_compiler|documentation]]) to avoid the use of Matlab licences during execution.</note>   <note important>Since we have only one licence for Matlab PTC we recommend the use of Matlab Compiler ([[matlab_compiler|documentation]]) to avoid the use of Matlab licences during execution.</note>  
Ligne 244: Ligne 236:
  
 <code bash> <code bash>
-$ module load matlab/r2011b+$ module load matlab
 $ mcc -m myParforTest.m $ mcc -m myParforTest.m
 </code> </code>
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/r2011b # We need to load matlab to define the $MATLAB_HOME variable 
    
 ./run_myParforTest.sh $MATLAB_HOME  ./run_myParforTest.sh $MATLAB_HOME 
Ligne 274: 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  ## request tesla
 +#$ -l h_vmem=10G
 +
 +module load gpu/cuda/8.0    
 +module load matlab/r2015a 
 +
 +## first we compile the program
 + 
 +mcc -m myGPUTest.m
 +
 +## then we run the program
 +
 +./run_myGPUTest.sh $MATLAB_HOME
 +
 +</code>
 ====== Documentation ====== ====== Documentation ======
  
  • matlab_parallel.1351093699.txt.gz
  • Dernière modification : 2015/02/25 08:45
  • (modification externe)