Is there any other option except MEX to run a CUDA-written code in Matlab?

1 次查看(过去 30 天)
Hi,
I have written a CUDA function and made a MEX gateway to use it in Matlab. While it works fine in a for loop when i do not push the MEX function hard (inputs are large and i give it enough time with pause command between each iteration), it does not work fine if i push hard with small imput variables (which makes the processing faster).
My first question is that why this is happening. In the web, i have seen that other people had this issue, but i found no answer.
Second question: Is there any other way that I could use my CUDA-written code in Matlab?
Thanks in advance,
Moein.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by