Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 12, 2022
1 parent b96e1e8 commit c6cccdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions tests/python/test_bls_assume_in_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ def test_gathering_offset():
scatter=False,
use_offset=True)


# TODO: debug mode behavior of assume_in_range
12 changes: 4 additions & 8 deletions tests/python/test_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,7 @@ def foo():
foo()


@test_utils.test(arch=[ti.cuda, ti.cpu],
real_matrix_scalarize=False)
@test_utils.test(arch=[ti.cuda, ti.cpu], real_matrix_scalarize=False)
def test_local_matrix_read():

s = ti.field(ti.i32, shape=())
Expand All @@ -730,8 +729,7 @@ def get_index(i: ti.i32, j: ti.i32):
assert s[None] == i * 3 + j


@test_utils.test(arch=[ti.cuda, ti.cpu],
real_matrix_scalarize=False)
@test_utils.test(arch=[ti.cuda, ti.cpu], real_matrix_scalarize=False)
def test_local_matrix_read_without_assign():
@ti.kernel
def local_vector_read(i: ti.i32) -> ti.i32:
Expand All @@ -741,8 +739,7 @@ def local_vector_read(i: ti.i32) -> ti.i32:
assert local_vector_read(i) == i


@test_utils.test(arch=[ti.cuda, ti.cpu],
real_matrix_scalarize=False)
@test_utils.test(arch=[ti.cuda, ti.cpu], real_matrix_scalarize=False)
def test_local_matrix_indexing_in_loop():
s = ti.field(ti.i32, shape=(3, 3))

Expand All @@ -759,8 +756,7 @@ def test():
assert s[i, j] == i * 3 + j + 1


@test_utils.test(arch=[ti.cuda, ti.cpu],
real_matrix_scalarize=False)
@test_utils.test(arch=[ti.cuda, ti.cpu], real_matrix_scalarize=False)
def test_local_matrix_indexing_ops():
@ti.kernel
def element_write() -> ti.i32:
Expand Down

0 comments on commit c6cccdb

Please sign in to comment.