Skip to content
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

Cleanup plan class #91

Merged
merged 4 commits into from
Mar 20, 2024
Merged

Cleanup plan class #91

merged 4 commits into from
Mar 20, 2024

Conversation

yasahi-hpc
Copy link
Collaborator

Resolves #90

In this PR, we

  1. disabled the non-default constructors of Plan class
  2. added some tests for reshaping parameter s

@yasahi-hpc yasahi-hpc self-assigned this Mar 15, 2024
Copy link
Member

@dalg24 dalg24 left a comment

Choose a reason for hiding this comment

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

(more a drive-by comment than a thorough review)
What is the exec space argument to the Plan constructor intended for? Allocation of internal buffers? What else? Why is it ok to hold on to that exec space? Should it be reused later when actually computing the FFTs?

@@ -97,6 +97,9 @@ class Plan {
//! The type of extents of input/output views
using extents_type = shape_type<InViewType::rank()>;

//! Execution space
execSpace m_exec_space;
Copy link
Member

Choose a reason for hiding this comment

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

Why do you hold on to an exec space?
When one of the API function is called presumably you take an exec space as argument and you pass the plan. Then which exec space do you pick? Do they have to match? etc..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For the moment, this internal exec_space is unused. I will suppress this change in this PR.
Originally, I was inclined to use internal exec_space for all the execution of FFTs and Kokkos functions, but it turns out that the changes are too big to be consistent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for your review. I will merge this. Your reviews and/or suggestions are always appreciated!

@yasahi-hpc yasahi-hpc merged commit 7281024 into main Mar 20, 2024
20 checks passed
@yasahi-hpc yasahi-hpc deleted the cleanup-plan-class branch March 20, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleanup Plan class. Disallow copies.
2 participants