I want to compile .cu code on my matlab 2015a using 'mexcuda' but i am getting errors as shown

1 次查看(过去 30 天)
mexcuda -v -largeArrayDims mexGPUExample.cu
Undefined function or variable 'mexcuda'.
and
mex -v -largeArrayDims mexGPUExample.cu
Verbose mode is on.
No MEX options file identified; looking for an implicit selection.
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2015a/win64.html
i have parallel tool kit and compilers installed on my system .
  2 个评论
Walter Roberson
Walter Roberson 2015-11-25
What do you get if you use
mex -setup
It appears as if you do not have a supported compiler installed in your system.
Which operating system version are you using?
nikhil mhala
nikhil mhala 2015-11-25
编辑:Walter Roberson 2015-11-25
MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN

请先登录,再进行评论。

采纳的回答

Edric Ellis
Edric Ellis 2015-11-25
The function mexcuda was introduced in R2015b. You'll need to follow the instructions in the R2015a documentation: http://www.mathworks.com/help/releases/R2015a/distcomp/run-mex-functions-containing-cuda-code.html#btrgjh3-1

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by