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

vectorised rng, if it can be done fast #165

Open
moon-chilled opened this issue Oct 14, 2022 · 0 comments
Open

vectorised rng, if it can be done fast #165

moon-chilled opened this issue Oct 14, 2022 · 0 comments

Comments

@moon-chilled
Copy link
Contributor

(Generating random numbers has been a bottleneck in a couple of test setups.)

Managing k parallel random states is no big deal, but doing the range reduction is annoying, as vector multiplication support is ehhhh. It occurs to me that, pre-avx512, you can get a 52-bit high multiply out of a float multiply if you direct the rounding mode towards 0 or -inf (and deal with the artifacts of the virtual bit). Probably the interval from 2^53 to 2^63 is not so important.

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