diff options
| author | Jack O'Connor <[email protected]> | 2020-03-28 19:27:05 -0400 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-03-28 19:30:28 -0400 |
| commit | f77c8ffd7cb3261ebe5d8ddc97a6cc04488721a7 (patch) | |
| tree | 83796e14571e34463cb030ea9760cea7178a7c66 | |
| parent | eb50d82f161ebfb934cf3626bc9fcada0bbc34e2 (diff) | |
print out instruction set support in CI
| -rw-r--r-- | .github/workflows/ci.yml | 2 | ||||
| -rw-r--r-- | src/bin/instruction_set_support.rs | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75b659f..34e3be3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,8 @@ jobs: toolchain: ${{ format('{0}-{1}', matrix.channel, matrix.target.toolchain) }} profile: minimal override: true + # Print out instruction set support, for debugging. + - run: cargo run --bin instruction_set_support # Default tests plus Rayon. - run: cargo test --features=rayon # no_std tests. diff --git a/src/bin/instruction_set_support.rs b/src/bin/instruction_set_support.rs new file mode 100644 index 0000000..15f9f37 --- /dev/null +++ b/src/bin/instruction_set_support.rs @@ -0,0 +1,9 @@ +fn main() { + #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] + { + dbg!(is_x86_feature_detected!("sse4.1")); + dbg!(is_x86_feature_detected!("avx2")); + dbg!(is_x86_feature_detected!("avx512f")); + dbg!(is_x86_feature_detected!("avx512vl")); + } +} |
