Changes between Version 12 and Version 13 of cypress/Matlab
- Timestamp:
- 08/24/16 12:19:50 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/Matlab
v12 v13 181 181 182 182 See [https://wiki.hpc.tulane.edu/trac/wiki/cypress/Matlab#CompiledMatlab] 183 {{{#!bash 184 #!/bin/bash 185 #SBATCH --qos=normal # Quality of Service 186 #SBATCH --job-name=matlabMT # Job Name 187 #SBATCH --time=1:00:00 # WallTime 188 #SBATCH --nodes=1 # Number of Nodes 189 #SBATCH --ntasks-per-node=1 # Number of tasks (MPI processes) 190 #SBATCH --cpus-per-task=10 # Number of threads per task (OMP threads) 191 192 module load matlab 193 mcc -m FuncTest.m 194 ./FuncTest 195 }}} 183 196 184 197 ==== Explicit parallelism ==== … … 201 214 202 215 module load matlab 203 matlab -nodesktop -nodisplay -nosplash -r " CreateWorker;ParforTest; exit;"216 matlab -nodesktop -nodisplay -nosplash -r "ParforTest; exit;" 204 217 }}} 205 218 … … 222 235 % parfor "ParforTest.m" 223 236 % 237 CreateWorker; 224 238 iter = 10000; 225 239 sz = 50; … … 245 259 See [https://wiki.hpc.tulane.edu/trac/wiki/cypress/Matlab#CompiledMatlab] 246 260 261 {{{#!bash 262 #!/bin/bash 263 #SBATCH --qos=normal # Quality of Service 264 #SBATCH --job-name=matlabPool # Job Name 265 #SBATCH --time=1:00:00 # WallTime 266 #SBATCH --nodes=1 # Number of Nodes 267 #SBATCH --ntasks-per-node=1 # Number of tasks (MPI processes) 268 #SBATCH --cpus-per-task=4 # Number of threads per task (OMP threads) 269 270 module load matlab 271 mcc -m ParforTest.m 272 ./ParforTest 273 }}} 274 247 275 === Running MATLAB with Automatic Offload === 248 276 Internally MATLAB uses Intel MKL Basic Linear Algebra Subroutines (BLAS) and Linear Algebra package (LAPACK) routines to perform the underlying computations when running on Intel processors. … … 294 322 See [https://wiki.hpc.tulane.edu/trac/wiki/cypress/Matlab#CompiledMatlab] 295 323 324 {{{#!bash 325 #!/bin/bash 326 #SBATCH --qos=normal # Quality of Service 327 #SBATCH --job-name=matlabAO # Job Name 328 #SBATCH --time=1:00:00 # WallTime 329 #SBATCH --nodes=1 # Number of Nodes 330 #SBATCH --ntasks-per-node=1 # Number of tasks (MPI processes) 331 #SBATCH --cpus-per-task=1 # Number of threads per task (OMP threads) 332 #SBATCH --gres=mic:1 # Number of Co-Processors 333 334 module load matlab 335 module load intel-psxe 336 mcc -m MatTest.m 337 export MKL_MIC_ENABLE=1 338 ./MatTest 339 }}} 340 341 To generate the offload report at run time, 342 {{{ 343 export OFFLOAD_REPORT=2 344 }}} 345 346 * Setting OFFLOAD_REPORT to 0 (or not setting it) results in no offload report. 347 348 * Setting OFFLOAD_REPORT to 1 results in a report including: 349 * Name of function called 350 * Effective Work Division 351 * Time spent on Host during call 352 * Time spent on each available Phi coprocessor during call 353 354 * Setting OFFLOAD_REPORT to 2 results in a report including everything from 1, and in addition: 355 * Amount of data transferred to and from each Phi during call 356