python - python numba 变量 $116setup_with.2 未定义
问题描述
我尝试使用 numba 来使用 cuda 核心,但我遇到了一个错误,我无法解决。另外,我在网上没有找到解决此错误的方法。任何人都可以帮助我吗?
from numba import *
@jit()
def gpu():
a = 2**16
print('hello!')
gpu()
错误开始:
.........Python\Python39\lib\site-packages\numba\core\ir.py", line 267, in get
return self._con[name]
KeyError: '$116setup_with.2'
...
错误结束:
...
numba.core.errors.NotDefinedError: Failed in object mode pipeline (step: analyzing bytecode)
[1mThe compiler failed to analyze the bytecode. Variable '$116setup_with.2' is not defined.[0m
解决方案
推荐阅读
- reactjs - 无法使用 webpack 将 React 项目的 bundle.js 复制到 Spring Project
- python - 使用 python 代码一次将多个数据帧加载到 Power BI
- c# - 存储库模式问题
- python - Python百分比差异到excel
- android - 在 Easypermissions 库中隐藏对话框
- asp.net-core - 健康检查 UI 按类别显示结果
- html - Angular *ngFor 生成表 4 单元格宽
- scala - 如何创建自己的具有扩展功能的 exec 函数?
- waf - 如果配置文件发生变化,自动重新配置 waf 项目
- php - 如何在 Zend Framework 数据库查询函数中实现准备好的语句