MATLAB Answers

.CU Files for MATLAB

13 views (last 30 days)
Oli Shaw
Oli Shaw on 2 Aug 2019
Answered: Joss Knight on 3 Aug 2019
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 Comments

Show 5 older comments
Oli Shaw
Oli Shaw on 2 Aug 2019
Screenshot (39).png
I keep getting this message
Oli Shaw
Oli Shaw on 2 Aug 2019
I am trying reinstalling the toolkit, and have received this message part-way through. Could this be part of the issue?
Screenshot (41).png
Walter Roberson
Walter Roberson on 2 Aug 2019
You need VS 2017, or VS 2015 Professional, in order to use CUDA properly.

Sign in to comment.

Answers (1)

Joss Knight
Joss Knight on 3 Aug 2019
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.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags


Translated by