You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
will not have the scratch space allocated inside the lambda is quite confusing as a user. If the requirement that the return value of the set_scratch_size() call is used for the policy passed to the parallel_for remains I think it would be more clear to name it get_policy_with_scratch_size() or something that makes it clear it is not setting member data on the existing policy.
The text was updated successfully, but these errors were encountered:
hcedwar
added
the
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
label
Feb 18, 2016
The fact that:
Kokkos::TeamPolicy policy(size, Kokkos::AUTO);
policy.set_scratch_size(0, Kokkos::PerTeam(bytes_per_team), Kokkos::PerThread(bytes_per_thread));
Kokkos::parallel_for(policy, /* lambda omitted */);
will not have the scratch space allocated inside the lambda is quite confusing as a user. If the requirement that the return value of the set_scratch_size() call is used for the policy passed to the parallel_for remains I think it would be more clear to name it get_policy_with_scratch_size() or something that makes it clear it is not setting member data on the existing policy.
The text was updated successfully, but these errors were encountered: