You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AVX2 rejection sampling code inherited from the official Kyber implementation some ifdef's regarding the availability of bit manipulation instructions. Those are untested at present.
Remove all code guarded by BMI, or (a) test it, (b) evaluate the range of targets where this is available, and (c) show that it actually helps performance (if it does).
For now I am inclined to just remove it. We cannot have untested code in the library.
Platform:
Which platform does this concern?
platform independent
aarch64
x86_64
rv64
other
The text was updated successfully, but these errors were encountered:
Hi Hanno, I agree that it'd be best to remove the code. Although the flag says BMI, the code actually uses BMI2 instructions. Since Haswell, Intel has both BMI and BMI2; but AMD has processors that support BMI but don't support BMI2 (see here for details https://en.wikipedia.org/wiki/X86_Bit_manipulation_instruction_set).
The AVX2 rejection sampling code inherited from the official Kyber implementation some ifdef's regarding the availability of bit manipulation instructions. Those are untested at present.
Remove all code guarded by BMI, or (a) test it, (b) evaluate the range of targets where this is available, and (c) show that it actually helps performance (if it does).
For now I am inclined to just remove it. We cannot have untested code in the library.
Platform:
Which platform does this concern?
The text was updated successfully, but these errors were encountered: