Skip to content

Commit

Permalink
disabled avx tests w/o avx flag (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohad-starkware authored Mar 4, 2024
1 parent 3865705 commit 01b161c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/backend/avx512/bit_reverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ fn bit_reverse16(data: [PackedBaseField; 16]) -> [PackedBaseField; 16] {
unsafe { std::mem::transmute(data) }
}

#[cfg(all(target_arch = "x86_64", target_feature = "avx512f"))]
#[cfg(test)]
mod tests {
use super::bit_reverse16;
Expand Down
1 change: 1 addition & 0 deletions src/core/backend/avx512/cm31.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ impl Mul for PackedCM31 {
}
}

#[cfg(all(target_arch = "x86_64", target_feature = "avx512f"))]
#[cfg(test)]
mod tests {
use rand::rngs::StdRng;
Expand Down
1 change: 1 addition & 0 deletions src/core/backend/avx512/fft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ pub unsafe fn sub_mod_p(a: __m512i, b: __m512i) -> __m512i {
_mm512_min_epu32(_mm512_add_epi32(c, P), c)
}

#[cfg(all(target_arch = "x86_64", target_feature = "avx512f"))]
#[cfg(test)]
mod tests {
use std::arch::x86_64::_mm512_setr_epi32;
Expand Down
1 change: 1 addition & 0 deletions src/core/backend/avx512/m31.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ impl SubAssign for PackedBaseField {
}
}

#[cfg(all(target_arch = "x86_64", target_feature = "avx512f"))]
#[cfg(test)]
mod tests {

Expand Down
1 change: 1 addition & 0 deletions src/core/backend/avx512/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ impl FromIterator<BaseField> for BaseFieldVec {
}
}

#[cfg(all(target_arch = "x86_64", target_feature = "avx512f"))]
#[cfg(test)]
mod tests {
use super::*;
Expand Down
1 change: 1 addition & 0 deletions src/core/backend/avx512/qm31.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ impl Mul for PackedQM31 {
}
}

#[cfg(all(target_arch = "x86_64", target_feature = "avx512f"))]
#[cfg(test)]
mod tests {
use rand::rngs::StdRng;
Expand Down

0 comments on commit 01b161c

Please sign in to comment.