Skip to content

Conversation

@nickstarform
Copy link
Collaborator

When calling gaussian_model, you can do

...
ncores = 10 # of processes to start, usually 2x the number of physical cores
uv.fit_models(...,  ncores=ncores)

This will greatly speed up the fit_models. For simple 1-2 gaussians it doesn't make too much difference but 4 gaussians, the fits were taking >10 hours

This still isn't the most efficient as at the start of the cycle all the cores specified are used and then at end of every cycle you will have most of the cores waiting on just a couple to finish, but the bottleneck is now at dynesty implementation of MP.

When calling gaussian_model, you can do

```py
...
ncores = 10 # of processes to start, usually 2x the number of physical cores
uv.fit_models(...,  ncores=ncores)
```
This will greatly speed up the fit_models. For simple 1-2 gaussians it doesn't make too much difference but 4 gaussians, the fits were taking >10 hours

This still isn't the most efficient as at the start of the cycle all the cores specified are used and then at end of every cycle you will have most of the cores waiting on just a couple to finish, but the bottleneck is now at dynesty implementation of MP.
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

Successfully merging this pull request may close these issues.

2 participants