How To Compile .cu files for execution in Matlab
Show older comments
I'm trying now about one month just to find the answer for this question where I can find this file
EDU>> cuda_mex simple.cu
Can't open perl script "C:\Program Files (x86)\MATLAB\R2011a Student\bin\cuda_mex.pl": No such file or directory
??? Error using ==> cuda_mex at 208
Unable to complete successfully.
EDU>>
I looked here but it is not here
C:\Program Files (x86)\MATLAB\R2011a Student\bin
so how can I fix this problem ?
is there is any way to use cuda in MATLAB easier than useing cuda_mex.m that gave you many error and do't know what to do with those files?
Thank you
1 Comment
Friedrich
on 13 Apr 2012
Parallel Computing Toolbox can help you here:
http://www.mathworks.com/help/releases/R2012a/toolbox/distcomp/bslohnr-1.html
Answers (1)
Walter Roberson
on 11 Apr 2012
0 votes
Did you download the code?
6 Comments
Lahdan alfahian
on 12 Apr 2012
Walter Roberson
on 12 Apr 2012
Edited: Walter Roberson
on 2 Aug 2019
You should have posted here that you are using Windows 7.
Lahdan alfahian
on 12 Apr 2012
Walter Roberson
on 13 Apr 2012
What you posted in the comments of the FEX file showed that the setup program fails because it cannot write to the MATLAB path file. The reason it cannot write to the MATLAB path file is as described in the above solution; it is a side effect of you having installed MATLAB on the system path (which Windows 7 does not allow you to write to.)
Lahdan alfahian
on 13 Apr 2012
Friedrich
on 13 Apr 2012
Seems like you compiled it on a 64bit machine and you now try to use it in a 32bit MATLAB which wont work. What happens when you compile that cu file on your machine? Try to follow the example in the doc. Does this work?
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!