Skip to content

CUDA: pinned_array_like, pinned_zeroes, pinned_ones, etc. would be handy #5131

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

Open
gmarkall opened this issue Jan 23, 2020 · 1 comment
Open
Labels
CUDA CUDA related issue/PR feature_request good first issue A good issue for a first time contributor

Comments

@gmarkall
Copy link
Member

Being able to do things like:

# a is some np.ndarray
pinned_a = cuda.pinned_array_like(a)

# As opposed to `my_zs = cuda.pinned_array(10); my_zs[:] = 0`
my_zs = cuda.pinned_zeros(10)

# As opposed to `my_zs = cuda.pinned_array(10); my_zs[:] = 1`
my_ones = cuda.pinned_ones(10)

In general if we could create pinned arrays in more ways similar to how NumPy ndarray objects can be created, this would provide a slightly nicer API to work with.

@stuartarchibald stuartarchibald added CUDA CUDA related issue/PR feature_request labels Jan 23, 2020
@stuartarchibald
Copy link
Contributor

This would be nice, marked as a feature request, thanks.

@gmarkall gmarkall added the good first issue A good issue for a first time contributor label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CUDA CUDA related issue/PR feature_request good first issue A good issue for a first time contributor
Projects
None yet
Development

No branches or pull requests

2 participants