-
Notifications
You must be signed in to change notification settings - Fork 17
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
Compile on 64bit system #9
Comments
There are many places in the code where 32-bit integers must really be
32 bits, otherwise the bit shifts and rotations will not work properly,
for example. We have a 64-bit version in the works, but it has been
delayed by all sorts of head winds lately.
-- Pierre L'Ecuyer
On 11/26/2021 11:24 AM, simont77 wrote:
Hi,
do you know if this source code can be compiled safely in 64bit mode
without affecting the test accuracy?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACVHLIYPYDESSQNEQ33ZSCDUN6YEDANCNFSM5I27ZWFA>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Pierre L'Ecuyer, Professeur Titulaire
CIRRELT, GERAD, and DIRO, Université de Montréal, Canada
http://www.iro.umontreal.ca/~lecuyer
|
Hi again, actually I conducted some test. I generated a 2Gbyte file using my own RNG (I limited the file size to 2Gbyte due to the limitation of fstream on 32bit system). Results for the same number of bits where always identical for the 32bit and 64bit platform, apart in some cases for the last significant digit of very small values (e.g. Mu = 9.3132258e-10 vs Mu = 9.3132257e-10), which I suppose is due to floating point rounding error with different machine precision. So, it seems that the 64bit executable has no issue, at least for alphabit and rabbit test suite. The main reason I would like to move to 64bit is to be able to test random streams (only with alphabit and rabbit) with more than 16 billion bit, and presently the 32bit version it limited to this number due to fstream, while it seems to handle correctly more than 2^32 bit. What do you think? Thanks |
Hi, |
I confirm that using your patch I can now test files larger than 2Gbyte even compiling in 32bit! But now I have a doubt: is it meaningful to test such a large amount of data or Alphabit and Rabbit were not designed for that? |
Thank you for testing the patch! Regarding your question, I had a similar doubt: I've seen a few papers where (mostly) Alphabit was used on large dataset (up to 1Tbit!); however compiling a 32-bit executable lead to the previously discussed issues, while from this thread I understood that the author of the code advise against compiling a 64-bit executable. I have very little experience on statistical testing of RNG, thus I cannot say if it make sense to analyze such large amount of data... It would be great if Prof. @pierrelecuyer or some other user, with deep knowledge of the code for the various statistical tests performed in the suites, could comment more on that. |
Sorry for my slow response. Richard Simard, who was maintaining TestU01, has retired long ago, and on my side, I am fighting a pancreas cancer, trying to stay alive. This has slowed me down a lot recently, but the plan to come up with TestU01-64 is still alive; I hope I can get back to it next Summer of Fall. I would also be happy to welcome contributors. On the other hand, I do not plan to make any further changes or maintenance to TestU01-2009. The latter was built for 32-bit computers, a long ago. I am pretty sure some of the code will not work properly if compiled in 64 bits with no change. But perhaps some of the tests will still work correctly. |
Happy new year! I hope this finds you reasonably well.
Is there an articulated plan in terms of goals / tasks / ...to get to TestU01-64? |
Hi,
do you know if this source code can be compiled safely in 64bit mode without affecting the test accuracy?
Thanks
The text was updated successfully, but these errors were encountered: