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 个评论
Edric Ellis
2020-8-25
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 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!