Lvalue requirement for Kokkos::Experimental::contribute
Describe the bug
Please provide a concise, clear description of the bug, as well as any available error logs. Feel free to contact the Kokkos Slack # build channel for further discussion of your issue.
I think the requirement that Kokkos::Experimental::contribute accept only an lvalue for dest is superfluous. It doesn't permit using contribute with cases like e.g. an inline subview:
[implementation suggestion omitted]
Further in the implementation the function contribute_into accepts const& dest so this doesn't require any more changes in the code.
TL;DR change Kokkos_ScatterView.hpp
[implementation suggestion omitted]
to
[implementation suggestion omitted]
Please include the following for a minimal reproducer
Compilers (with versions)
Kokkos release or commit used (i.e., the sha1 number)
Platform, architecture and backend
CMake configure command
Output from CMake configure command
Minimum, complete code needed to reproduce the bug
Command line needed to reproduce the bug
KokkosCore_config.h header file (generated during the build)
Please provide any additional relevant error logs
The repository is checked out at /workspace/repo. Work only on production
source code. Do not modify tests, CMake registration, CI configuration, or the
grading environment. Use the existing build tree for local verification.