I am developing a parallel application using the Matlab parallel computing toolbox. I am wondering if I can convert the application using Matlab Coder for C/C++? Can Parallel Application developed using Matlab Parallel Computing Toolbox be converted to C/C++ by Matlab Coder?
2 Answers
MATLAB coder doesn't support Parallel Computing Toolbox. See http://www.mathworks.co.uk/products/matlab-coder/description2.html for the supported functionality.
You can however deploy using the compiler applications using Parallel Computing.
-
Do you mean you can use commands like
parfor
without error but also without speedup?Dennis Jaheruddin– Dennis Jaheruddin01/22/2013 15:49:42Commented Jan 22, 2013 at 15:49 -
You can deploy a MATLAB application which opens a
matlabpool
and then callsparfor
- so you do get speedup.Edric– Edric01/22/2013 15:56:45Commented Jan 22, 2013 at 15:56
MATLAB Coder does in fact support PARFOR for code generation as of R2013b:
http://www.mathworks.com/help/coder/ref/parfor.html
http://www.mathworks.com/help/coder/release-notes.html
It has been supported in MEX since R2012b (see release notes again).