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 comentario

Edric Ellis
Edric Ellis el 25 de Ag. de 2020
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Productos

Versión

R2020a

Preguntada:

el 18 de Ag. de 2020

Comentada:

el 25 de Ag. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by