热卖商品
新闻详情
numba-pro无法加载CUDA设备-python黑洞网
来自 : www.pythonheidong.com/blog/art
发布时间:2021-03-25
我正在尝试确定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:
一些背景:
本文链接: http://procudan.immuno-online.com/view-762490.html
发布于 : 2021-03-25
阅读(0)
最新动态
2021-03-25
2021-03-25
2017-07-29
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
联络我们