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 个评论

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.
I have updated the Nvidia driver to the latest one. However the error still exists......

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 GPU Computing 的更多信息

产品

版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by