Mandelbrot Set with CUDA
9 ビュー (過去 30 日間)
古いコメントを表示
I am attempting to work through the three methods to compute the Mandelbrot Set outlined on this page. I am stuck on the third method, which I think is also demonstrated here. In particular, I cannot compile the .cu file using mexcuda:
mexcuda -ptx pctdemo_processMandelbrotElement.cu
I have installed MATLAB Support for MinGW-w64 C/C++ Compiler, NVIDIA CUDA Toolkit 12.2 and Microsoft Visual Studio Community 2022 (but I'm not completely sure if I installed the C++ Compiler with Visual Studio).
Is there something else I am missing? I am on a Windows 10 PC with an NVIDIA GeForce GTX 1080 and MATLAB R2023a Update 3. See below for the error(s) I am getting:
0 件のコメント
回答 (1 件)
Ty
2023 年 7 月 6 日
NVidia CUDA requires the Visual C++ compiler. It looks like MATLAB is showing you only have MinGW available. I would double check that you selected the "Desktop development with C++" workflow during the Visual Studio 2022 install. Just re-run the installer which should allow you to add or remove packages.
After you've verified that, see if it now lists the Microsoft Visual C++ compiler when you run the "mex -setup C++" command. You can add a verbose flag with "-v" to see which program folders it's checking.
Lastly, once you've been able to switch the compilers, make sure you've followed the instructions for Setting Up the Prerequisite Products. There are a few system environment variables that need to get set.
1 件のコメント
参考
カテゴリ
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!