-
Notifications
You must be signed in to change notification settings - Fork 198
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
[BUG] RMM Python Docs use nonexistant rmm.to_device() method #668
Comments
maybe the api is rmm.DeviceBuffer.to_device? |
Thanks, it worked. |
Documentation still says rmm.to_device import rmm |
Reopening and changing to a doc bug. |
The |
Fixes #668 Authors: - Ashwin Srinath (https://github.com/shwina) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - Mark Harris (https://github.com/harrism) URL: #902
Ok thanks! |
Describe the bug
AttributeError: module 'rmm' has no attribute 'to_device'
Steps/Code to reproduce bug
Step 1: Install RAPIDS from RAPIDS.ai
conda create -n rapids-0.17 -c rapidsai -c nvidia -c conda-forge -c defaults rapids-blazing=0.17 python=3.7 cudatoolkit=10.2
Step 2: activate environment rapids-0.17
conda activate rapids-0.17
Step 3:
import rmm
import numpy as np
DeviceBuffer represents an untyped, uninitialized device memory allocation. DeviceBuffers can be created by providing the size of the allocation in bytes
buf = rmm.DeviceBuffer(size=100)
print("Buffer Size: ", buf.size, "Buffer Pointer: ", buf.ptr)
DeviceBuffers can also be created by copying data from host memory
a = np.array([1, 2, 3], dtype='float64')
buf = rmm.to_device(a.tobytes())
print(buf.size)
Source: https://docs.rapids.ai/api/rmm/stable/basics.html
Expected behavior
function to_device should exist or documentation should be updated.
or maybe do I miss something?
Thank you for your work.
Best, Long Phan
The text was updated successfully, but these errors were encountered: