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!