inducer / pyopencl

OpenCL integration for Python, plus shiny features
http://mathema.tician.de/software/pyopencl
Other
1.04k stars 238 forks source link

Port to np.random.Generator #718

Closed alexfikl closed 3 months ago

alexfikl commented 3 months ago

This ports the examples to np.random.Generator to fix some deprecation warnings in numpy 2.0.

I also updated gl_particle_animation to not do from GL import * because it was giving a lot of pylint warnings. I couldn't run it though because it raised

AttributeError: type object 'pyopencl._cl.context_properties' has no attribute 'GL_CONTEXT_KHR'

Not quite sure what's missing on my system (I compiled with CL_ENABLE_GL and whatever else I could find).

inducer commented 3 months ago

Thanks!