1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-04-28 05:25:13 +02:00

add a note about AVX-512 flags

This commit is contained in:
Jack O'Connor 2020-01-27 13:06:56 -05:00
parent 444a338b45
commit dec0c49576

View File

@ -75,6 +75,10 @@ gcc -shared -O3 blake3.c blake3_dispatch.c blake3_portable.c \
blake3_avx2.o blake3_avx512.o blake3_sse41.o -o libblake3.so
```
Note that building `blake3_avx512.c` requires both `-mavx512f` and
`-mavx512vl` under GCC and Clang, as shown above. Under MSVC, the single
`/arch:AVX512` flag is sufficient.
If you want to omit SIMD code on x86, you need to explicitly disable
each instruction set. Here's an example of building a shared library on
Linux with no SIMD support: