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

Enable multithreading #266

Merged
merged 1 commit into from
Aug 29, 2021
Merged

Enable multithreading #266

merged 1 commit into from
Aug 29, 2021

Conversation

schillic
Copy link
Member

@schillic schillic commented Aug 28, 2021

The loop is automatically parallelized if there are multiple threads (via julia --threads NUMBER). The default is 1.

This approach is not very effective because it only parallelizes the splitting (which in the current examples only happens in the first cycle). For better effect we should also parallelize the waiting list, but this is a bigger change.

In my tests with multiple threads the first run always failed with an assertion error in TaylorSeries. I believe this is because that package uses global variables. That is why I pulled out the very first run.

@schillic schillic merged commit f1ab3d6 into master Aug 29, 2021
@schillic schillic deleted the schillic/parallel branch August 29, 2021 07:54
@schillic schillic mentioned this pull request Aug 29, 2021
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.

1 participant