can anyone please help me to create mex file from my cuda code? I m really in need of this.
Mathworks on its web site provides good documentation, but you can also check out this blog post, while this one provides some really useful information about the Makefile. What is your problem exactly?
Thanks Chung for your reply. Yes, I already have checked out these links before. The problem I am facing is, I have got my CUDA code file(.cu file). I just have to create a .mexw64 extension file of my CUDA file which can be run in matlab. I am not getting how to do it. The links which u gave those tells only how to compile and run an already created mex file. It doesnot tell how to create a mex file. So if possible please help in this regard. Thank you!!
Here’s a short tutorial on creating mex files:
http://classes.soe.ucsc.edu/ee264/Fall11/cmex.pdf