我想看看GPU计算是否会大大加快我的代码速度。我已经通过conda包管理器安装了numba。
然而,该模块似乎无法检测到数据自动化系统的设备:
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. 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问题吗(我几天内无法访问机器本身)?这是包的构建和链接的问题吗?
发布于 2015-11-15 13:14:35
事实上,这是ssh的一个问题。这个问题是通过IT添加我的用户名来解决的,我的用户名在每次登录时初始化GPU。
https://stackoverflow.com/questions/33697936
复制相似问题