Skip to content

OpenCL RepeatedKernelRetrieval warning #670

@pkienzle

Description

@pkienzle

I'm seeing the following warning when running pytest on mac:

sasmodels/direct_model.py::test_simple_interface
  .../sasmodels/kernelcl.py:469: RepeatedKernelRetrieval: Kernel 'sphere_Iq' 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).
    functions = [getattr(program, k) for k in names]

I've also seen it when running bumps webview and reloading the model.

I don't know if it is triggered by sasview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions