-
Notifications
You must be signed in to change notification settings - Fork 11
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
Method to get information on computing device? #44
Comments
Hi @findmyway we had a specialization of Do you have a use case that needs to use |
I see. Thanks for the link. Yes, I'd like to detect whether the underlying data structure is on CPU or GPU. I thought Closing this due to duplication. |
Base.parent
?Base.parent(::ElasticArray)
to get information on computing device?
Oh, that's a good point! I contributed a function It would be nice if we had a lightweight API somewhere to get the primary backing storage type of objects: KernelAbstractions is too heavy for ElasticArrays to depend on and I don't think KernelAbstractions will accept ElasticArrays as a dependency. So there's no clean way to specialize And @colinxs discovered that defining @vchuravy do you think we could establish a lightweight package with an API to get the primary backing array type of objects, or get it into some existing lightweight package, so that |
Base.parent(::ElasticArray)
to get information on computing device?
The result of
Base.parent
fallbacks to the default implementation ofAbstractArray
. It would be better to add return.data
instead, I guess?The text was updated successfully, but these errors were encountered: