Skip to content
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

How to use GPU to run this codes? #1

Open
Samzhang029 opened this issue Jan 19, 2021 · 1 comment
Open

How to use GPU to run this codes? #1

Samzhang029 opened this issue Jan 19, 2021 · 1 comment

Comments

@Samzhang029
Copy link

How to use GPU to run this codes?

@J3FALL
Copy link
Owner

J3FALL commented Feb 11, 2021

How to use GPU to run this codes?

Greetings, Samzhang!

Unfortunately, the current implemented version of lasso does not support GPU as-is.
Since the basic algorithm has a 'sequential' nature (coordinate descent), it can be parallelized only in mathematic operations with matrices and vectors.
For instance, here vectorMultiply and vectorMultiplyComponentWise can be replaced with CUDA-operations. The possible boost can be visible on large matrices.

But, more advanced algorithms exist that can speed-up coordinate descent, for instance, check Shotgun algorithm:
https://github.com/akyrola/shotgun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants