Skip to content

Commit

Permalink
Merge pull request #155 from cmsxbc/notes-risk-of-gcc-v9-v10
Browse files Browse the repository at this point in the history
add notes on building with g++ v9 and v10
  • Loading branch information
r-devulap authored May 31, 2024
2 parents d3acd51 + 3aa0134 commit 33a4a1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ benchmark](https://github.com/google/benchmark) frameworks respectively. You
can configure meson to build them both by using `-Dbuild_tests=true` and
`-Dbuild_benchmarks=true`.

### Note about building with avx512 by g++ v9 and v10

There is a risk when compile with avx512 by g++ v9 and v10,
as some `MMX Technology` instructions is used by g++ v9/v10
without clearing fpu state.
Check [issue 154](https://github.com/intel/x86-simd-sort/issues/154)
for more details.

Adding `g++` option `-mno-mmx`, which disables `MMX Technology` instructions, is a possible workaround.

## Example usage

#### Sort an array of floats
Expand Down

0 comments on commit 33a4a1d

Please sign in to comment.