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
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에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 8월 18일

댓글:

2020년 8월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by