No CUDA runtime is found, using CUDA
'Using powerpoint presentations effectively',简洁明了 #生活技巧# #职场沟通技巧# #商务英语#
今天在使用pytorch 跑pointnet++的时候,出现了下面的问题:
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-10.0'
/home/eric/anaconda3/lib/python3.6/site-packages/pointnet2_ops/pointnet2_utils.py:15: UserWarning: Unable to load pointnet2_ops cpp extension. JIT Compiling.
warnings.warn("Unable to load pointnet2_ops cpp extension. JIT Compiling.")
Traceback (most recent call last):
File "pointnet2/train.py", line 61, in <module>
main()
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/main.py", line 24, in decorated_main
strict=strict,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/_internal/utils.py", line 174, in run_hydra
overrides=args.overrides,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/_internal/hydra.py", line 86, in run
job_subdir_key=None,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/plugins/common/utils.py", line 109, in run_job
ret.return_value = task_function(task_cfg)
File "pointnet2/train.py", line 54, in main
distributed_backend=cfg.distrib_backend,
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 438, in __init__
self.data_parallel_device_ids = parse_gpu_ids(self.gpus)
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 712, in parse_gpu_ids
gpus = sanitize_gpu_ids(gpus)
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 678, in sanitize_gpu_ids
""")
pytorch_lightning.utilities.exceptions.MisconfigurationException:
You requested GPUs: [0]
But your machine only has: []
➜ Pointnet2_PyTorch git:(master) ✗ python pointnet2/train.py task=cls
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-10.0'
/home/eric/anaconda3/lib/python3.6/site-packages/pointnet2_ops/pointnet2_utils.py:15: UserWarning: Unable to load pointnet2_ops cpp extension. JIT Compiling.
warnings.warn("Unable to load pointnet2_ops cpp extension. JIT Compiling.")
Traceback (most recent call last):
File "pointnet2/train.py", line 61, in <module>
main()
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/main.py", line 24, in decorated_main
strict=strict,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/_internal/utils.py", line 174, in run_hydra
overrides=args.overrides,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/_internal/hydra.py", line 86, in run
job_subdir_key=None,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/plugins/common/utils.py", line 109, in run_job
ret.return_value = task_function(task_cfg)
File "pointnet2/train.py", line 54, in main
distributed_backend=cfg.distrib_backend,
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 438, in __init__
self.data_parallel_device_ids = parse_gpu_ids(self.gpus)
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 712, in parse_gpu_ids
gpus = sanitize_gpu_ids(gpus)
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 678, in sanitize_gpu_ids
""")
pytorch_lightning.utilities.exceptions.MisconfigurationException:
You requested GPUs: [0]
But your machine only has: []
解决方法
把原来的torch卸载了,然后安装:
pip install torchvision==0.5
参考文献
[1].FCOS出现No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-10.0'. https://blog.csdn.net/qq_44814641/article/details/103683842
网址:No CUDA runtime is found, using CUDA https://www.yuejiaxmz.com/news/view/634690
相关内容
CUDA:(一) 基本设备管理函数、向量相加CUDA与CPU性能对比
pytorch 设置变量的device=‘cpu’ or ‘cuda‘
CUDA进阶第八篇
webpack 打包 node 程序出现 No native build was found for platform 问题解决
安装pytorch1.0
consider using the replace, lineinfile
TensorCore使用
Command: 环境变量
ubuntu16.04 安装tensorflow
随便看看
- 用保鲜膜包裹食物加热会致癌?揭开生活中的伪科学
- “轻工论坛”2024年第93期——湖南大学研究生院隆平分院(湖南省农业科学院研究生院)丁胜华研究员来校做“仿生活性保鲜膜的创新设计与采后水果品质调控”学术报告
- 未来食品保鲜的发展方向:生物类食品保鲜剂
- 2023年果蔬保鲜市场规模分析:我国果蔬保鲜市场达到上千亿元
- 化学与生活息息相关.(1)下列食品所富含的主要营养素是 和水.(2)家庭生活中常使用下列用品.其中用到有机合成材料的是 .A.合成橡胶手套 B.纯棉饰品 C.塑料保鲜盒 D.不锈钢炊具(3)煤. 天然气称为化石燃料.天然气的主要成分为甲烷.甲烷在空气中燃烧的化学方程式为 .化石燃料燃烧会加剧温室效应.请写出符合“低碳生活 理念� 题目和参考答案——青夏教育精英家教网——

