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

Simulation-level parallelism #429

Open
Vilin97 opened this issue Jul 18, 2024 · 2 comments
Open

Simulation-level parallelism #429

Vilin97 opened this issue Jul 18, 2024 · 2 comments

Comments

@Vilin97
Copy link
Contributor

Vilin97 commented Jul 18, 2024

SSAs are "embarrassingly" parallel on the simulation level, meaning that N independent simulations can be run at the same time. I don't know how high N is in practice for the users of JumpProcesses but if it's in the thousands, and each simulation is small (e.g. <100 reactions), perhaps each simulation can be run by its own core of a GPU. Memory management would be hard and the networks would need to be small enough to fit in memory, but the potential speedup can be 100-1000x. Are there any fundamental obstacles to this? Perhaps making a prototype with Direct can be a GSoC project for someone already familiar with GPU programming.

@TorkelE
Copy link
Member

TorkelE commented Jul 19, 2024

I know that PySB (https://pysb.org/) have implemented Gillespie simulations on GPU (https://pysb.readthedocs.io/en/stable/modules/simulator.html), so it is definitely possible and there are some implementations one can have a look at already.

@ChrisRackauckas
Copy link
Member

It would be very straightforward to do it the DiffEqGPU way.

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

3 participants