Игорь Спиридонов <igwasm(a)rambler.ru> writes:
Hello. I want to use cl_queue_properties(list of
properties) in pyopnecl.
I have tried following code:
properties = cl.command_queue_properties.OUT_OF_ORDER_EXEC_MODE_ENABLE\
queue_properties = cl.queue_properties
queue_properties.PROPERTIES = queue_properties
queue_properties.SIZE = 10000
Here, you are overwriting built-in constants in PyOpenCL. Likely not
what you want.
device_queue = cl.CommandQueue(context, device,
and have following error.
device_queue = cl.CommandQueue(context, device, queue_properties)
pyopencl._cl.LogicError: CommandQueue failed: INVALID_VALUE - queue properties given as
an iterable, which is only allowed when PyOpenCL was built against an OpenCL 2+ header
Where did you get your version of PyOpenCL? What ICD loader did you
build against? (Nvidia maybe? If so, I highly recommend using ocl-icd.)
If all that sounds too complicated, please simply install using
Conda-Forge, as outlined here: