.CU Files for MATLAB
显示 更早的评论
I am trying to replicate an academic paper. The code from the paper includes a .cu file that generates files that are needed for the remainer of the paper.
I did some searching and I may need an additional toolkit for MATLAB to run this correctly
From here, I tried the nvcc command, and my version of MATLAB does not recognize the function.
Is the following link the toolkit that I need to get this to run?
8 个评论
Walter Roberson
2019-8-2
Oli Shaw
2019-8-2
Walter Roberson
2019-8-2
编辑:Walter Roberson
2019-8-2
That toolkit itself does not install nvcc.m
Note: you might need VS 2017, or VS 2015 Professional, in order to use CUDA properly. On MS Windows, nvcc does not support mingw
Oli Shaw
2019-8-2
Walter Roberson
2019-8-2
After you installed that File Exchange contribution, go to the MATLAB command line and command
nvcc -config
What result do you get?
Oli Shaw
2019-8-2
Oli Shaw
2019-8-2
Walter Roberson
2019-8-2
You need VS 2017, or VS 2015 Professional, in order to use CUDA properly.
回答(1 个)
Joss Knight
2019-8-3
0 个投票
Hi Oli. You don't run nvcc in MATLAB, since it isn't a MATLAB feature. You run it at a Windows Command Prompt (or Powershell). Use it to generate a PTX file and then load that into MATLAB using the CUDAKernel feature. To use this properly is an Advanced skill because it requires you to understand a bit about CUDA code and CUDA kernels.
1 个评论
Samuel Gray
2021-2-9
nvcc is a command-line tool that is installed when you install the CUDA toolkit.
the above download for an example of using nvcc with matlab
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



