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 Comment

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.

Sign in to comment.

Answers (0)

Products

Release

R2020a

Asked:

on 18 Aug 2020

Commented:

on 25 Aug 2020

Community Treasure Hunt

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

Start Hunting!