How can I use dll (writed in C++) in matlab?
1 次查看(过去 30 天)
显示 更早的评论
Hi all, I have to use CUDA to execute phase retrieval algorithm. How can I use dll (writed in C++) in matlab?
0 个评论
采纳的回答
Walter Roberson
2016-11-29
If you have the Parallel Computing Toolbox, then see https://www.mathworks.com/help/distcomp/parallel.gpu.cudakernel.html
0 个评论
更多回答(2 个)
Hildo
2016-11-29
Try this https://www.mathworks.com/help/matlab/matlab_external/calling-functions-in-shared-libraries.html. The language that the DLL was written is not important.
0 个评论
Edric Ellis
2016-11-29
Further to Walter's suggestion (which might entail some modifications to fit in with the CUDAKernel API), you can also access the GPU directly from a C++ MEX file by following the steps in the documentation.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!