From 9d6db329014f55960eaa15b9020936465187f6f3 Mon Sep 17 00:00:00 2001 From: Lukasz Wawrzyniak Date: Tue, 13 Aug 2024 12:19:00 -0400 Subject: [PATCH] Make test_struct_array_content_hash() device-independent --- warp/tests/test_struct.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/warp/tests/test_struct.py b/warp/tests/test_struct.py index 1a393c5e2..c928e3de5 100644 --- a/warp/tests/test_struct.py +++ b/warp/tests/test_struct.py @@ -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 @@ -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__":