Skip to content

Pass translation_classes_data to sumpy#102

Closed
isuruf wants to merge 4 commits intoinducer:mainfrom
isuruf:translation_classes_data
Closed

Pass translation_classes_data to sumpy#102
isuruf wants to merge 4 commits intoinducer:mainfrom
isuruf:translation_classes_data

Conversation

@isuruf
Copy link
Collaborator

@isuruf isuruf commented Jul 4, 2021

When this is passed to sumpy, it will use the optimized code path where the M2L matrix is precomputed.

@inducer inducer marked this pull request as draft July 5, 2021 18:43
@inducer
Copy link
Owner

inducer commented Jul 5, 2021

Marking draft and unsubscribing for CI fails, let me know (request review/@-mention) when ready.

@isuruf isuruf force-pushed the translation_classes_data branch from 328937e to 7b717cf Compare May 5, 2022 18:50
@isuruf isuruf force-pushed the translation_classes_data branch from 7b717cf to 4a543da Compare May 5, 2022 19:00
@isuruf isuruf marked this pull request as ready for review May 5, 2022 20:07
@isuruf
Copy link
Collaborator Author

isuruf commented May 5, 2022

@inducer, this is ready.

Copy link
Owner

@inducer inducer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this. Two questions below.

Comment on lines +606 to +608
from sumpy.fmm import SumpyTranslationClassesData
translation_classes_data = SumpyTranslationClassesData(actx.queue,
geo_data.traversal())
Copy link
Owner

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?

from sumpy.fmm import SumpyTranslationClassesData
translation_classes_data = SumpyTranslationClassesData(actx.queue,
geo_data.traversal())
tree_indep = self._tree_indep_data_for_wrangler(
Copy link
Owner

Choose a reason for hiding this comment

The 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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrangler doesn't have access to a queue. Should I add that?

Copy link
Owner

Choose a reason for hiding this comment

The 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:
   ...

@isuruf
Copy link
Collaborator Author

isuruf commented May 10, 2022

Made redundant by inducer/sumpy#117

@isuruf isuruf closed this May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants