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

DoF kern code generation checklist #2711

Open
6 tasks done
oakleybrunt opened this issue Sep 16, 2024 · 2 comments · May be fixed by #2712
Open
6 tasks done

DoF kern code generation checklist #2711

oakleybrunt opened this issue Sep 16, 2024 · 2 comments · May be fixed by #2712
Assignees

Comments

@oakleybrunt
Copy link
Collaborator

oakleybrunt commented Sep 16, 2024

Towards #1351

This is a checklist of features that DoF kernel code generation needs.

Loop

Question - should dof kerns have a different loop upper_bound_name? This would distinguish them from builtin loops (maybe not wanted) but would allow for less conditional branching in the setting of upper_bound.

  • Loop type "dof" should use 'df' name and 'dof_loop_idx' tag - LFRicKernCallFactory & LFRicLoop
  • Loop stop is currently f1_proxy%vspace%get_ncell() but should be the undf_name belonging to the function space. Since there is only one FS allowed, this should work fine.
  • When generating ubound for dof loop with dist mem, piggy-back off the LFRicBuiltin checks to set the upper loop bound.

Kernel call

  • Do not include dofmap (map_FS(:,cell))
  • Fields in kernel call must access by index the current dof in the loop (f1_data(df))

Declarations

  • Potentially remove FS name from undf because there should only ever be one FS for dof kerns
    ^ Above introduces more conditionals which seem unnecessary. Most egregious is having a property of FunctionSpace class that returns just 'undf' and then finding all instances where 'undf_name' property is accessed and adding a conditional check for a dof kernel. Unfortunately, this seems like the only way to do it since the FunctionSpace class does not have access to the kernel it belongs to, and therefore cannot determine if said kernel is a dof kern.
@oakleybrunt oakleybrunt self-assigned this Sep 16, 2024
@oakleybrunt oakleybrunt linked a pull request Sep 16, 2024 that will close this issue
oakleybrunt added a commit that referenced this issue Sep 16, 2024
oakleybrunt added a commit that referenced this issue Sep 19, 2024
oakleybrunt added a commit that referenced this issue Sep 19, 2024
oakleybrunt added a commit that referenced this issue Sep 19, 2024
oakleybrunt added a commit that referenced this issue Sep 19, 2024
oakleybrunt added a commit that referenced this issue Sep 19, 2024
@arporter
Copy link
Member

Just a note for the future: there's no need to open an Issue 'towards' another Issue :-) Just add to the existing Issue. It is then the PR that is 'towards' that existing Issue.

@oakleybrunt
Copy link
Collaborator Author

Noted, thanks :)

oakleybrunt added a commit that referenced this issue Sep 20, 2024
oakleybrunt added a commit that referenced this issue Sep 20, 2024
oakleybrunt added a commit that referenced this issue Sep 20, 2024
oakleybrunt added a commit that referenced this issue Oct 7, 2024
oakleybrunt added a commit that referenced this issue Oct 7, 2024
oakleybrunt added a commit that referenced this issue Oct 7, 2024
oakleybrunt added a commit that referenced this issue Oct 7, 2024
oakleybrunt added a commit that referenced this issue Oct 8, 2024
oakleybrunt added a commit that referenced this issue Oct 8, 2024
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 a pull request may close this issue.

2 participants