-
Notifications
You must be signed in to change notification settings - Fork 79
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
Overload cholesky
method in order to prevent scalar indexing for Diagonal
#384
Conversation
Unfortunately I have no experience with oneAPI.jl. Will look into the failing tests later, if people think that this is a useful PR. |
Thanks for the PR!
The failure is a generic GPU array failure where Base (specifically BLAS) functionality is called where a specialization is needed:
No GPUArrays in that stack trace, so maybe this PR is missing an overload (or relying on CUDA.jl-specific functionality, which isn't allowed for generic GPUArrays.jl implementations)? |
Ah, looks like |
I think the reason for the failure is that the generic |
Those kind of overloads (replacing That said, unless GPUArrays.jl can provide a generic |
So just to clarify: the generic |
@@ -116,7 +104,7 @@ | |||
n = 128 | |||
d = AT(rand(Float32, n)) | |||
D = Diagonal(d) | |||
F = AT(collect(D)) | |||
F = collect(D) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This modification avoids calling a dense cholesky
method, which is not available for oneArrays
Makes this work without scalar indexing:
Performance can probably be improved.