Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove rmm._lib #1765

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions python/rmm/rmm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,3 @@
"should_log",
"unregister_reinitialize_hook",
]


def __getattr__(name):
if name == "_lib":
import importlib

warnings.warn(
"The `rmm._lib` module is deprecated in will be removed in a future release. Use `rmm.pylibrmm` instead.",
FutureWarning,
stacklevel=2,
)

module = importlib.import_module("rmm.pylibrmm")
return module
else:
raise AttributeError(f"Module '{__name__}' has no attribute '{name}'")
23 changes: 0 additions & 23 deletions python/rmm/rmm/_lib/__init__.py

This file was deleted.

16 changes: 0 additions & 16 deletions python/rmm/rmm/_lib/cuda_stream.pxd

This file was deleted.

15 changes: 0 additions & 15 deletions python/rmm/rmm/_lib/cuda_stream.py

This file was deleted.

15 changes: 0 additions & 15 deletions python/rmm/rmm/_lib/cuda_stream_pool.pxd

This file was deleted.

20 changes: 0 additions & 20 deletions python/rmm/rmm/_lib/cuda_stream_view.pxd

This file was deleted.

27 changes: 0 additions & 27 deletions python/rmm/rmm/_lib/device_buffer.pxd

This file was deleted.

21 changes: 0 additions & 21 deletions python/rmm/rmm/_lib/device_buffer.py

This file was deleted.

15 changes: 0 additions & 15 deletions python/rmm/rmm/_lib/device_uvector.pxd

This file was deleted.

15 changes: 0 additions & 15 deletions python/rmm/rmm/_lib/helper.pxd

This file was deleted.

24 changes: 0 additions & 24 deletions python/rmm/rmm/_lib/logger.pxd

This file was deleted.

24 changes: 0 additions & 24 deletions python/rmm/rmm/_lib/logger.py

This file was deleted.

62 changes: 0 additions & 62 deletions python/rmm/rmm/_lib/memory_resource.pxd

This file was deleted.

45 changes: 0 additions & 45 deletions python/rmm/rmm/_lib/memory_resource.py

This file was deleted.

21 changes: 0 additions & 21 deletions python/rmm/rmm/_lib/per_device_resource.pxd

This file was deleted.

6 changes: 0 additions & 6 deletions python/rmm/rmm/tests/test_rmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,9 +1078,3 @@ def test_available_device_memory():
assert initial_memory[1] == final_memory[1]
assert initial_memory[0] > 0
assert final_memory[0] > 0


# TODO: Remove test when rmm._lib is removed in 25.02
def test_deprecate_rmm_lib():
with pytest.warns(FutureWarning):
rmm._lib.device_buffer.DeviceBuffer(size=100)
Loading