Skip to content

Conversation

@clintonTE
Copy link
Contributor

First, I believe there is a typo in the CUDA docs here https://docs.nvidia.com/cuda/cublas/index.html. Specifically, for the overdetermined system Ax=C, the number of rows of C should equal the number of rows of A, not the number of columns.

See https://discourse.julialang.org/t/accelerate-solving-many-matrix-problems/40500/7 for the use case and some details.

Second, I added a check to make sure that the arrays of matrices all have the same dimensions.

As an aside, I've never done a PR before, so hopefully it's not too atrocious.

@clintonTE
Copy link
Contributor Author

Also replaced the shallow copy in gels_batched with deep copy.

@maleadt maleadt requested a review from kshyatt June 2, 2020 05:46
@maleadt maleadt added bugfix This gets something working again. cuda array Stuff about CuArray. labels Jun 2, 2020
Copy link
Contributor

@stillyslalom stillyslalom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made the error messages a bit more descriptive and changed inequality symbols to ASCII (a nitpick, but it's best practice to use ASCII for public-facing code given uneven support for Unicode on some platforms)

Improved error messaging and Unicode=>ASCII

Co-authored-by: Alex Ames <alexander.m.ames@gmail.com>
@maleadt
Copy link
Member

maleadt commented Jun 3, 2020

bors try

bors bot added a commit that referenced this pull request Jun 3, 2020
@bors
Copy link
Contributor

bors bot commented Jun 3, 2020

try

Build succeeded:

@maleadt maleadt merged commit 5f11c40 into JuliaGPU:master Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This gets something working again. cuda array Stuff about CuArray.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants