Skip to content

Commit

Permalink
add a note about AVX-512 flags
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Jan 27, 2020
1 parent 444a338 commit dec0c49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dec0c49

Please sign in to comment.