PyOpenCL 2020.1 - 设备侧队列未实现。

问题描述 投票:0回答:1

我在使用pyopencl时遇到了一个我从未遇到过的问题(见下面的代码)

这个问题......设备端队列未实现(clCreateCommandQueueWithProperties.c:93)。设备端队列未实现(clCreateCommandQueueWithProperties.c:93)

你们有谁曾经遇到过这个问题吗? Do you have any idea wher it comes from ?thanks in advance !

user@debian_9.5:~# pip3 freeze | grep pyopencl
   pyopencl==2020.1


user@debian_9.5:~# python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.

   >>> import pyopencl as cl
   >>> ctx = cl.create_some_context()

   Choose platform:
   [0] <pyopencl.Platform 'Portable Computing Language' at 0x7fb1fbfba020>
   Choice [0]:0
   Set the environment variable PYOPENCL_CTX='0' to avoid being asked again.

   >>> print(ctx)
   <pyopencl.Context at 0x55c1e9a87440 on <pyopencl.Device 'pthread-AMD Ryzen Threadripper 1950X 16-Core Processor' on 'Portable Computing Language' at 0x55c1ea017430>>

   >>> queue = cl.CommandQueue(ctx)
   Device side queue is unimplemented (clCreateCommandQueueWithProperties.c:93)

我的设置是如下的。AMD-ryzen_1950X - debian_9.5 - python_3.5.3。

python-3.x debian opencl amd pyopencl
1个回答
0
投票

解决了:user@debian_9.5:~# pip uninstall pyopencl && apt install python3-pyopencl。

© www.soinside.com 2019 - 2024. All rights reserved.