报Warning如下: Warning: The CUDA driver must recompile the GPU librariesbecause your device is more rec

配置

出现版本MATLAB R2018a + NVIDIA RTX2080Ti + 驱动440.82 + CUDA10.2 + cudnn7.6.5

报错

报Warning如下:
Warning: The CUDA driver must recompile the GPU librariesbecause your device is more recent than the libraries. Recompiling can take several minutes. Learn more.
通常还会附带Error如下:
Error using *
或者
Error using .*
或者
Error using gpuArray/hTimesTranspose
等,最后出现
Call to dgemm in CUBLAS failed with error status : CUBLAS_STATUS_EXECUTION_FAILED.

解决

在你打开MATLAB的路径下新建startup.m文件,写入内容如下并保存:

warning off parallel:gpu:device:DeviceLibsNeedsRecompiling
try    
    gpuArray.eye(2)^2;
catch ME
end
try    
    nnet.internal.cnngpu.reluForward(1);
catch ME
end
 
 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

退出并重新打开MATLAB,此时仍有可能出现Warning如下:
Warning: The CUDA driver must recompile the GPU librariesbecause your device is more recent than the libraries. Recompiling can take several minutes. Learn more.
> In startup (line 3)
忽略此Warning,因为程序已经可以正常执行。

参考

1、https://www.mathworks.com/matlabcentral/answers/437756-how-can-i-recompile-the-gpu-libraries
2、https://itectec.com/matlab/matlab-how-to-recompile-the-gpu-libraries/

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值