How can I debug the error "The CUDA error code was: CUDA_ERROR_UNKNOWN."

I'm using a new Geforce GTX 1080 Ti, replacing a Quadro 5000 which previously worked with the same code.
The problem occurs when I try to conduct math on a vector of gpuArray data. For example X = rand(1000); G = gpuArray(X); G + 2
This will return the following error message:
Error using gpuArray/subsref An error occurred during PTX compilation of image. The information log was:
The error log was:
The CUDA error code was: CUDA_ERROR_UNKNOWN.
Error in dispInternal>iTransferPortionDense (line 36) data = gather( subsref( x, s ) );
Error in parallel.internal.shared.buildDisplayHelper>iFirstNNumericDisplayHelper (line 71) maybeTruncatedValue = transferDenseFcn( x, rangeStruct );
Error in parallel.internal.shared.buildDisplayHelper>iBuildDisplayHelper (line 33) dh = iFirstNNumericDisplayHelper( ...
Error in parallel.internal.shared.buildDisplayHelper (line 24) dh = iBuildDisplayHelper( x, transferDenseFcn, transferSparseFcn, xClassName, xName, N );
Error in dispInternal (line 13) dh = parallel.internal.shared.buildDisplayHelper( ...
Error in gpuArray/display (line 21) dh = dispInternal( obj, thisClassName, objName );
Many thanks for any help you can provide!

Réponses (1)

I solved my own problem. I am using Ubuntu linux, and if you run matlab from a terminal as a super user
sudo matlab
it fixes the problem. Everything is up and running fine!

1 commentaire

Thanks for that; it's interesting that permissions should have such an effect, and certainly seems like a bug with the GPU driver. Unfortunately there seem to be a lot of problems with the 1080 Ti; you should remember that these GeForce cards are designed for high performance graphics and their usefulness for compute has its limitations; the main one seeming to be their tendency to just crash without explanation, particularly when memory usage is being stretched.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Parallel Computing Toolbox dans Centre d'aide et File Exchange

Produits

Version

R2018a

Tags

Commenté :

le 21 Août 2018

Community Treasure Hunt

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

Start Hunting!

Translated by