GPU computing in Matlab has "CUDA error"

computer setting:
Nvidia GeForce GTX 1060 + Matlab 2018a + CUDA 9.2 + WIN 10 + Visual Studio 2017 VC++ 2015.3 v140 toolset for desktop (x86,x64) has been installed and all the paths have been added. Use gpuDevice in Matlab the information can display, however the other commands cannot be executed.
e.g. Input reset(gpuDevice)
or N = 6; M = magic(N); G = gpuArray(M)
then we get
An unexpected error occurred during CUDA execution. The CUDA error was: CUDA_ERROR_ILLEGAL_ADDRESS
Does this problem related to the compatibility? The installation is in D:/ while not the C:/ in my computer, is this related with the issue? How to solve this problem?

2 commentaires

Joss Knight
Joss Knight le 14 Juin 2018
These issues are usually resolved by updating your NVIDIA Driver. Try getting the latest driver and see if there is still a problem. I know you may feel as though you've done this, but if you did it by downloading the CUDA 9.2 toolkit then it will not be the latest driver.
Yizhu Chen
Yizhu Chen le 19 Juin 2018
I have updated the Nvidia driver to the latest one. However the error still exists......

Connectez-vous pour commenter.

Réponses (0)

Catégories

Produits

Version

R2018a

Question posée :

le 14 Juin 2018

Commenté :

le 19 Juin 2018

Community Treasure Hunt

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

Start Hunting!

Translated by