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

Add pointer support #189

Open
ngphuoc opened this issue Dec 7, 2017 · 2 comments
Open

Add pointer support #189

ngphuoc opened this issue Dec 7, 2017 · 2 comments

Comments

@ngphuoc
Copy link

ngphuoc commented Dec 7, 2017

Dear Gaika,
I am trying to use AFArray for the Knet framework. To do this I need the pointer to AFArray as mentioned in this issue denizyuret/Knet.jl#213. I wonder if you could add support for this feature?

Many thanks!
Phuoc

@ghost
Copy link

ghost commented Dec 7, 2017

get_device_ptr is probably what you need to alias to pointer, conversely if you want to create AFArray from a device pointer use device_array. Can you check if that would work?

@ghost
Copy link

ghost commented Dec 7, 2017

Ah, and you'd have to lock_device_ptr before and unlock_device_ptr after you are done. Not sure how that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant