diff --git a/fields/src/arch/x86_64/avx512_field_gl.rs b/fields/src/arch/x86_64/avx512_field_gl.rs index 16c811cc..58bcc937 100644 --- a/fields/src/arch/x86_64/avx512_field_gl.rs +++ b/fields/src/arch/x86_64/avx512_field_gl.rs @@ -3,7 +3,7 @@ //! //! How to build/run/test: //! RUSTFLAGS='-C target-feature=+avx512f,+avx512bw,+avx512cd,+avx512dq,+avx512vl' cargo build --features "avx512" --release -#![feature(stdarch_x86_avx512)] +#![cfg_attr(feature = "avx512", feature(stdarch_x86_avx512))] use crate::ff::*; use crate::field_gl::{Fr, FrRepr as GoldilocksField}; use crate::packed::PackedField; diff --git a/recursion/Cargo.toml b/recursion/Cargo.toml index bde70276..48b924c1 100644 --- a/recursion/Cargo.toml +++ b/recursion/Cargo.toml @@ -54,4 +54,5 @@ wasm-bindgen-test = "0.3" [features] default = ["franklin-crypto/multicore", "wasmer/default", "starky/default", "plonky/default"] wasm = ["wasmer/js-default"] -avx512 = ["fields/avx512"] +#avx512 = ["fields/avx512", "starky/avx512", "plonky/avx512", "powdr/starky-avx512"] +avx512 = ["fields/avx512", "starky/avx512", "plonky/avx512"] diff --git a/starky/src/f3g.rs b/starky/src/f3g.rs index 92b1bd9e..9da4da10 100644 --- a/starky/src/f3g.rs +++ b/starky/src/f3g.rs @@ -4,7 +4,7 @@ use core::ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Neg, Sub, SubAss use fields::field_gl::Fr; use fields::Field; use std::hash::{Hash, Hasher}; -use std::{slice, usize}; +use std::slice; use core::fmt::{Display, Formatter}; /// GF(2^3) implementation diff --git a/zkit/Cargo.toml b/zkit/Cargo.toml index 3dcab95e..88c971df 100644 --- a/zkit/Cargo.toml +++ b/zkit/Cargo.toml @@ -28,4 +28,4 @@ anyhow = { version = "1.0", default-features = false } [features] default = [] profiler = ["plonky/profiler", "starky/profiler", "groth16/profiler"] -avx512 = ["starky/avx512"] +avx512 = ["starky/avx512", "recursion/avx512"]