Skip to content

Warnings from pyopencl #367

@NikoOinonen

Description

@NikoOinonen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions