inducer / arraycontext

Choose your favorite numpy-workalike!
6 stars 11 forks source link

Do not import PyOpenCLArrayContext into the root namespace #39

Closed inducer closed 3 years ago

inducer commented 3 years ago

Move PyOpenCLFakeNumpyNamespace (and the linalg bit) to a submodule so that we can import pyopencl globally there and avoid all these repetitive, performance-killing imports https://github.com/inducer/arraycontext/blob/322c18fe1983c6a03a7c86bf0ec3fb401422353a/arraycontext/impl/pyopencl.py#L114-L127

while still avoiding a hard dependency on pyopencl.