RuntimeError: In function void opencl::fft_inplace
还没有人认领这个 Issue。
评估
调研方向
使用 ArrayFire 3.8.0、OpenCL 后端和 Nvidia OpenCL 驱动程序重现 Python 示例。先从 af.signal.fft 和报告中的 src/backend/opencl/fft.cpp 路径开始,然后检查生成的 FFT 内核和构建日志;完成的标准是示例在没有因内核格式错误而产生的 RuntimeError 的情况下运行结束。
由索引模型根据 Issue 内容生成。
描述
Using this arrayfire release (https://arrayfire.s3.amazonaws.com/3.8.0/ArrayFire-v3.8.0_Linux_x86_64.sh) on the opencl backend with the python api I get the following error.
import arrayfire as af
af.set_backend('opencl')
random_signal = af.random.randn(100)
test = af.signal.fft(random_signal)
Error
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-7-a744aa37e707> in <module>
----> 1 test = af.signal.fft(random_signal)
~/miniconda3/envs/af/lib/python3.7/site-packages/arrayfire/signal.py in fft(signal, dim0, scale)
177
178 output = Array()
--> 179 safe_call(backend.get().af_fft(c_pointer(output.arr), signal.arr, c_double_t(scale), c_dim_t(dim0)))
180 return output
181
~/miniconda3/envs/af/lib/python3.7/site-packages/arrayfire/util.py in safe_call(af_error)
77 err_len = c_dim_t(0)
78 backend.get().af_get_last_error(c_pointer(err_str), c_pointer(err_len))
---> 79 raise RuntimeError(to_str(err_str))
80
81 def get_version():
RuntimeError: In function void opencl::fft_inplace(opencl::Array<T>&, int, bool) [with T = cl_float2]
In file src/backend/opencl/fft.cpp:
I'm running Ubuntu 20.04 with Nvidia OpenCL Drivers. I have arrayfire debugging enabled and got the following output when the error occurred.
BUILD LOG
************************************************
<kernel>:19:10: error: expected expression
(float2)(};
^
<kernel>:891:1: error: expected '}'
^
<kernel>:18:32: note: to match this '{'
__constant float2 twiddles[] = {
^
<kernel>:890:2: error: expected ';' after top level declarator
}
^
;
************************************************
FFTGeneratedStockhamAction::compileKernels failed
- 主要语言
- Python
- 星标
- 422
- 派生
- 63
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
arrayfire/arrayfire-python 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
arrayfire/arrayfire-python#271 ·
-
难度 5/5 一周以上 新手友好度 25/100
arrayfire/arrayfire-python#270 ·
-
难度 4/5 3-5 天 新手友好度 35/100
arrayfire/arrayfire-python#269 ·
-
难度 4/5 3-5 天 新手友好度 38/100
arrayfire/arrayfire-python#268 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 48/100
arrayfire/arrayfire-python#267 · 1 条评论 · 1 个 reaction ·
查看 arrayfire/arrayfire-python 的全部 Issue
相似的 Issue
-
Add: hunch 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 68/100
DiamondLightSource/dodal#2211 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
openml/openml-python#1749 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
sipyourdrink-ltd/bernstein#6191 ·