Skip to content

Updates to ParallelManager, Typedefs, and Serial limits#335

Open
kuberry wants to merge 2 commits intomasterfrom
fix_502_tests
Open

Updates to ParallelManager, Typedefs, and Serial limits#335
kuberry wants to merge 2 commits intomasterfrom
fix_502_tests

Conversation

@kuberry
Copy link
Collaborator

@kuberry kuberry commented Feb 25, 2026

Changes to typedefs are not backwards compatible, so this will be merged as part of 1.7.0.

Previously we used Kokkos::View<double**, layout_right, host_execution_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> > for host_scratch* types. However, we can do better by replacing host_execution_space with host_execution_space:scratch_memory_space and having another host_unmanaged_* types that has the same Kokkos::MemoryTraits<Kokkos::Unmanaged> attribute that scratch and unmanaged spaces previously had.

- Check for scratch space required at level 0 before executing loop
- Templates TeamPolicy from ParallelManager, returns TeamPolicy after
  updating with .set_scratch....
- Adds typedefs for {host,device}_unmanaged_... views
  Previously we used ..._scratch_... views for unmanaged views, but
  now we explicitly specify that ..._scratch_... is in the scratch space
- Performs a team scratch size check on neighbor search, ensuring there
  is sufficient level 0 memory available
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.

1 participant