-
Notifications
You must be signed in to change notification settings - Fork 16
Pass translation_classes_data to sumpy #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -603,6 +603,9 @@ def exec_compute_potential_insn_fmm(self, actx: PyOpenCLArrayContext, | |
| geo_data.tree().user_source_ids, | ||
| insn.kernel_arguments, evaluate)) | ||
|
|
||
| from sumpy.fmm import SumpyTranslationClassesData | ||
| translation_classes_data = SumpyTranslationClassesData(actx.queue, | ||
| geo_data.traversal()) | ||
| tree_indep = self._tree_indep_data_for_wrangler( | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it make sense to compute the translation classes as part of the wrangler creation?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wrangler doesn't have access to a
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can just make a private, temporary queue: with cl.CommandQueue(ctx) as queue:
... |
||
| target_kernels=insn.target_kernels, | ||
| source_kernels=insn.source_kernels) | ||
|
|
@@ -612,7 +615,8 @@ def exec_compute_potential_insn_fmm(self, actx: PyOpenCLArrayContext, | |
| self.qbx_order, | ||
| self.fmm_level_to_order, | ||
| source_extra_kwargs=source_extra_kwargs, | ||
| kernel_extra_kwargs=kernel_extra_kwargs) | ||
| kernel_extra_kwargs=kernel_extra_kwargs, | ||
| translation_classes_data=translation_classes_data) | ||
|
|
||
| from pytential.qbx.geometry import target_state | ||
| if actx.to_numpy(actx.np.any( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't a sumpy-specific interface. How come we're passing ostensibly sumpy-specific data?