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

Is it possible to use CUDA to accelerate this algorithm? #14

Open
wenkaier opened this issue Feb 27, 2024 · 3 comments
Open

Is it possible to use CUDA to accelerate this algorithm? #14

wenkaier opened this issue Feb 27, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@wenkaier
Copy link

wenkaier commented Feb 27, 2024

No description provided.

@oedokumaci
Copy link
Owner

As of now, my implementation of the algorithm does not incorporate CUDA acceleration. My decision was guided by the well-known advice from Donald Knuth: Premature optimization is the root of all evil. However, it is entirely feasible to introduce such acceleration by parallelizing the proposal and rejection processes and handling them in batches.

@oedokumaci oedokumaci added the question Further information is requested label Feb 27, 2024
@wenkaier
Copy link
Author

Thank you very much and endorse your suggestion, I'll try the python version first to see if the performance is up to snuff, and then see if it's necessary to develop a cuda version.

@oedokumaci
Copy link
Owner

Yes, that makes sense. I'd also start with Python. It would be also nice to benchmark performance in tests, I suspect for some number of people U, any environment with 2N<U people will see a performance downgrade because of the overhead. But for large U multiprocessing proposals and responses should see the benefits. I appreciate your effort, thank you very much. I am assigning you to the issue and re-labeling as enhancement.

@oedokumaci oedokumaci added enhancement New feature or request and removed question Further information is requested labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants