Skip to content

Commit

Permalink
Remove rmm._lib (#1765)
Browse files Browse the repository at this point in the history
Closes #1762

Authors:
  - Matthew Murray (https://github.com/Matt711)

Approvers:
  - Bradley Dice (https://github.com/bdice)

URL: #1765
  • Loading branch information
Matt711 authored Dec 14, 2024
1 parent 3cad8fe commit bf606ef
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 365 deletions.
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)

0 comments on commit bf606ef

Please sign in to comment.