-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
Noticed recently a couple of warnings printed by pyopencl in some parts of the code:
/home/runner/work/ppafm/ppafm/ppafm/ocl/relax.py:165: DeprecationWarning: Non-descriptor Image constructor called. This will stop working in 2026. Use create_image instead (with the same arguments).
self.cl_ImgIn = cl.Image(self.ctx, mf.READ_ONLY, self.image_format, shape=FEin_shape[:3], pitches=None, hostbuf=None, is_array=False, buffer=None)
/home/runner/work/ppafm/ppafm/ppafm/ocl/field.py:643: RepeatedKernelRetrieval: Kernel 'interp_tip_at' has been retrieved more than once. Each retrieval creates a new, independent kernel, at possibly considerable expense. To avoid the expense, reuse the retrieved kernel instance. To avoid this warning, use cl.Kernel(prg, name).
cl_program.interp_tip_at(queue, global_size, local_size,
and similar warnings for all the other kernels.
Reactions are currently unavailable