Closed MarcT0K closed 1 year ago
I recognize this error, which occurs when the output length demanded in a call to the SHAKE function gets too long, which is used in the implementation of PRSS. The error occurs for lengths of 2**31 bytes and more on Python 3.9 (on Windows).
You can try to run this with PRSS disabled using "no-prss" on the command line. Also, limiting the bit length of fixed-point numbers will help, and in your case above, in particular the number of fractional bits needs to be limited, because the problem originates from a call to np_trunc
(which uses secure random bits internally for probabilistic rounding).
Thanks, I'll try to launch my experiments with this option and update this issue.
The error occurs for lengths of 2**31 bytes and more on Python 3.9 (on Windows).
FYI, I am on a Debian server with Python 3.9
The option no-prss
seems to fix the problem. Thanks again!
Hi, I am experimenting some large matrix multiplications and I ran into an unexpected issue. To put it simply, I am multiplying two large matrices with 100 rows and an increasing number of columns. Until 3K columns, everything is fine but for 3K columns and more, I have an error I don't understand:
I am not sure where to investigate to debug it as the experiment fails only for larger matrices. The matrices are fixed-point arrays.
Moreover, a few months ago, I tried the same experiments with integer arrays and I could increase the number of columns up to 10K columns (before stopping the experiments to avoid memory overflow with larger matrices). Could the problem come from fixed-point arrays?
Looking forward to any input/intuition about this