pyopencl info: binary cache miss #619
-
When performing Hough indexing with pyopencl installed, I sometimes get the message:
Any ideas on what is happening, and how to avoid it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I see this myself sometimes, but it doesn't seem to affect performance. The radonSum kernel is a PyOpenCL kernel in PyEBSDIndex. As the info message says, there must be something in the kernel that takes a relatively long time to build. I haven't written anything for PyOpenCL to build before, so I cannot tell you what specifically causes the message. I believe the relevant code is here. What's nice about logging is that the user can control which log messages from which libraries to show (see logging tutorial). You should be able to suppress the info message by setting PyOpenCL's logger level to warnings by something like: import logging
logging.getLogger("pyopencl").setLevel(logging.WARNING) |
Beta Was this translation helpful? Give feedback.
I see this myself sometimes, but it doesn't seem to affect performance. The radonSum kernel is a PyOpenCL kernel in PyEBSDIndex. As the info message says, there must be something in the kernel that takes a relatively long time to build. I haven't written anything for PyOpenCL to build before, so I cannot tell you what specifically causes the message. I believe the relevant code is here.
What's nice about logging is that the user can control which log messages from which libraries to show (see logging tutorial). You should be able to suppress the info message by setting PyOpenCL's logger level to warnings by something like: