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 multithreading permitted? #11

Open
JSzitas opened this issue Jan 15, 2023 · 0 comments
Open

Is multithreading permitted? #11

JSzitas opened this issue Jan 15, 2023 · 0 comments

Comments

@JSzitas
Copy link
Contributor

JSzitas commented Jan 15, 2023

Hello!

I was wondering if you were open to multi-threaded submissions, seeing as the problem is basically embarrassingly parallel. The only potentially tricky part would be keeping separate RNG streams/seeds (see e.g. Good Parameters and Implementations for Combined Multiple Recursive Random Number Generators (1999), Pierre L'Ecuyer, open access pdf here: https://www.iro.umontreal.ca/~lecuyer/myftp/papers/opres-combmrg2-1999.pdf).

This requirement (separate RNG streams) could be waived (seeing as it has no real impact on the benchmark speed).
I am asking about this in part because I believe that is the likely approach someone would take for speeding this up further (before going to something like AVX vector extensions).

Further, some of my preliminary benchmarks indicate that this could be worthwhile (the overhead of setting up threads is much smaller than the computation, and the speedups are almost proportional to the number of threads).

Thoughts?

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

1 participant