-
Notifications
You must be signed in to change notification settings - Fork 767
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
[Feature Request] Add GPU optimizations #291
Comments
I took a look at minisam, I think they are using cuSPARSE for the Cholesky decomposition step. I think this would be very easy to add to the current codebase, as the only piece of code that needs to be modified is the Cholesky solver (plus some CMake-fu). It should be interesting to benchmark the speedup with some really large datasets. |
I remember that in fact the CUDA solvers were slower.
On Wed, May 6, 2020 at 19:25 Fan Jiang ***@***.***> wrote:
I took a look at minisam, I think they are using cuSPARSE for the Cholesky
decomposition step. I think this would be very easy to add to the current
codebase, as the only piece of code that needs to be modified is the
Cholesky solver (plus some CMake-fu). It should be interesting to benchmark
the speedup with some really large datasets.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#291 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQHGSJXQNFU2GWPUE4JTZLRQHWW7ANCNFSM4M22FUZA>
.
--
Best !
Frank Dellaert
http://frank.dellaert.com
|
Perhaps Nvidia have improved their cuSparse library significantly by now. |
Came across this: https://developer.nvidia.com/cholmod Seems like CHOLMOD already has GPU capability built in, we just need a flag to turn it on. |
Yes that is on the roadmap :) Should be easy once #111 is merged. |
BTW, CHOLMOD's GPU support is somewhat exaggerated: it only supports GPU cholesky with integers, not doubles. |
Nice! I am sure the optimizations can come later.
rip, makes me sad |
me bursted into tears after wasting one day building custom SuiteSparse with GPU and figuring out how to make it use the gpu... |
Feature
It would be great if a GPU accelerated sparse matrix library can be incorporated into GTSAM. These libraries include: AMD ROCM's rocSPARSE & NVIDIA CUDA's cuSPARSE.
hipSPARSE is a wrapper around both rocSPARSE and cuSPARSE that allows either one to be used as a backend depending on if you have ROCm or CUDA installed.
Motivation
Gotta go fast! NVIDIA mentions that its cuSPARSE provides up to 5x speed over CPU alternatives, see: https://developer.nvidia.com/cusparse
Pitch
Having the option to build GTSAM with hipSPARSE allows GPU accelerated spare matrix calculations to occur with both AMD and NVIDIA devices. This can provide a substantial speedup.
Alternatives
N/A
Additional context
It is interesting to note that @dongjing3309's minisam has the option to use CUDA for its sparse linear solver.
The text was updated successfully, but these errors were encountered: