简体   繁体   English

Anaconda Acclerate / NumbaPro CUDA链接错误OSX

[英]Anaconda Acclerate / NumbaPro CUDA Linking Error OSX

Overall goal is to use NumbaPro to run some functions on the GPU (on OSX 10.8.3). 总体目标是使用NumbaPro在GPU上(在OSX 10.8.3上)运行某些功能。

Before starting, I just wanted to get everything set up. 在开始之前,我只是想进行所有设置。 According to this page I installed CUDA, registered as a CUDA developer, downloaded the Compiler SDK and set up the NUMBAPRO_NVVM=/path/to/libnvvm.dylib environment variable. 根据此页面,我安装了CUDA,注册为CUDA开发人员,下载了Compiler SDK并设置了NUMBAPRO_NVVM = / path / to / libnvvm.dylib环境变量。

However, running this basic test function: 但是,运行此基本测试功能:

from numbapro import autojit

@autojit(target='gpu')
def my_function(x):
    if x == 0.0:
        return 1.0
    else:
        return x*x*x

print my_function(4.4)
exit()

Brings up this error: 出现此错误:

File ".../anaconda/lib/python2.7/site-packages/numba/decorators.py", line 207, in compile_function
    compiled_function = dec(f)
File "...lib/python2.7/site-packages/numbapro/cudapipeline/decorators.py", line 35, in _jit_decorator
File "...lib/python2.7/site-packages/numbapro/cudapipeline/decorators.py", line 128, in __init__
File "...lib/python2.7/site-packages/numbapro/cudapipeline/environment.py", line 31, in generate_ptx
File "...lib/python2.7/site-packages/numbapro/cudapipeline/environment.py", line 186, in _link_llvm_math_intrinsics
KeyError: 1

I've tried @vectorize'ing instead of autojit, same error. 我试过@ vectorize'ing而不是autojit,同样的错误。 @autojit by itself with no target works fine. @autojit本身没有目标可以正常工作。

Any ideas? 有任何想法吗?

For posterity's sake, I asked Continuum Support. 为了后代的缘故,我请Continuum Support。 They responded: 他们回答:

It seems that you are running a CUDA GPU with compute capability 1.x. 看来您正在运行具有1.x计算功能的CUDA GPU。 NVVM only supports CC2.0 and above. NVVM仅支持CC2.0及更高版本。 We definitely should have a better error reporting and make it clear in the NumbaPro documentation for the supported compute capability. 我们绝对应该有更好的错误报告,并在NumbaPro文档中明确说明受支持的计算功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM