Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jjwilke committed Nov 7, 2023
1 parent eb71fd3 commit d44d8ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cunumeric/matrix/batched_cholesky_template.inl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "cunumeric/matrix/batched_cholesky.h"
#include "cunumeric/matrix/potrf_template.inl"
#include "cunumeric/matrix/transpose_template.inl"
#include "cunumeric/pitches.h"

namespace cunumeric {

Expand Down Expand Up @@ -67,6 +68,11 @@ struct BatchedCholeskyImpl {
"Batched cholesky is not supported when input/output shapes differ");
}

Pitches<DIM - 1> pitches;
size_t volume = pitches.flatten(shape);

if (volume == 0) return;

auto ncols = shape.hi[DIM - 1] - shape.lo[DIM - 1] + 1;

size_t in_strides[DIM];
Expand Down
1 change: 1 addition & 0 deletions tests/unit/cunumeric/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def test_CuNumericOpCode() -> None:
"ADVANCED_INDEXING",
"ARANGE",
"ARGWHERE",
"BATCHED_CHOLESKY",
"BINARY_OP",
"BINARY_RED",
"BINCOUNT",
Expand Down

0 comments on commit d44d8ad

Please sign in to comment.