-
Notifications
You must be signed in to change notification settings - Fork 287
Update linear_congruential_generator with constexpr, tests and a fast discard #6402
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
base: main
Are you sure you want to change the base?
Conversation
fbusato
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
just a couple of nits
| { | ||
| (void) operator()(); | ||
| // minstd_rand and minstd_rand0 can use this efficient implementation | ||
| uint64_t __acc_mult = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
::cuda::std::uint64_t or better in this case using ::cuda::std::uint64_t;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was suggested in another PR to not use fully qualified namespaces e.g. for ::cuda::std::size_t because we are already in the cuda::std:: namespace. Is something different here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
closes
Part of #5679
Update linear_congruential_generator with constexpr, stream operators, tests and a fast discard operator for common parameters.