【已解决】UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly.
软件环境
操作系统Ubuntu22.04.1LTS
显卡Geforce MX150
驱动525.60.11
CUDA版本11.7
CUDNN版本8.7
Anaconda3版本4.5.11
paddlepaddle版本2.4.1
问题如下
>>> import paddle
W0117 20:25:17.101466 288816 init.cc:185] Compiled with WITH_GPU, but no GPU found in runtime.
/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/framework.py:622: **UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default.**"You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default."
>>> paddle.utils.run_check()
Running verify PaddlePaddle program ...
WARNING:root:You are using GPU version PaddlePaddle, but there is no GPU detected on your machine. Maybe CUDA devices is not set properly.Original Error is (External) CUDA error(999), unknown error. [Hint: Please search for the error code(999) on website (https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html#group__CUDART__TYPES_1g3f51e3575c2178246db0a94a430e0038) to get Nvidia's official solution and advice about CUDA Error.] (at /paddle/paddle/phi/backends/gpu/cuda/cuda_info.cc:65)I0117 20:25:43.814098 288816 interpretercore.cc:258] New Executor is Running.
Traceback (most recent call last):File "<stdin>", line 1, in <module>File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/utils/install_check.py", line 278, in run_check_run_static_single(use_cuda, use_xpu, use_npu)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/utils/install_check.py", line 178, in _run_static_singleexe.run(startup_prog)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/executor.py", line 1573, in runreturn_merged=return_merged,File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/executor.py", line 1821, in _run_implscope, list(feed.keys()), fetch_list, return_numpyFile "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/executor.py", line 672, in runscope, feed_names, fetch_list
OSError: In user code:File "<stdin>", line 1, in <module>File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/utils/install_check.py", line 278, in run_check_run_static_single(use_cuda, use_xpu, use_npu)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/utils/install_check.py", line 163, in _run_static_singleinput, out, weight = _simple_network()File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/utils/install_check.py", line 34, in _simple_networkattr=paddle.ParamAttr(initializer=paddle.nn.initializer.Constant(0.1)),File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/tensor/creation.py", line 225, in create_parameterattr, shape, convert_dtype(dtype), is_bias, default_initializerFile "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/layer_helper_base.py", line 443, in create_parameter**attr._to_kwargs(with_initializer=True)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/framework.py", line 3984, in create_parameterinitializer(param, self)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/initializer.py", line 70, in __call__return self.forward(param, block)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/initializer.py", line 203, in forwardstop_gradient=True,File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/framework.py", line 4042, in append_opattrs=kwargs.get("attrs", None),File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/framework.py", line 2892, in __init__for frame in traceback.extract_stack():ExternalError: CUDA error(999), unknown error. [Hint: Please search for the error code(999) on website (https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html#group__CUDART__TYPES_1g3f51e3575c2178246db0a94a430e0038) to get Nvidia's official solution and advice about CUDA Error.] (at /paddle/paddle/phi/backends/gpu/cuda/cuda_info.cc:65)[operator < fill_constant > error]
>>> quit()
terminate called after throwing an instance of 'phi::enforce::EnforceNotMet'what(): In user code:File "<stdin>", line 1, in <module>File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/utils/install_check.py", line 278, in run_check_run_static_single(use_cuda, use_xpu, use_npu)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/utils/install_check.py", line 163, in _run_static_singleinput, out, weight = _simple_network()File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/utils/install_check.py", line 34, in _simple_networkattr=paddle.ParamAttr(initializer=paddle.nn.initializer.Constant(0.1)),File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/tensor/creation.py", line 225, in create_parameterattr, shape, convert_dtype(dtype), is_bias, default_initializerFile "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/layer_helper_base.py", line 443, in create_parameter**attr._to_kwargs(with_initializer=True)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/framework.py", line 3984, in create_parameterinitializer(param, self)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/initializer.py", line 70, in __call__return self.forward(param, block)File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/initializer.py", line 203, in forwardstop_gradient=True,File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/framework.py", line 4042, in append_opattrs=kwargs.get("attrs", None),File "/home/zhangzrjerry/anaconda3/lib/python3.7/site-packages/paddle/fluid/framework.py", line 2892, in __init__for frame in traceback.extract_stack():ExternalError: CUDA error(999), unknown error. [Hint: Please search for the error code(999) on website (https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html#group__CUDART__TYPES_1g3f51e3575c2178246db0a94a430e0038) to get Nvidia's official solution and advice about CUDA Error.] (at /paddle/paddle/phi/backends/gpu/cuda/cuda_info.cc:65)[operator < fill_constant > error]--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()
1 paddle::framework::InterpreterCore::~InterpreterCore()----------------------
Error Message Summary:
----------------------
FatalError: `Process abort signal` is detected by the operating system.[TimeInfo: *** Aborted at 1673958447 (unix time) try "date -d @1673958447" if you are using GNU date ***][SignalInfo: *** SIGABRT (@0x3e800046830) received by PID 288816 (TID 0x7f5bc1057740) from PID 288816 ***]已放弃 (核心已转储)
发现nvidia内核模块未启动
sudo rmmod nvidia_uvm
rmmod: ERROR: Module nvidia_uvm is not currently loaded
启动nvidia内核模块
sudo modprobe nvidia_uvm
问题解决
>>> import paddle
>>> paddle.utils.run_check()
Running verify PaddlePaddle program ...
I0117 20:27:46.728152 290129 interpretercore.cc:258] New Executor is Running.
W0117 20:27:46.728384 290129 gpu_resources.cc:85] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 12.0, Runtime API Version: 11.7
W0117 20:27:46.745337 290129 gpu_resources.cc:115] device: 0, cuDNN Version: 8.7.
I0117 20:27:49.270186 290129 interpreter_util.cc:619] Standalone Executor is Used.
PaddlePaddle works well on 1 GPU.
PaddlePaddle works well on 1 GPUs.
PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.
【已解决】UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly.相关推荐
- 已解决UserWarning: Manipulating `w3c` setting can have unintended consequences.
已解决UserWarning: Manipulating w3c setting can have unintended consequences. warnings.warn(UserWarning ...
- 已解决UserWarning: Glyph 8722 (\N{MINUS SIGN}) missing from current font. fig.canvas.print_figure(byt
已解决UserWarning: Glyph 8722 (\N{MINUS SIGN}) missing from current font. fig.canvas.print_figure(bytes ...
- 已解决:You are using pip version 8.1.1, however version 20.2.3 is available. You should consider upgrad
说在前面: 该问题是本人遇到的非常多次的一个问题了,网上方法一直难以解决. Linux 下ubuntu 16.04 自带的都是python 2.7. 因为以前改默认python版本会导致后面犯很多错误 ...
- 已解决Visit python.org to download an earlier version of Python.
已解决(window7安装Python失败)One or more issues caused the setup to fail.Please fix the issues and then ret ...
- 已解决(Python安装报错)Visit python.org to download an earlier version of Python.
已解决(Python安装报错)One or more ssues caused the setup to fail Please fx the sses and then retry setup. F ...
- 已解决FutureWarning: The default value of regex will change from True to False in a future version. In
已解决(pandas使用正则表达式匹配报错)FutureWarning: The default value of regex will change from True to False in a ...
- 已解决 You are using pip version 10.0.1, however version 21.3.1 is available.
已解决(pip安装提示)You are using pip version 10.0.1, however version 21.3.1 is available. You should consid ...
- 已解决You are using pip version 10.0.1,however version 21.3.1 is available.
已解决(pip升级报错)Could not install packages due to an EnvirommentError:[WinError 5]拒绝访问.:'c: [programdata ...
- linux 无线网卡连接网络连接不上去,【已解决】Ubuntu 10.04 无线网卡 无法连接
----------------------------------搬家声明-------------------------------------- ----------------------- ...
- 解决CUDA driver version is insufficient for CUDA runtime version
问题 在服务器上安装mxne的GPU版本 sudo pip install mxnet-cu80==1.2.1 然后在gpu上创建数据 import mxnet as mx mx.nd.array([ ...
最新文章
- java 变量分配_Java中成员变量分配在哪个空间?
- 如果有人把支付宝的服务器炸了,你的两毛五是不是就没了?
- 利用ssh+rsync+inotify实现数据的异地实时同步
- shell脚本——expect命令
- MyBatis(三)MyBatis缓存和工作原理
- 与陆毅擦肩而过。。。
- ActionScript 3.0 学习笔记三
- Android 自定义View以及ValueAnimator学习
- 复旦大学邱锡鹏教授《神经网络与深度学习》最新版更新!
- 米斯特白帽培训讲义(v2)漏洞篇 SSRF
- JAVA(1)-----JAVA基础知识
- unique_ptr智能指针
- 华为-2025十大趋势:智能世界,触手可及.pdf(附下载链接)
- MySQL数据库基本操作语法
- python中的递归思想_使用python语言表达分形与递归
- 系统学习深度学习(一) --深度学习与神经网络关系
- 小米2A com.android.phone,104.android 简单的检查小米手机系统和华为手机系统是否打开通话自动录音功能,跳转通话录音页面...
- 201208197PM-Error on Unable to obtain lock on *.lok . Server may already be running
- Amy-Tabb机器人世界手眼标定(4、Windows)
- 作业一:我与软件工程相约
热门文章
- ArcGIS Pro Multipatch 白模数据基础操作
- Linux功耗管理(17)_Linux PM domain framework(1)_概述和使用流程
- VUE 使用 vue create 命令 创建 vue2.0 项目
- web开发文章分享 -- 从摸门到入门
- Par.ici法语听写练习A1 -L10
- 计算机网络技术中专期中考试试卷,2016计算机网络期中考试试题及答案
- [毕业设计源码]计算机毕业设计JAVA在线玩具租赁系统
- 前端导出数据到Excel(Excel.js导出数据)
- 为啥感觉金九银十是别人的,自己是铜九铁十呢?
- 安卓notification通知的详解