| Crates.io | cargo-simd-detect |
| lib.rs | cargo-simd-detect |
| version | 0.1.1 |
| created_at | 2023-12-03 00:35:36.026228+00 |
| updated_at | 2023-12-08 00:47:03.849333+00 |
| description | Rust nightly cargo command to report which SIMD extensions your Intel/AMD CPU supports and are enabled. |
| homepage | https://github.com/CarlKCarlK/cargo-simd-detect |
| repository | https://github.com/CarlKCarlK/cargo-simd-detect |
| max_upload_size | |
| id | 1056484 |
| size | 14,281 |
Cargo command to report which SIMD extensions your Intel/AMD CPU supports and are enabled. It should be installed in Rust nightly.
# assumes rustup override set nightly
cargo install cargo-simd-detect --force
cargo simd-detect
To see changes to "enabled", you must re-install with cargo install cargo-simd-detect --force.
A short text report, for example:
feature width available enabled
sse2 128-bit/16-bytes true true
avx2 256-bit/32-bytes true false
avx512f 512-bit/64-bytes true false
Created for an article about SIMD programming on Medium that will be published in Dec 2023/Jan 2024.