Skip to content

Commit

Permalink
Updated README for avx2 and sve
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive committed Mar 22, 2024
1 parent 7155b7f commit 6b94be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ To compile with `no_std`, disable default features via `--no-default-features` f
### AVX2 acceleration
On platforms with [AVX2](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions) support, RPO and RPX hash function can be accelerated by using the vector processing unit. To enable AVX2 acceleration, the code needs to be compiled with the `avx2` target feature enabled. For example:
```shell
RUSTFLAGS="-C target-feature=+avx2" cargo build --release
cargo make build-avx2
```

### SVE acceleration
On platforms with [SVE](https://en.wikipedia.org/wiki/AArch64#Scalable_Vector_Extension_(SVE)) support, RPO and RPX hash function can be accelerated by using the vector processing unit. To enable SVE acceleration, the code needs to be compiled with the `sve` target feature enabled. For example:
```shell
RUSTFLAGS="-C target-feature=+sve" cargo build --release
cargo make build-sve
```

## Testing
Expand Down

0 comments on commit 6b94be4

Please sign in to comment.