Skip to content

Commit

Permalink
Fixes incorrect shape and stride in contiguous dot product indexers
Browse files Browse the repository at this point in the history
  • Loading branch information
ndgrigorian committed Mar 1, 2024
1 parent 956c935 commit 65ee96b
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ dot_product_contig_impl(sycl::queue &exec_q,
NoOpIndexerT, NoOpIndexerT>;

const InputBatchIndexerT inp_batch_indexer{
0, static_cast<ssize_t>(reduction_nelems),
static_cast<ssize_t>(batches)};
0, static_cast<ssize_t>(batches),
static_cast<ssize_t>(reduction_nelems)};
const InputOutputBatchIndexerT inp_out_batch_indexer{
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
Expand Down Expand Up @@ -588,8 +588,8 @@ dot_product_contig_impl(sycl::queue &exec_q,
NoOpIndexerT, NoOpIndexerT>;

const InputBatchIndexerT inp_batch_indexer{
0, static_cast<ssize_t>(reduction_nelems),
static_cast<ssize_t>(batches)};
0, static_cast<ssize_t>(batches),
static_cast<ssize_t>(reduction_nelems)};
const InputOutputBatchIndexerT inp_out_batch_indexer{
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
Expand Down Expand Up @@ -1174,8 +1174,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
NoOpIndexerT, NoOpIndexerT>;

const InputBatchIndexerT inp_batch_indexer{
0, static_cast<ssize_t>(reduction_nelems),
static_cast<ssize_t>(batches)};
0, static_cast<ssize_t>(batches),
static_cast<ssize_t>(reduction_nelems)};
const InputOutputBatchIndexerT inp_out_batch_indexer{
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
Expand Down Expand Up @@ -1212,8 +1212,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
NoOpIndexerT, NoOpIndexerT>;

const InputBatchIndexerT inp_batch_indexer{
0, static_cast<ssize_t>(reduction_nelems),
static_cast<ssize_t>(batches)};
0, static_cast<ssize_t>(batches),
static_cast<ssize_t>(reduction_nelems)};
const InputOutputBatchIndexerT inp_out_batch_indexer{
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
Expand Down Expand Up @@ -1280,8 +1280,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
NoOpIndexerT, NoOpIndexerT>;

const InputBatchIndexerT inp_batch_indexer{
0, static_cast<ssize_t>(reduction_nelems),
static_cast<ssize_t>(batches)};
0, static_cast<ssize_t>(batches),
static_cast<ssize_t>(reduction_nelems)};
const InputOutputBatchIndexerT inp_out_batch_indexer{
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
Expand Down

0 comments on commit 65ee96b

Please sign in to comment.