首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >numba-pro无法加载CUDA设备

numba-pro无法加载CUDA设备
EN

Stack Overflow用户
提问于 2015-11-13 16:56:46
回答 1查看 1.5K关注 0票数 0

我想看看GPU计算是否会大大加快我的代码速度。我已经通过conda包管理器安装了numba。

然而,该模块似乎无法检测到数据自动化系统的设备:

代码语言:javascript
复制
 In [1]: import numbapro ; numbapro.check_cude()
Vendor:  Continuum Analytics, Inc.
Package: numbapro
Message: 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()
     22
     23

/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
    191

/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)
    185
    186     @property

CudaSupportError: Error at driver init:
Call to cuInit results in CUDA_ERROR_NO_DEVICE:

一些背景:

  1. anaconda是作为用户安装在linux机器上的。我没有超级用户。
  2. 文件系统是NAS的一部分,NAS保存了我所在机构中的所有主文件夹。
  3. anaconda最初是通过另一台具有相同架构但可能没有GPU的机器安装在NAS上的。
  4. 在带有GPU的计算机上,我创建了一个新的环境,并安装了麻木表,它还安装了所有的依赖项,包括cudatoolkit。
代码语言:javascript
复制
1. I am ssh'ing into the machine from a remote laptop (maybe the driver is not initialised when I use ssh
2. I don't have lspci installed so i can't check the the GPU however I can see the device through:

cat /proc/driver/nvidia/版本

NVRM版本: NVIDIA UNIX x86_64内核模块355.11 Wed 8月26日16:35:41 PDT 2015 GCC版本: gcc版本4.8.5 (Gentoo 4.8.5 p1.3,pie 0.6.2)

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-11-15 13:14:35

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33697936

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档