Skip to content

Conversation

@Sichao25
Copy link
Contributor

Minor fix to replace lambda functions with functor objects to prevent launching Kokkos kernels with lambda from private class methods.

@Sichao25 Sichao25 marked this pull request as ready for review December 15, 2025 22:29
},
total_supports);
ScanSupportIdxFunctor scanFunctor(support_ptr_l, num_supports);
Kokkos::parallel_scan("scan", n_targets_, scanFunctor, total_supports);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a note for these functors you can construct in-line and don't need a temporary variable.

Comment view Kokkos::parallel_scan("scan", n_targets_, ScanSupportIdxFunctor{support_ptr_l, num_supports}, total_supports);

@jacobmerson jacobmerson merged commit d50b976 into SCOREC:develop Dec 15, 2025
4 checks passed
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