Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Fix avx512 poseidon2 compilation config
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Aug 1, 2024
1 parent 981490c commit f0b329c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 2 additions & 6 deletions src/implementations/poseidon2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ use crate::field::goldilocks::GoldilocksField;
pub mod params;

pub mod state_generic_impl;
#[cfg(not(all(
#[cfg(not(any(
feature = "include_packed_simd",
any(
target_feature = "neon",
target_feature = "avx2",
all(
target_feature = "avx512bw",
target_feature = "avx512cd",
target_feature = "avx512dq",
Expand Down Expand Up @@ -48,7 +46,6 @@ pub mod state_vectorized_double;
pub use state_vectorized_double::*;

#[cfg(all(
feature = "include_packed_simd",
target_feature = "avx512bw",
target_feature = "avx512cd",
target_feature = "avx512dq",
Expand All @@ -58,7 +55,6 @@ pub use state_vectorized_double::*;
pub mod state_avx512;

#[cfg(all(
feature = "include_packed_simd",
target_feature = "avx512bw",
target_feature = "avx512cd",
target_feature = "avx512dq",
Expand Down
5 changes: 0 additions & 5 deletions src/implementations/poseidon2/state_avx512.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ impl Aligned {
}
}

// we also need holder for SIMD targets, because u64x4 has smaller alignment than u64x8
#[derive(Clone, Copy)]
#[repr(C, align(64))]
struct U128x4Holder([packed_simd::u128x4; 3]);

impl std::fmt::Debug for State {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self.0)
Expand Down

0 comments on commit f0b329c

Please sign in to comment.