CUDA Unexpected Error for nndata2gpu
조회 수: 14 (최근 30일)
이전 댓글 표시
Hi, I am currently trying to train a fitnet on a GPU (NVIDIA Titan Xp). However, whenever I try to format my data using nndata2gpu and gpu2nndata, I run into the following error:
Error using gpuArray/gather An unexpected error occurred during CUDA execution. The CUDA error was: CUDA_ERROR_ILLEGAL_ADDRESS
The code used is:
% tinput=nndata2gpu(input);
ttarget=nndata2gpu(target);
fundnet=configure(fundnet,input,target);
tic
fundnet=train(fundnet,tinput,ttarget,'useGPU','yes','showResources','yes');
toc
ty=fundnet(tinput);
y=gpu2nndata(ty);
fundnet=perform(fundnet,target,y);
The device is recognized without any problems (gpuDevice loads in less than a second), drivers are up to date. Using Matlab R2018a. Any idea what could be the source of this issue?
Many thanks in advance!
댓글 수: 2
Joss Knight
2018년 5월 2일
This doesn't look good. Could you provide a standalone example - i.e. generate some data that triggers the error and include it in your code?
채택된 답변
Joss Knight
2018년 5월 2일
Looks like you found a bug, many thanks. We will investigate. Meanwhile, best guess for now, this is caused by using more data than the GPU train function can handle. If you can reduce the size of the input without compromising your application, then that is the work-around.
댓글 수: 1
Harley Edwards
2018년 8월 18일
I think I found a similar/related error. I have a data set in which all the data trains well separately but will not together, despite having sufficient memory, and turning off kernel execution timeout. I have Inputs 200X844000, and Targets of 6X844000. I can only train 325000 samples at a time on a Geforce 1080. Please let me know how I can contribute to solving this problem, if you want my code.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel and Cloud에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!