4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
新闻详情
numbapro无法加载CUDA devi - 问答 - Python中文网
来自 : www.cnpython.com/qa/336... 发布时间:2021-03-25
numbapro无法加载CUDA devi - 问答 - Python中文网 Python中文网 - 问答频道, 解决您学习工作中的Python难题和Bug Python常见问题登录 新用户注册 \"Python中文网\"首 页问题库教程文章问答专家标签库课程中心 numbapro无法加载CUDA devi

2021-03-25 11:46:00 发布

您现在位置:Python中文网/ 问答频道 /正文54241 3\"用户头像\"

网友

男|程序猿一只,喜欢编程写python代码。

我正在尝试验证GPU计算是否会显著加快我的代码速度。我已经通过conda软件包管理器安装了numba pro。在

但是,模块似乎无法检测到CUDA设备:

 In [1]: import numbapro ; numbapro.check_cude()Vendor: Continuum Analytics, Inc.Package: numbaproMessage: trial mode expires in 30 days---------------------------------------------------------------------------AttributeError Traceback (most recent call last) ipython-input-1-0448b95a9b9c in module ()---- 1 import numbapro ; numbapro.check_cude()AttributeError: \'module\' object has no attribute \'check_cude\'In [2]: import numbapro ; numbapro.check_cuda()---------------------------------------------------------------------------CudaSupportError Traceback (most recent call last) ipython-input-2-f7c0deebb46f in module ()---- 1 import numbapro ; numbapro.check_cuda()/home/phys/users/jonathan.kadmon/anaconda/envs/adam/lib/python2.7/site-packages/numbapro/__init__.pyc in check_cuda()/home/phys/users/jonathan.kadmon/anaconda/envs/adam/lib/python2.7/site-packages/numba/cuda/device_init.pyc in is_available() 19 This will initialize the driver if it hasn\'t been initialized. 20 \"\"\"--- 21 return driver.driver.is_available and nvvm.is_available()/home/phys/users/jonathan.kadmon/anaconda/envs/adam/lib/python2.7/site-packages/numba/cuda/cudadrv/driver.pyc in is_available(self) 187 def is_available(self): 188 if not self.is_initialized:-- 189 self.initialize() 190 return self.initialization_error is None/home/phys/users/jonathan.kadmon/anaconda/envs/adam/lib/python2.7/site-packages/numba/cuda/cudadrv/driver.pyc in initialize(self) 182 except CudaAPIError as e: 183 self.initialization_error = e-- 184 raise CudaSupportError(\"Error at driver init: \\n%s:\" % e) 186 @propertyCudaSupportError: Error at driver init:Call to cuInit results in CUDA_ERROR_NO_DEVICE:

一些背景:

Python是作为用户安装在linux机器上的。我没有超级用户。在文件系统是NAS的一部分,它保存着我所在机构中的所有主文件夹。在anaconda最初是通过具有相同架构的不同机器安装在NAS上的,但可能没有GPU。在

在带有GPU的计算机上,我创建了一个新的环境并安装了numbapro,它还安装了所有的依赖项,包括cudatoolkit

我正在从远程笔记本电脑ssh进入机器(可能在我使用ssh时驱动程序没有初始化)

我没有安装lspci,因此无法检查GPU,但我可以通过以下方式查看设备:

cat/proc/driver/nvidia/版本

NVRM版本:NVIDIA UNIX x86_64内核模块355.11 2015年8月26日星期三16:35:41 PDTGentoo(通用条款第1-8.5.5版)

任何帮助都将不胜感激。这是ssh问题吗(我在几天内无法访问机器本身)?这是包的构建和链接的问题吗?在

1条回答网友1楼 ·

实际上,这是ssh的一个问题。通过在每次登录时添加我的用户名初始化GPU,解决了这个问题。在

相关问题

本文链接: http://procudan.immuno-online.com/view-762489.html

发布于 : 2021-03-25 阅读(0)