awslabs / bike-kem

Additional implementation of BIKE (Bit Flipping Key Encapsulation)
Apache License 2.0
45 stars 11 forks source link

Get error when run test code #1

Closed ting1996 closed 4 years ago

ting1996 commented 4 years ago

After building code, I try to run bike-test but I get Illegal instruction (core dumped). I use:

drucker-nir commented 4 years ago

Hi,

The default compilation mode when running on an Intel CPU assumes that the CPU has the AVX2 extension.

What CPU do you use? Does it has AVX2 enabled by the OS?

If not you can always provide the PORTABLE=1 flag (and the USE_OPENSSL=1 if needed) or the PORTABLE=1 PCLMULQDQ=1 (that requires the PCLMULQDQ instructions available and is faster).

ting1996 commented 4 years ago

Thank for the help, bike-test can run with the PORTABLE=1 flag