Skip to content

Commit 0b8040d

Browse files
Backporting changes of 65ee96b
These fix indexer constructor calls.
1 parent 6efb2c9 commit 0b8040d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

dpctl/tensor/libtensor/include/kernels/linalg_functions/dot_product.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ dot_product_contig_impl(sycl::queue &exec_q,
364364
NoOpIndexerT, NoOpIndexerT>;
365365

366366
InputBatchIndexerT inp_batch_indexer{
367-
0, static_cast<ssize_t>(reduction_nelems),
368-
static_cast<ssize_t>(batches)};
367+
0, static_cast<ssize_t>(batches),
368+
static_cast<ssize_t>(reduction_nelems)};
369369
InputOutputBatchIndexerT inp_out_batch_indexer{
370370
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
371371
ReductionIndexerT reduction_indexer{NoOpIndexerT{}, NoOpIndexerT{}};
@@ -404,8 +404,8 @@ dot_product_contig_impl(sycl::queue &exec_q,
404404
NoOpIndexerT, NoOpIndexerT>;
405405

406406
InputBatchIndexerT inp_batch_indexer{
407-
0, static_cast<ssize_t>(reduction_nelems),
408-
static_cast<ssize_t>(batches)};
407+
0, static_cast<ssize_t>(batches),
408+
static_cast<ssize_t>(reduction_nelems)};
409409
InputOutputBatchIndexerT inp_out_batch_indexer{
410410
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
411411
ReductionIndexerT reduction_indexer{NoOpIndexerT{}, NoOpIndexerT{}};
@@ -874,8 +874,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
874874
NoOpIndexerT, NoOpIndexerT>;
875875

876876
InputBatchIndexerT inp_batch_indexer{
877-
0, static_cast<ssize_t>(reduction_nelems),
878-
static_cast<ssize_t>(batches)};
877+
0, static_cast<ssize_t>(batches),
878+
static_cast<ssize_t>(reduction_nelems)};
879879
InputOutputBatchIndexerT inp_out_batch_indexer{
880880
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
881881
ReductionIndexerT reduction_indexer{NoOpIndexerT{}, NoOpIndexerT{}};
@@ -916,8 +916,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
916916
NoOpIndexerT, NoOpIndexerT>;
917917

918918
InputBatchIndexerT inp_batch_indexer{
919-
0, static_cast<ssize_t>(reduction_nelems),
920-
static_cast<ssize_t>(batches)};
919+
0, static_cast<ssize_t>(batches),
920+
static_cast<ssize_t>(reduction_nelems)};
921921
InputOutputBatchIndexerT inp_out_batch_indexer{
922922
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
923923
ReductionIndexerT reduction_indexer{NoOpIndexerT{}, NoOpIndexerT{}};
@@ -994,8 +994,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
994994
NoOpIndexerT, NoOpIndexerT>;
995995

996996
InputBatchIndexerT inp_batch_indexer{
997-
0, static_cast<ssize_t>(reduction_nelems),
998-
static_cast<ssize_t>(batches)};
997+
0, static_cast<ssize_t>(batches),
998+
static_cast<ssize_t>(reduction_nelems)};
999999
InputOutputBatchIndexerT inp_out_batch_indexer{
10001000
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
10011001
ReductionIndexerT reduction_indexer{NoOpIndexerT{}, NoOpIndexerT{}};

0 commit comments

Comments
 (0)