Skip to content

Commit

Permalink
Merge branch 'lwawrzyniak/make-test_struct_array_content_hash-device-…
Browse files Browse the repository at this point in the history
…independent' into 'main'

Make test_struct_array_content_hash() device-independent

See merge request omniverse/warp!678
  • Loading branch information
nvlukasz committed Aug 13, 2024
2 parents 07d5312 + 9d6db32 commit 13b1541
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions warp/tests/test_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,6 @@ class ContentHashStruct:
def dummy_kernel(a: wp.array(dtype=ContentHashStruct)):
i = wp.tid()

struct_array = wp.array([ContentHashStruct()], dtype=ContentHashStruct)

wp.launch(dummy_kernel, (1,), inputs=[struct_array])

module_hash_0 = wp.get_module(dummy_kernel.__module__).hash_module()

# Redefine ContentHashStruct to have the same members as before but a new memory address
Expand Down Expand Up @@ -722,7 +718,7 @@ def test_nested_vec_assignment(self):
devices=devices,
)

add_function_test(TestStruct, "test_struct_array_content_hash", test_struct_array_content_hash, devices=devices)
add_function_test(TestStruct, "test_struct_array_content_hash", test_struct_array_content_hash, devices=None)


if __name__ == "__main__":
Expand Down

0 comments on commit 13b1541

Please sign in to comment.