Skip to content

Instantly share code, notes, and snippets.

@brockpalen
Created January 10, 2015 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brockpalen/3318c1f04857691aa3de to your computer and use it in GitHub Desktop.
Save brockpalen/3318c1f04857691aa3de to your computer and use it in GitHub Desktop.
MATLAB Parallel Computing Toolbox Demo
function benchmarkpct(ncpus)
sched= findResource('scheduler', 'type', 'mpiexec') ;
set(sched, 'EnvironmentSetMethod', 'setenv')
set(sched, 'MpiexecFileName', '/home/software/rhel6/mpiexec/bin/mpiexec')
sched
%get current mpi library
mpiLibConf
matlabpool (sched, ncpus)
paralleldemo_backslash_bench(1.25)
matlabpool close;
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment