Cannot create Program from binary #544
Replies: 5 comments 2 replies
-
You need:
(Yes, even binaries need to be built. Look it up in the spec. :) |
Beta Was this translation helpful? Give feedback.
-
So simple! Actually, I had guessed that long ago. Unfortunately, it does not work:
prints:
You can see two things: EDITED : |
Beta Was this translation helpful? Give feedback.
-
Ah ah! I was concentrated on the pyOpenCL doc. I humbly suggest that a word about this is added in the pyOpenCL
Because without the
However, using Latest newsOnly the device Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz raises the Exception. The code works for all other 2 devices on my MBP. Does it provide you any hint? BTW this explain why there is only one exception catched! Sorry... FYI the binary bytes content is
where non printable bytes are replaced by [xx]. Seems to be an intermediate representation (IR) as per Khronos OpenCL doc, but it should work the same. |
Beta Was this translation helpful? Give feedback.
-
I understand... |
Beta Was this translation helpful? Give feedback.
-
Any idea why Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz is not building ? Am I missing some option (e.g. about caching)? AFAIU, pyopencl is internally using disk caching so...? |
Beta Was this translation helpful? Give feedback.
-
From the doc
class pyopencl.Program(context, devices, binaries)
, existing binaries can be provided to create aProgram
. However, this simple example fails:The result is:
for all devices found in the platform.
MacOS 11.6.4 Big Sur, Macbook Pro.
On the Windows side (BootCamp), it crashes Python.
Beta Was this translation helpful? Give feedback.
All reactions