Skip to content

Commit

Permalink
update doc and test_paddle.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate committed Oct 29, 2024
1 parent ade6b80 commit 084d0e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

### Fixed

- Fix place setting of paddle backend and add 2 missing benchmark files.
- Fix to relax the integer types expected when indexing arrays (regression in 1.3.0).
- Fix printing vector and matrix adjoints in backward kernels.
- Fix kernel compile error when printing structs.
Expand Down
12 changes: 6 additions & 6 deletions warp/tests/test_paddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, device: str):
elif device.startswith("gpu:"):
self.device_new = device
elif device == "gpu":
self.device_new = "gpu"
self.device_new = device
else:
raise NotImplementedError(f"Unsupported device type {device}")

Expand Down Expand Up @@ -870,11 +870,11 @@ class TestPaddle(unittest.TestCase):
# devices=paddle_compatible_cuda_devices,
# )

# multi-GPU tests
if len(paddle_compatible_cuda_devices) > 1:
add_function_test(TestPaddle, "test_paddle_mgpu_from_paddle", test_paddle_mgpu_from_paddle)
add_function_test(TestPaddle, "test_paddle_mgpu_to_paddle", test_paddle_mgpu_to_paddle)
add_function_test(TestPaddle, "test_paddle_mgpu_interop", test_paddle_mgpu_interop)
# multi-GPU not supported yet.
# if len(paddle_compatible_cuda_devices) > 1:
# add_function_test(TestPaddle, "test_paddle_mgpu_from_paddle", test_paddle_mgpu_from_paddle)
# add_function_test(TestPaddle, "test_paddle_mgpu_to_paddle", test_paddle_mgpu_to_paddle)
# add_function_test(TestPaddle, "test_paddle_mgpu_interop", test_paddle_mgpu_interop)

except Exception as e:
print(f"Skipping Paddle tests due to exception: {e}")
Expand Down

0 comments on commit 084d0e1

Please sign in to comment.