Created
January 10, 2015 17:46
-
-
Save brockpalen/3318c1f04857691aa3de to your computer and use it in GitHub Desktop.
MATLAB Parallel Computing Toolbox Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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