PyOpenCL - “构建成功,但导致非空日志”
我刚刚开始使用 PyOpenCL 和 OpenCL(来自 CUDA)。 问题是,当我使用这个非常简单的虚拟内核时:
typedef struct type_complex64
{
float real;
float imag;
} complex64;
__kernel void transform(__global complex64* amps, __constant complex64* operator)
{
unsigned int i = get_global_id(0);
amps[i].real = 1.0f;
amps[i].imag = 0.0f;
}
我在构建步骤中得到了这个:
C:\Python27\lib\site-packages\pyopencl\cache.py:338:用户警告: 构建成功,但生成非空日志:构建于 pyopencl.Device ' Intel(R) Core(TM) i5-2410M CPU @ 2.30GHzC:\Python27\lib\site-packages\pyopencl__init__.py:173: UserWarning: 构建成功,但导致非空日志:构建于 pyopencl.Device ' Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
在这里我什至没有返回我的解释器命令提示符,我必须按 Enter 键才能返回到提示符。我想应该有一些实际的消息,但我无法让它显示出来。 顺便说一句,内核运行良好,所以没有问题。这相当烦人。有什么想法吗?
I just started using PyOpenCL and OpenCL in general (coming from CUDA).
Thing is, when I'm using this very simple dummy kernel:
typedef struct type_complex64
{
float real;
float imag;
} complex64;
__kernel void transform(__global complex64* amps, __constant complex64* operator)
{
unsigned int i = get_global_id(0);
amps[i].real = 1.0f;
amps[i].imag = 0.0f;
}
I get this at the build step:
C:\Python27\lib\site-packages\pyopencl\cache.py:338: UserWarning:
Build succeeded, but resulted in non-empty logs: Build on
pyopencl.Device ' Intel(R) Core(TM) i5-2410M CPU @
2.30GHzC:\Python27\lib\site-packages\pyopencl__init__.py:173: UserWarning: Build succeeded, but resulted in non-empty logs: Build on
pyopencl.Device ' Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
And here I don't even get back my interpreter command prompt, I have to press Enter to return to the prompt. I guess there's supposed to be some actual message, but I can't get it to show up.
BTW the kernel runs fine, so no problems there. This is fairly annoying. Any ideas what this might be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论