-
Notifications
You must be signed in to change notification settings - Fork 69
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
rocrand_set_offset unexpected behaviour #234
Comments
@Maetveis Please check the issue and try to reproduce. |
Thank you for your quick response and your thorough explanation! I think the snippet that you have provided does not cover the use case that we are interested in. Our primary goal is to reproduce the behaviour of curand, which generates two lists with an For example, given two lists if I understand your explanation correctly, with rocRAND one way to achieve the same semantics is to call Could you suggest a better solution to achieve the semantics described above? |
This is basically a continuity issue, the random numbers are not generated in a consistent order. My explanation was only for explaining what rocRAND does currently, but it wont have the same effect as setting the offset for cuRAND. The rocRAND behaviour is incorrect, I don't think there's a reasonable (as in using the host api) workaround until its fixed. |
You can now try out the branch mrg32k3a_offset (#236) it should fix the mrg32k3a generator (used in your reproducer). Other generators are in separate branches. |
Remove the Python2 test case from CI Closes #234 See merge request amd/libraries/rocRAND!218
Describe the bug
rorand_set_offset
seems to change the seed of the generator. The numbers produced by a generator with and without offset with the same seed are completely different.To Reproduce
Steps to reproduce the behavior:
Install
rocrand-dev4.5.2
andhip-dev4.5.2
version 4.5.2 using the package repositoriesCompile the attached reproducer (reprod.txt) with the following line:
/opt/rocm-4.5.2/hip/bin/hipcc -I/opt/rocm-4.5.2/rocrand/include/ -L/opt/rocm-4.5.2/rocrand/lib/ -lrocrand test.cpp
See that in the output no offset can be archived, but the two lists of random numbers seem to be completely independent:
Expected behavior
Based on the description here, I would expect that the second list of random numbers generated is the same as the original one, but with a certain offset. For example in this case I would expect something like:
Log-files
out.txt
Environment
environment.txt
Additional context
This issue was encountered while working on the rocrand backend for oneMKL.
The text was updated successfully, but these errors were encountered: