Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions sumpy/fmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,17 @@ def p2p(self):
exclude_self=self.exclude_self,
strength_usage=self.strength_usage)

@memoize_method
def opencl_fft_app(self, shape, dtype, inverse):
with cl.CommandQueue(self.cl_context) as queue:
return get_opencl_fft_app(queue, shape, dtype, inverse)
from pytools import memoize_in

@memoize_in(self.cl_context, (
SumpyTreeIndependentDataForWrangler.opencl_fft_app,
shape, dtype, inverse))
def app():
with cl.CommandQueue(self.cl_context) as queue:
return get_opencl_fft_app(queue, shape, dtype, inverse)

return app()

# }}}

Expand Down