15template <
typename Group,
typename T>
16inline constexpr void fill(
const Group& group,
23 for (
int index = local_id; index < x.
size(); index += local_size) {
32template <
typename Group,
typename T>
33inline constexpr void fill(
const Group& group,
39 const int extent = a.
rows() * a.
cols();
41 for (
int linear_index = local_id; linear_index < extent; linear_index += local_size) {
42 const int row = linear_index % a.
rows();
43 const int col = linear_index / a.
rows();
Non-owning view of a batch of strided vectors: the vector argument type of the entry points.
int size() const
Entries per item.
constexpr void fill(const Group &group, const VectorView< T > &x, const T &value)
Sets every element of x to value, cooperatively across group.
constexpr void validate_single_problem(const KernelMatrixView< T, MatrixFormat::Dense > &a, Transpose trans)
constexpr int group_local_linear_id(const Group &group)
constexpr int group_local_linear_range(const Group &group)
constexpr void validate_vector_operand(const VectorView< T > &x, const char *op_name)
Trivially copyable view of a MatrixView for use inside a SYCL kernel.
auto rows() const
Row count (the capacity on a heterogeneous batch).
auto cols() const
Column count (the capacity on a heterogeneous batch).