How can I use dll (writed in C++) in matlab?
    4 ビュー (過去 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!



