Error using gpuArray/gather

Hi all,
I have a cuda function in visual studio, of which I made a mex function to run it from matlab. I have to test the function for inputs of different sizes. The input is a matrix which has 75 rows and 9 columns for the first test, then 10 columns, then 11 and so on till 19. When I start the mex function in matlab for 9,10 and 11 columns I get the results wanted, but above that I get the following error message
Error using gpuArray/gather
An unexpected error occurred during CUDA execution. The CUDA error was:
CUDA_ERROR_ILLEGAL_ADDRESS
I have checked another thread from 2016
which recommneds changing the enviroment variables, which I did but didn't solve the problem
I am using Nvidia Geforce 960M , cuda 10.2 and matlab R2020a
and suggestions?

1 个评论

This error is almost certainly caused by a problem in your MEX code. I would suggest trying to come up with a minimal reproduction case that you can share with us that demonstrates the problem.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 GPU Computing 的更多信息

产品

版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by