-
Notifications
You must be signed in to change notification settings - Fork 10
Added support for CuArray via Adapt.jl #67
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
Added support for CuArray via Adapt.jl #67
Conversation
|
Thanks for the PR, I've left a review with some suggestions. I'll be traveling for the holidays so I might be slow in responding for the next couple of weeks. |
Co-authored-by: Pietro Vertechi <[email protected]>
Co-authored-by: Pietro Vertechi <[email protected]>
Co-authored-by: Pietro Vertechi <[email protected]>
|
... there were a couple of typos. Now the |
|
Can we move ahead as is (with the optional CUDA testing)? If not, we can also make the tests CUDA-dependent. |
This second attempt, uses a very light-weight implementation to add
CuArraysupport toShiftedArrays.jl.It is based on using an Extension Package, such that
ShiftedArraysdoes not drag in any extra packages, but ifCUDA.jlis present, the adaptation is used.Note that the
show()function was specified by CuArrays preventing errors via the@allowscalarmacro.The tests were extended to CuArray usage, but this has to be enabled manually in the
runtests.jlfile.