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

Ensure serial algorithms can be used inside parallel algorithms #174

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/ddc/for_each.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void host_for_each_serial(
} // namespace detail

/** iterates over a nD domain in serial
* This version must only be called from a host-device function.
* This version must only be called with `f` being a function compiled for all execution spaces. See also `host_for_each` when this function is only compiled for the host.
tpadioleau marked this conversation as resolved.
Show resolved Hide resolved
* @param[in] domain the domain over which to iterate
* @param[in] f a functor taking an index as parameter
*/
Expand Down
2 changes: 1 addition & 1 deletion include/ddc/transform_reduce.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ KOKKOS_FUNCTION T host_transform_reduce_serial(
} // namespace detail

/** A reduction over a nD domain in serial
* This version must only be called from a host-device function.
* This version must only be called with `reducer` and `transform` being functions compiled for all execution spaces. See also `host_transform_reduce` when these functions are only compiled for the host.
* @param[in] domain the range over which to apply the algorithm
* @param[in] neutral the neutral element of the reduction operation
* @param[in] reduce a binary FunctionObject that will be applied in unspecified order to the
Expand Down