Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleExample Matlab script: parafor-test.m
matlabpool('open',8);
tic
start = tic;
clear A
parfor i = 1:100000;
        A(i) = i;
end
stop = toc(start);
stop
matlabpool('close');

 

Utilizing XEON PHI Offloading

Neon has a group of nodes with XEON PHI accelerator cards. These extra resources can be utilized by the MKL libraries used by MATLAB via offloading. 

To submit a MATLAB job that offloads to the XEON PHI coprocessors you must submit your job with the following options:

Code Block
qsub -l phi myscript.job

Your job must also specify the MKL_MIC_ENABLE environment variable:

Code Block
MKL_MIC_ENABLE=1    //enables offloading
 

More information on advanced job submission can be found here: Advanced Job Submission